@hyperlane-xyz/cli 3.20.0-beta0 → 4.0.0-alpha

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 (153) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.js +10 -6
  3. package/dist/cli.js.map +1 -1
  4. package/dist/src/avs/config.d.ts +11 -0
  5. package/dist/src/avs/config.d.ts.map +1 -0
  6. package/dist/src/avs/config.js +10 -0
  7. package/dist/src/avs/config.js.map +1 -0
  8. package/dist/src/avs/stakeRegistry.d.ts +21 -0
  9. package/dist/src/avs/stakeRegistry.d.ts.map +1 -0
  10. package/dist/src/avs/stakeRegistry.js +64 -0
  11. package/dist/src/avs/stakeRegistry.js.map +1 -0
  12. package/dist/src/commands/avs.d.ts +12 -0
  13. package/dist/src/commands/avs.d.ts.map +1 -0
  14. package/dist/src/commands/avs.js +64 -0
  15. package/dist/src/commands/avs.js.map +1 -0
  16. package/dist/src/commands/config.d.ts.map +1 -1
  17. package/dist/src/commands/config.js +10 -60
  18. package/dist/src/commands/config.js.map +1 -1
  19. package/dist/src/commands/core.d.ts +16 -0
  20. package/dist/src/commands/core.d.ts.map +1 -0
  21. package/dist/src/commands/core.js +88 -0
  22. package/dist/src/commands/core.js.map +1 -0
  23. package/dist/src/commands/deploy.d.ts +13 -0
  24. package/dist/src/commands/deploy.d.ts.map +1 -1
  25. package/dist/src/commands/deploy.js +22 -26
  26. package/dist/src/commands/deploy.js.map +1 -1
  27. package/dist/src/commands/options.d.ts +11 -5
  28. package/dist/src/commands/options.d.ts.map +1 -1
  29. package/dist/src/commands/options.js +45 -11
  30. package/dist/src/commands/options.js.map +1 -1
  31. package/dist/src/commands/registry.d.ts +6 -0
  32. package/dist/src/commands/registry.d.ts.map +1 -0
  33. package/dist/src/commands/{chains.js → registry.js} +3 -3
  34. package/dist/src/commands/registry.js.map +1 -0
  35. package/dist/src/commands/send.d.ts.map +1 -1
  36. package/dist/src/commands/send.js +2 -42
  37. package/dist/src/commands/send.js.map +1 -1
  38. package/dist/src/commands/validator.d.ts +3 -0
  39. package/dist/src/commands/validator.d.ts.map +1 -0
  40. package/dist/src/commands/validator.js +34 -0
  41. package/dist/src/commands/validator.js.map +1 -0
  42. package/dist/src/commands/{hook.d.ts → warp.d.ts} +6 -2
  43. package/dist/src/commands/warp.d.ts.map +1 -0
  44. package/dist/src/commands/warp.js +101 -0
  45. package/dist/src/commands/warp.js.map +1 -0
  46. package/dist/src/config/chain.d.ts.map +1 -1
  47. package/dist/src/config/chain.js +21 -9
  48. package/dist/src/config/chain.js.map +1 -1
  49. package/dist/src/config/hooks.d.ts +4528 -90
  50. package/dist/src/config/hooks.d.ts.map +1 -1
  51. package/dist/src/config/hooks.js +31 -97
  52. package/dist/src/config/hooks.js.map +1 -1
  53. package/dist/src/config/ism.d.ts +58 -61
  54. package/dist/src/config/ism.d.ts.map +1 -1
  55. package/dist/src/config/ism.js +40 -128
  56. package/dist/src/config/ism.js.map +1 -1
  57. package/dist/src/config/warp.d.ts +3 -2
  58. package/dist/src/config/warp.d.ts.map +1 -1
  59. package/dist/src/config/warp.js +112 -49
  60. package/dist/src/config/warp.js.map +1 -1
  61. package/dist/src/consts.d.ts +1 -0
  62. package/dist/src/consts.d.ts.map +1 -1
  63. package/dist/src/consts.js +1 -0
  64. package/dist/src/consts.js.map +1 -1
  65. package/dist/src/context/context.d.ts +1 -1
  66. package/dist/src/context/context.d.ts.map +1 -1
  67. package/dist/src/context/context.js +37 -15
  68. package/dist/src/context/context.js.map +1 -1
  69. package/dist/src/context/types.d.ts +1 -0
  70. package/dist/src/context/types.d.ts.map +1 -1
  71. package/dist/src/deploy/agent.js +1 -1
  72. package/dist/src/deploy/agent.js.map +1 -1
  73. package/dist/src/deploy/core.d.ts +4 -8
  74. package/dist/src/deploy/core.d.ts.map +1 -1
  75. package/dist/src/deploy/core.js +28 -232
  76. package/dist/src/deploy/core.js.map +1 -1
  77. package/dist/src/deploy/dry-run.d.ts +2 -2
  78. package/dist/src/deploy/dry-run.d.ts.map +1 -1
  79. package/dist/src/deploy/dry-run.js +1 -0
  80. package/dist/src/deploy/dry-run.js.map +1 -1
  81. package/dist/src/deploy/utils.d.ts +4 -7
  82. package/dist/src/deploy/utils.d.ts.map +1 -1
  83. package/dist/src/deploy/utils.js +22 -19
  84. package/dist/src/deploy/utils.js.map +1 -1
  85. package/dist/src/deploy/warp.d.ts.map +1 -1
  86. package/dist/src/deploy/warp.js +38 -123
  87. package/dist/src/deploy/warp.js.map +1 -1
  88. package/dist/src/send/message.d.ts.map +1 -1
  89. package/dist/src/send/message.js +15 -29
  90. package/dist/src/send/message.js.map +1 -1
  91. package/dist/src/send/transfer.d.ts.map +1 -1
  92. package/dist/src/send/transfer.js +5 -6
  93. package/dist/src/send/transfer.js.map +1 -1
  94. package/dist/src/submit/submit.d.ts +5 -0
  95. package/dist/src/submit/submit.d.ts.map +1 -0
  96. package/dist/src/submit/submit.js +30 -0
  97. package/dist/src/submit/submit.js.map +1 -0
  98. package/dist/src/submit/types.d.ts +18 -0
  99. package/dist/src/submit/types.d.ts.map +1 -0
  100. package/dist/src/submit/types.js +2 -0
  101. package/dist/src/submit/types.js.map +1 -0
  102. package/dist/src/tests/deployTestErc20.js +3 -2
  103. package/dist/src/tests/deployTestErc20.js.map +1 -1
  104. package/dist/src/tests/hooks.test.js +14 -8
  105. package/dist/src/tests/hooks.test.js.map +1 -1
  106. package/dist/src/tests/ism.test.js +1 -1
  107. package/dist/src/tests/ism.test.js.map +1 -1
  108. package/dist/src/utils/balances.d.ts +2 -2
  109. package/dist/src/utils/balances.d.ts.map +1 -1
  110. package/dist/src/utils/balances.js +8 -3
  111. package/dist/src/utils/balances.js.map +1 -1
  112. package/dist/src/utils/chains.d.ts +1 -0
  113. package/dist/src/utils/chains.d.ts.map +1 -1
  114. package/dist/src/utils/chains.js +20 -3
  115. package/dist/src/utils/chains.js.map +1 -1
  116. package/dist/src/utils/env.d.ts +3 -0
  117. package/dist/src/utils/env.d.ts.map +1 -1
  118. package/dist/src/utils/env.js +3 -0
  119. package/dist/src/utils/env.js.map +1 -1
  120. package/dist/src/utils/files.d.ts +1 -0
  121. package/dist/src/utils/files.d.ts.map +1 -1
  122. package/dist/src/utils/files.js +8 -0
  123. package/dist/src/utils/files.js.map +1 -1
  124. package/dist/src/utils/keys.d.ts +5 -3
  125. package/dist/src/utils/keys.d.ts.map +1 -1
  126. package/dist/src/utils/keys.js +16 -13
  127. package/dist/src/utils/keys.js.map +1 -1
  128. package/dist/src/validator/address.d.ts +10 -0
  129. package/dist/src/validator/address.d.ts.map +1 -0
  130. package/dist/src/validator/address.js +107 -0
  131. package/dist/src/validator/address.js.map +1 -0
  132. package/dist/src/version.d.ts +1 -1
  133. package/dist/src/version.d.ts.map +1 -1
  134. package/dist/src/version.js +1 -1
  135. package/dist/src/version.js.map +1 -1
  136. package/examples/core-config.yaml +19 -0
  137. package/examples/hooks.yaml +8 -4
  138. package/examples/warp-route-deployment.yaml +2 -4
  139. package/package.json +7 -4
  140. package/dist/src/commands/chains.d.ts +0 -6
  141. package/dist/src/commands/chains.d.ts.map +0 -1
  142. package/dist/src/commands/chains.js.map +0 -1
  143. package/dist/src/commands/hook.d.ts.map +0 -1
  144. package/dist/src/commands/hook.js +0 -34
  145. package/dist/src/commands/hook.js.map +0 -1
  146. package/dist/src/commands/ism.d.ts +0 -12
  147. package/dist/src/commands/ism.d.ts.map +0 -1
  148. package/dist/src/commands/ism.js +0 -36
  149. package/dist/src/commands/ism.js.map +0 -1
  150. package/dist/src/registry/MergedRegistry.d.ts +0 -35
  151. package/dist/src/registry/MergedRegistry.d.ts.map +0 -1
  152. package/dist/src/registry/MergedRegistry.js +0 -83
  153. package/dist/src/registry/MergedRegistry.js.map +0 -1
@@ -1,73 +1,62 @@
1
1
  import { z } from 'zod';
2
- import { ChainMap, ChainName, GasOracleContractType, HookType, HooksConfig } from '@hyperlane-xyz/sdk';
2
+ import { ChainMap, ChainName, HookConfig, HookType } from '@hyperlane-xyz/sdk';
3
3
  import { Address } from '@hyperlane-xyz/utils';
4
4
  import { CommandContext } from '../context/types.js';
5
- declare const HookConfigSchema: z.ZodUnion<[z.ZodObject<{
6
- type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
7
- owner: z.ZodString;
8
- beneficiary: z.ZodString;
9
- maxProtocolFee: z.ZodString;
10
- protocolFee: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- type: HookType.PROTOCOL_FEE;
13
- owner: string;
14
- beneficiary: string;
15
- maxProtocolFee: string;
16
- protocolFee: string;
17
- }, {
18
- type: HookType.PROTOCOL_FEE;
19
- owner: string;
20
- beneficiary: string;
21
- maxProtocolFee: string;
22
- protocolFee: string;
23
- }>, z.ZodObject<{
24
- type: z.ZodLiteral<HookType.MERKLE_TREE>;
25
- }, "strip", z.ZodTypeAny, {
26
- type: HookType.MERKLE_TREE;
27
- }, {
28
- type: HookType.MERKLE_TREE;
29
- }>, z.ZodObject<{
30
- type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
31
- owner: z.ZodString;
32
- beneficiary: z.ZodString;
33
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
34
- gasOracleType: z.ZodRecord<z.ZodString, z.ZodLiteral<GasOracleContractType>>;
35
- oracleKey: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- type: HookType.INTERCHAIN_GAS_PAYMASTER;
38
- owner: string;
39
- beneficiary: string;
40
- overhead: Record<string, number>;
41
- gasOracleType: Record<string, GasOracleContractType>;
42
- oracleKey: string;
43
- }, {
44
- type: HookType.INTERCHAIN_GAS_PAYMASTER;
45
- owner: string;
46
- beneficiary: string;
47
- overhead: Record<string, number>;
48
- gasOracleType: Record<string, GasOracleContractType>;
49
- oracleKey: string;
50
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>]>;
51
- export type HookConfig = z.infer<typeof HookConfigSchema>;
52
- declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
53
- required: z.ZodUnion<[z.ZodObject<{
54
- type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
5
+ declare const HooksConfigSchema: z.ZodObject<{
6
+ default: z.ZodUnion<[z.ZodString, z.ZodObject<{
55
7
  owner: z.ZodString;
8
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9
+ type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
56
10
  beneficiary: z.ZodString;
57
11
  maxProtocolFee: z.ZodString;
58
12
  protocolFee: z.ZodString;
59
13
  }, "strip", z.ZodTypeAny, {
60
14
  type: HookType.PROTOCOL_FEE;
61
15
  owner: string;
16
+ protocolFee: string;
62
17
  beneficiary: string;
63
18
  maxProtocolFee: string;
64
- protocolFee: string;
19
+ ownerOverrides?: Record<string, string> | undefined;
65
20
  }, {
66
21
  type: HookType.PROTOCOL_FEE;
67
22
  owner: string;
23
+ protocolFee: string;
68
24
  beneficiary: string;
69
25
  maxProtocolFee: string;
70
- protocolFee: string;
26
+ ownerOverrides?: Record<string, string> | undefined;
27
+ }>, z.ZodObject<{
28
+ owner: z.ZodString;
29
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30
+ paused: z.ZodBoolean;
31
+ type: z.ZodLiteral<HookType.PAUSABLE>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ type: HookType.PAUSABLE;
34
+ owner: string;
35
+ paused: boolean;
36
+ ownerOverrides?: Record<string, string> | undefined;
37
+ }, {
38
+ type: HookType.PAUSABLE;
39
+ owner: string;
40
+ paused: boolean;
41
+ ownerOverrides?: Record<string, string> | undefined;
42
+ }>, z.ZodObject<{
43
+ owner: z.ZodString;
44
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
45
+ type: z.ZodLiteral<HookType.OP_STACK>;
46
+ nativeBridge: z.ZodString;
47
+ destinationChain: z.ZodString;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: HookType.OP_STACK;
50
+ owner: string;
51
+ nativeBridge: string;
52
+ destinationChain: string;
53
+ ownerOverrides?: Record<string, string> | undefined;
54
+ }, {
55
+ type: HookType.OP_STACK;
56
+ owner: string;
57
+ nativeBridge: string;
58
+ destinationChain: string;
59
+ ownerOverrides?: Record<string, string> | undefined;
71
60
  }>, z.ZodObject<{
72
61
  type: z.ZodLiteral<HookType.MERKLE_TREE>;
73
62
  }, "strip", z.ZodTypeAny, {
@@ -75,45 +64,99 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
75
64
  }, {
76
65
  type: HookType.MERKLE_TREE;
77
66
  }>, z.ZodObject<{
78
- type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
79
67
  owner: z.ZodString;
68
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
69
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
80
70
  beneficiary: z.ZodString;
81
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
82
- gasOracleType: z.ZodRecord<z.ZodString, z.ZodLiteral<GasOracleContractType>>;
83
71
  oracleKey: z.ZodString;
72
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
73
+ oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
74
+ gasPrice: z.ZodString;
75
+ tokenExchangeRate: z.ZodString;
76
+ }, "strip", z.ZodTypeAny, {
77
+ gasPrice: string;
78
+ tokenExchangeRate: string;
79
+ }, {
80
+ gasPrice: string;
81
+ tokenExchangeRate: string;
82
+ }>>;
84
83
  }, "strip", z.ZodTypeAny, {
85
84
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
86
85
  owner: string;
87
86
  beneficiary: string;
88
- overhead: Record<string, number>;
89
- gasOracleType: Record<string, GasOracleContractType>;
90
87
  oracleKey: string;
88
+ overhead: Record<string, number>;
89
+ oracleConfig: Record<string, {
90
+ gasPrice: string;
91
+ tokenExchangeRate: string;
92
+ }>;
93
+ ownerOverrides?: Record<string, string> | undefined;
91
94
  }, {
92
95
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
93
96
  owner: string;
94
97
  beneficiary: string;
95
- overhead: Record<string, number>;
96
- gasOracleType: Record<string, GasOracleContractType>;
97
98
  oracleKey: string;
98
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>]>;
99
- default: z.ZodUnion<[z.ZodObject<{
100
- type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
99
+ overhead: Record<string, number>;
100
+ oracleConfig: Record<string, {
101
+ gasPrice: string;
102
+ tokenExchangeRate: string;
103
+ }>;
104
+ ownerOverrides?: Record<string, string> | undefined;
105
+ }>, 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>]>;
106
+ required: z.ZodUnion<[z.ZodString, z.ZodObject<{
101
107
  owner: z.ZodString;
108
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
109
+ type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
102
110
  beneficiary: z.ZodString;
103
111
  maxProtocolFee: z.ZodString;
104
112
  protocolFee: z.ZodString;
105
113
  }, "strip", z.ZodTypeAny, {
106
114
  type: HookType.PROTOCOL_FEE;
107
115
  owner: string;
116
+ protocolFee: string;
108
117
  beneficiary: string;
109
118
  maxProtocolFee: string;
110
- protocolFee: string;
119
+ ownerOverrides?: Record<string, string> | undefined;
111
120
  }, {
112
121
  type: HookType.PROTOCOL_FEE;
113
122
  owner: string;
123
+ protocolFee: string;
114
124
  beneficiary: string;
115
125
  maxProtocolFee: string;
116
- protocolFee: string;
126
+ ownerOverrides?: Record<string, string> | undefined;
127
+ }>, z.ZodObject<{
128
+ owner: z.ZodString;
129
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
130
+ paused: z.ZodBoolean;
131
+ type: z.ZodLiteral<HookType.PAUSABLE>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ type: HookType.PAUSABLE;
134
+ owner: string;
135
+ paused: boolean;
136
+ ownerOverrides?: Record<string, string> | undefined;
137
+ }, {
138
+ type: HookType.PAUSABLE;
139
+ owner: string;
140
+ paused: boolean;
141
+ ownerOverrides?: Record<string, string> | undefined;
142
+ }>, z.ZodObject<{
143
+ owner: z.ZodString;
144
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
145
+ type: z.ZodLiteral<HookType.OP_STACK>;
146
+ nativeBridge: z.ZodString;
147
+ destinationChain: z.ZodString;
148
+ }, "strip", z.ZodTypeAny, {
149
+ type: HookType.OP_STACK;
150
+ owner: string;
151
+ nativeBridge: string;
152
+ destinationChain: string;
153
+ ownerOverrides?: Record<string, string> | undefined;
154
+ }, {
155
+ type: HookType.OP_STACK;
156
+ owner: string;
157
+ nativeBridge: string;
158
+ destinationChain: string;
159
+ ownerOverrides?: Record<string, string> | undefined;
117
160
  }>, z.ZodObject<{
118
161
  type: z.ZodLiteral<HookType.MERKLE_TREE>;
119
162
  }, "strip", z.ZodTypeAny, {
@@ -121,46 +164,4441 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
121
164
  }, {
122
165
  type: HookType.MERKLE_TREE;
123
166
  }>, z.ZodObject<{
124
- type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
125
167
  owner: z.ZodString;
168
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
169
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
126
170
  beneficiary: z.ZodString;
127
- overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
128
- gasOracleType: z.ZodRecord<z.ZodString, z.ZodLiteral<GasOracleContractType>>;
129
171
  oracleKey: z.ZodString;
172
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
173
+ oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
174
+ gasPrice: z.ZodString;
175
+ tokenExchangeRate: z.ZodString;
176
+ }, "strip", z.ZodTypeAny, {
177
+ gasPrice: string;
178
+ tokenExchangeRate: string;
179
+ }, {
180
+ gasPrice: string;
181
+ tokenExchangeRate: string;
182
+ }>>;
130
183
  }, "strip", z.ZodTypeAny, {
131
184
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
132
185
  owner: string;
133
186
  beneficiary: string;
134
- overhead: Record<string, number>;
135
- gasOracleType: Record<string, GasOracleContractType>;
136
187
  oracleKey: string;
188
+ overhead: Record<string, number>;
189
+ oracleConfig: Record<string, {
190
+ gasPrice: string;
191
+ tokenExchangeRate: string;
192
+ }>;
193
+ ownerOverrides?: Record<string, string> | undefined;
137
194
  }, {
138
195
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
139
196
  owner: string;
140
197
  beneficiary: string;
141
- overhead: Record<string, number>;
142
- gasOracleType: Record<string, GasOracleContractType>;
143
198
  oracleKey: string;
144
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>]>;
199
+ overhead: Record<string, number>;
200
+ oracleConfig: Record<string, {
201
+ gasPrice: string;
202
+ tokenExchangeRate: string;
203
+ }>;
204
+ ownerOverrides?: Record<string, string> | undefined;
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>]>;
145
206
  }, "strip", z.ZodTypeAny, {
146
- required?: any;
147
- default?: any;
207
+ default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
208
+ type: HookType.PROTOCOL_FEE;
209
+ owner: string;
210
+ protocolFee: string;
211
+ beneficiary: string;
212
+ maxProtocolFee: string;
213
+ ownerOverrides?: Record<string, string> | undefined;
214
+ } | {
215
+ type: HookType.PAUSABLE;
216
+ owner: string;
217
+ paused: boolean;
218
+ ownerOverrides?: Record<string, string> | undefined;
219
+ } | {
220
+ type: HookType.OP_STACK;
221
+ owner: string;
222
+ nativeBridge: string;
223
+ destinationChain: string;
224
+ ownerOverrides?: Record<string, string> | undefined;
225
+ } | {
226
+ type: HookType.MERKLE_TREE;
227
+ } | {
228
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
229
+ owner: string;
230
+ beneficiary: string;
231
+ oracleKey: string;
232
+ overhead: Record<string, number>;
233
+ oracleConfig: Record<string, {
234
+ gasPrice: string;
235
+ tokenExchangeRate: string;
236
+ }>;
237
+ ownerOverrides?: Record<string, string> | undefined;
238
+ } | (string & {
239
+ owner: string;
240
+ ownerOverrides?: Record<string, string> | undefined;
241
+ } & {
242
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
243
+ type: HookType.PROTOCOL_FEE;
244
+ owner: string;
245
+ protocolFee: string;
246
+ beneficiary: string;
247
+ maxProtocolFee: string;
248
+ ownerOverrides?: Record<string, string> | undefined;
249
+ } | {
250
+ type: HookType.PAUSABLE;
251
+ owner: string;
252
+ paused: boolean;
253
+ ownerOverrides?: Record<string, string> | undefined;
254
+ } | {
255
+ type: HookType.OP_STACK;
256
+ owner: string;
257
+ nativeBridge: string;
258
+ destinationChain: string;
259
+ ownerOverrides?: Record<string, string> | undefined;
260
+ } | {
261
+ type: HookType.MERKLE_TREE;
262
+ } | {
263
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
264
+ owner: string;
265
+ beneficiary: string;
266
+ oracleKey: string;
267
+ overhead: Record<string, number>;
268
+ oracleConfig: Record<string, {
269
+ gasPrice: string;
270
+ tokenExchangeRate: string;
271
+ }>;
272
+ ownerOverrides?: Record<string, string> | undefined;
273
+ }>;
274
+ } & {
275
+ type: HookType.ROUTING;
276
+ }) | (string & {
277
+ owner: string;
278
+ ownerOverrides?: Record<string, string> | undefined;
279
+ } & {
280
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
281
+ type: HookType.PROTOCOL_FEE;
282
+ owner: string;
283
+ protocolFee: string;
284
+ beneficiary: string;
285
+ maxProtocolFee: string;
286
+ ownerOverrides?: Record<string, string> | undefined;
287
+ } | {
288
+ type: HookType.PAUSABLE;
289
+ owner: string;
290
+ paused: boolean;
291
+ ownerOverrides?: Record<string, string> | undefined;
292
+ } | {
293
+ type: HookType.OP_STACK;
294
+ owner: string;
295
+ nativeBridge: string;
296
+ destinationChain: string;
297
+ ownerOverrides?: Record<string, string> | undefined;
298
+ } | {
299
+ type: HookType.MERKLE_TREE;
300
+ } | {
301
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
302
+ owner: string;
303
+ beneficiary: string;
304
+ oracleKey: string;
305
+ overhead: Record<string, number>;
306
+ oracleConfig: Record<string, {
307
+ gasPrice: string;
308
+ tokenExchangeRate: string;
309
+ }>;
310
+ ownerOverrides?: Record<string, string> | undefined;
311
+ }>;
312
+ } & {
313
+ type: HookType.FALLBACK_ROUTING;
314
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
315
+ type: HookType.PROTOCOL_FEE;
316
+ owner: string;
317
+ protocolFee: string;
318
+ beneficiary: string;
319
+ maxProtocolFee: string;
320
+ ownerOverrides?: Record<string, string> | undefined;
321
+ } | {
322
+ type: HookType.PAUSABLE;
323
+ owner: string;
324
+ paused: boolean;
325
+ ownerOverrides?: Record<string, string> | undefined;
326
+ } | {
327
+ type: HookType.OP_STACK;
328
+ owner: string;
329
+ nativeBridge: string;
330
+ destinationChain: string;
331
+ ownerOverrides?: Record<string, string> | undefined;
332
+ } | {
333
+ type: HookType.MERKLE_TREE;
334
+ } | {
335
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
336
+ owner: string;
337
+ beneficiary: string;
338
+ oracleKey: string;
339
+ overhead: Record<string, number>;
340
+ oracleConfig: Record<string, {
341
+ gasPrice: string;
342
+ tokenExchangeRate: string;
343
+ }>;
344
+ ownerOverrides?: Record<string, string> | undefined;
345
+ };
346
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
347
+ type: HookType.PROTOCOL_FEE;
348
+ owner: string;
349
+ protocolFee: string;
350
+ beneficiary: string;
351
+ maxProtocolFee: string;
352
+ ownerOverrides?: Record<string, string> | undefined;
353
+ }) | (string & {
354
+ type: HookType.PAUSABLE;
355
+ owner: string;
356
+ paused: boolean;
357
+ ownerOverrides?: Record<string, string> | undefined;
358
+ }) | (string & {
359
+ type: HookType.OP_STACK;
360
+ owner: string;
361
+ nativeBridge: string;
362
+ destinationChain: string;
363
+ ownerOverrides?: Record<string, string> | undefined;
364
+ }) | (string & {
365
+ type: HookType.MERKLE_TREE;
366
+ }) | (string & {
367
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
368
+ owner: string;
369
+ beneficiary: string;
370
+ oracleKey: string;
371
+ overhead: Record<string, number>;
372
+ oracleConfig: Record<string, {
373
+ gasPrice: string;
374
+ tokenExchangeRate: string;
375
+ }>;
376
+ ownerOverrides?: Record<string, string> | undefined;
377
+ }) | ({
378
+ owner: string;
379
+ ownerOverrides?: Record<string, string> | undefined;
380
+ } & {
381
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
382
+ type: HookType.PROTOCOL_FEE;
383
+ owner: string;
384
+ protocolFee: string;
385
+ beneficiary: string;
386
+ maxProtocolFee: string;
387
+ ownerOverrides?: Record<string, string> | undefined;
388
+ } | {
389
+ type: HookType.PAUSABLE;
390
+ owner: string;
391
+ paused: boolean;
392
+ ownerOverrides?: Record<string, string> | undefined;
393
+ } | {
394
+ type: HookType.OP_STACK;
395
+ owner: string;
396
+ nativeBridge: string;
397
+ destinationChain: string;
398
+ ownerOverrides?: Record<string, string> | undefined;
399
+ } | {
400
+ type: HookType.MERKLE_TREE;
401
+ } | {
402
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
403
+ owner: string;
404
+ beneficiary: string;
405
+ oracleKey: string;
406
+ overhead: Record<string, number>;
407
+ oracleConfig: Record<string, {
408
+ gasPrice: string;
409
+ tokenExchangeRate: string;
410
+ }>;
411
+ ownerOverrides?: Record<string, string> | undefined;
412
+ }>;
413
+ } & {
414
+ type: HookType.ROUTING;
415
+ } & string) | ({
416
+ owner: string;
417
+ ownerOverrides?: Record<string, string> | undefined;
418
+ } & {
419
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
420
+ type: HookType.PROTOCOL_FEE;
421
+ owner: string;
422
+ protocolFee: string;
423
+ beneficiary: string;
424
+ maxProtocolFee: string;
425
+ ownerOverrides?: Record<string, string> | undefined;
426
+ } | {
427
+ type: HookType.PAUSABLE;
428
+ owner: string;
429
+ paused: boolean;
430
+ ownerOverrides?: Record<string, string> | undefined;
431
+ } | {
432
+ type: HookType.OP_STACK;
433
+ owner: string;
434
+ nativeBridge: string;
435
+ destinationChain: string;
436
+ ownerOverrides?: Record<string, string> | undefined;
437
+ } | {
438
+ type: HookType.MERKLE_TREE;
439
+ } | {
440
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
441
+ owner: string;
442
+ beneficiary: string;
443
+ oracleKey: string;
444
+ overhead: Record<string, number>;
445
+ oracleConfig: Record<string, {
446
+ gasPrice: string;
447
+ tokenExchangeRate: string;
448
+ }>;
449
+ ownerOverrides?: Record<string, string> | undefined;
450
+ }>;
451
+ } & {
452
+ type: HookType.ROUTING;
453
+ }) | ({
454
+ owner: string;
455
+ ownerOverrides?: Record<string, string> | undefined;
456
+ } & {
457
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
458
+ type: HookType.PROTOCOL_FEE;
459
+ owner: string;
460
+ protocolFee: string;
461
+ beneficiary: string;
462
+ maxProtocolFee: string;
463
+ ownerOverrides?: Record<string, string> | undefined;
464
+ } | {
465
+ type: HookType.PAUSABLE;
466
+ owner: string;
467
+ paused: boolean;
468
+ ownerOverrides?: Record<string, string> | undefined;
469
+ } | {
470
+ type: HookType.OP_STACK;
471
+ owner: string;
472
+ nativeBridge: string;
473
+ destinationChain: string;
474
+ ownerOverrides?: Record<string, string> | undefined;
475
+ } | {
476
+ type: HookType.MERKLE_TREE;
477
+ } | {
478
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
479
+ owner: string;
480
+ beneficiary: string;
481
+ oracleKey: string;
482
+ overhead: Record<string, number>;
483
+ oracleConfig: Record<string, {
484
+ gasPrice: string;
485
+ tokenExchangeRate: string;
486
+ }>;
487
+ ownerOverrides?: Record<string, string> | undefined;
488
+ }>;
489
+ } & {
490
+ type: HookType.FALLBACK_ROUTING;
491
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
492
+ type: HookType.PROTOCOL_FEE;
493
+ owner: string;
494
+ protocolFee: string;
495
+ beneficiary: string;
496
+ maxProtocolFee: string;
497
+ ownerOverrides?: Record<string, string> | undefined;
498
+ } | {
499
+ type: HookType.PAUSABLE;
500
+ owner: string;
501
+ paused: boolean;
502
+ ownerOverrides?: Record<string, string> | undefined;
503
+ } | {
504
+ type: HookType.OP_STACK;
505
+ owner: string;
506
+ nativeBridge: string;
507
+ destinationChain: string;
508
+ ownerOverrides?: Record<string, string> | undefined;
509
+ } | {
510
+ type: HookType.MERKLE_TREE;
511
+ } | {
512
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
513
+ owner: string;
514
+ beneficiary: string;
515
+ oracleKey: string;
516
+ overhead: Record<string, number>;
517
+ oracleConfig: Record<string, {
518
+ gasPrice: string;
519
+ tokenExchangeRate: string;
520
+ }>;
521
+ ownerOverrides?: Record<string, string> | undefined;
522
+ };
523
+ } & string) | ({
524
+ owner: string;
525
+ ownerOverrides?: Record<string, string> | undefined;
526
+ } & {
527
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
528
+ type: HookType.PROTOCOL_FEE;
529
+ owner: string;
530
+ protocolFee: string;
531
+ beneficiary: string;
532
+ maxProtocolFee: string;
533
+ ownerOverrides?: Record<string, string> | undefined;
534
+ } | {
535
+ type: HookType.PAUSABLE;
536
+ owner: string;
537
+ paused: boolean;
538
+ ownerOverrides?: Record<string, string> | undefined;
539
+ } | {
540
+ type: HookType.OP_STACK;
541
+ owner: string;
542
+ nativeBridge: string;
543
+ destinationChain: string;
544
+ ownerOverrides?: Record<string, string> | undefined;
545
+ } | {
546
+ type: HookType.MERKLE_TREE;
547
+ } | {
548
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
549
+ owner: string;
550
+ beneficiary: string;
551
+ oracleKey: string;
552
+ overhead: Record<string, number>;
553
+ oracleConfig: Record<string, {
554
+ gasPrice: string;
555
+ tokenExchangeRate: string;
556
+ }>;
557
+ ownerOverrides?: Record<string, string> | undefined;
558
+ }>;
559
+ } & {
560
+ type: HookType.FALLBACK_ROUTING;
561
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
562
+ type: HookType.PROTOCOL_FEE;
563
+ owner: string;
564
+ protocolFee: string;
565
+ beneficiary: string;
566
+ maxProtocolFee: string;
567
+ ownerOverrides?: Record<string, string> | undefined;
568
+ } | {
569
+ type: HookType.PAUSABLE;
570
+ owner: string;
571
+ paused: boolean;
572
+ ownerOverrides?: Record<string, string> | undefined;
573
+ } | {
574
+ type: HookType.OP_STACK;
575
+ owner: string;
576
+ nativeBridge: string;
577
+ destinationChain: string;
578
+ ownerOverrides?: Record<string, string> | undefined;
579
+ } | {
580
+ type: HookType.MERKLE_TREE;
581
+ } | {
582
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
583
+ owner: string;
584
+ beneficiary: string;
585
+ oracleKey: string;
586
+ overhead: Record<string, number>;
587
+ oracleConfig: Record<string, {
588
+ gasPrice: string;
589
+ tokenExchangeRate: string;
590
+ }>;
591
+ ownerOverrides?: Record<string, string> | undefined;
592
+ };
593
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | ({
594
+ type: HookType.PROTOCOL_FEE;
595
+ owner: string;
596
+ protocolFee: string;
597
+ beneficiary: string;
598
+ maxProtocolFee: string;
599
+ ownerOverrides?: Record<string, string> | undefined;
600
+ } & string) | ({
601
+ type: HookType.PAUSABLE;
602
+ owner: string;
603
+ paused: boolean;
604
+ ownerOverrides?: Record<string, string> | undefined;
605
+ } & string) | ({
606
+ type: HookType.OP_STACK;
607
+ owner: string;
608
+ nativeBridge: string;
609
+ destinationChain: string;
610
+ ownerOverrides?: Record<string, string> | undefined;
611
+ } & string) | ({
612
+ type: HookType.MERKLE_TREE;
613
+ } & string) | ({
614
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
615
+ owner: string;
616
+ beneficiary: string;
617
+ oracleKey: string;
618
+ overhead: Record<string, number>;
619
+ oracleConfig: Record<string, {
620
+ gasPrice: string;
621
+ tokenExchangeRate: string;
622
+ }>;
623
+ ownerOverrides?: Record<string, string> | undefined;
624
+ } & string);
625
+ required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
626
+ type: HookType.PROTOCOL_FEE;
627
+ owner: string;
628
+ protocolFee: string;
629
+ beneficiary: string;
630
+ maxProtocolFee: string;
631
+ ownerOverrides?: Record<string, string> | undefined;
632
+ } | {
633
+ type: HookType.PAUSABLE;
634
+ owner: string;
635
+ paused: boolean;
636
+ ownerOverrides?: Record<string, string> | undefined;
637
+ } | {
638
+ type: HookType.OP_STACK;
639
+ owner: string;
640
+ nativeBridge: string;
641
+ destinationChain: string;
642
+ ownerOverrides?: Record<string, string> | undefined;
643
+ } | {
644
+ type: HookType.MERKLE_TREE;
645
+ } | {
646
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
647
+ owner: string;
648
+ beneficiary: string;
649
+ oracleKey: string;
650
+ overhead: Record<string, number>;
651
+ oracleConfig: Record<string, {
652
+ gasPrice: string;
653
+ tokenExchangeRate: string;
654
+ }>;
655
+ ownerOverrides?: Record<string, string> | undefined;
656
+ } | (string & {
657
+ owner: string;
658
+ ownerOverrides?: Record<string, string> | undefined;
659
+ } & {
660
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
661
+ type: HookType.PROTOCOL_FEE;
662
+ owner: string;
663
+ protocolFee: string;
664
+ beneficiary: string;
665
+ maxProtocolFee: string;
666
+ ownerOverrides?: Record<string, string> | undefined;
667
+ } | {
668
+ type: HookType.PAUSABLE;
669
+ owner: string;
670
+ paused: boolean;
671
+ ownerOverrides?: Record<string, string> | undefined;
672
+ } | {
673
+ type: HookType.OP_STACK;
674
+ owner: string;
675
+ nativeBridge: string;
676
+ destinationChain: string;
677
+ ownerOverrides?: Record<string, string> | undefined;
678
+ } | {
679
+ type: HookType.MERKLE_TREE;
680
+ } | {
681
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
682
+ owner: string;
683
+ beneficiary: string;
684
+ oracleKey: string;
685
+ overhead: Record<string, number>;
686
+ oracleConfig: Record<string, {
687
+ gasPrice: string;
688
+ tokenExchangeRate: string;
689
+ }>;
690
+ ownerOverrides?: Record<string, string> | undefined;
691
+ }>;
692
+ } & {
693
+ type: HookType.ROUTING;
694
+ }) | (string & {
695
+ owner: string;
696
+ ownerOverrides?: Record<string, string> | undefined;
697
+ } & {
698
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
699
+ type: HookType.PROTOCOL_FEE;
700
+ owner: string;
701
+ protocolFee: string;
702
+ beneficiary: string;
703
+ maxProtocolFee: string;
704
+ ownerOverrides?: Record<string, string> | undefined;
705
+ } | {
706
+ type: HookType.PAUSABLE;
707
+ owner: string;
708
+ paused: boolean;
709
+ ownerOverrides?: Record<string, string> | undefined;
710
+ } | {
711
+ type: HookType.OP_STACK;
712
+ owner: string;
713
+ nativeBridge: string;
714
+ destinationChain: string;
715
+ ownerOverrides?: Record<string, string> | undefined;
716
+ } | {
717
+ type: HookType.MERKLE_TREE;
718
+ } | {
719
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
720
+ owner: string;
721
+ beneficiary: string;
722
+ oracleKey: string;
723
+ overhead: Record<string, number>;
724
+ oracleConfig: Record<string, {
725
+ gasPrice: string;
726
+ tokenExchangeRate: string;
727
+ }>;
728
+ ownerOverrides?: Record<string, string> | undefined;
729
+ }>;
730
+ } & {
731
+ type: HookType.FALLBACK_ROUTING;
732
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
733
+ type: HookType.PROTOCOL_FEE;
734
+ owner: string;
735
+ protocolFee: string;
736
+ beneficiary: string;
737
+ maxProtocolFee: string;
738
+ ownerOverrides?: Record<string, string> | undefined;
739
+ } | {
740
+ type: HookType.PAUSABLE;
741
+ owner: string;
742
+ paused: boolean;
743
+ ownerOverrides?: Record<string, string> | undefined;
744
+ } | {
745
+ type: HookType.OP_STACK;
746
+ owner: string;
747
+ nativeBridge: string;
748
+ destinationChain: string;
749
+ ownerOverrides?: Record<string, string> | undefined;
750
+ } | {
751
+ type: HookType.MERKLE_TREE;
752
+ } | {
753
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
754
+ owner: string;
755
+ beneficiary: string;
756
+ oracleKey: string;
757
+ overhead: Record<string, number>;
758
+ oracleConfig: Record<string, {
759
+ gasPrice: string;
760
+ tokenExchangeRate: string;
761
+ }>;
762
+ ownerOverrides?: Record<string, string> | undefined;
763
+ };
764
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
765
+ type: HookType.PROTOCOL_FEE;
766
+ owner: string;
767
+ protocolFee: string;
768
+ beneficiary: string;
769
+ maxProtocolFee: string;
770
+ ownerOverrides?: Record<string, string> | undefined;
771
+ }) | (string & {
772
+ type: HookType.PAUSABLE;
773
+ owner: string;
774
+ paused: boolean;
775
+ ownerOverrides?: Record<string, string> | undefined;
776
+ }) | (string & {
777
+ type: HookType.OP_STACK;
778
+ owner: string;
779
+ nativeBridge: string;
780
+ destinationChain: string;
781
+ ownerOverrides?: Record<string, string> | undefined;
782
+ }) | (string & {
783
+ type: HookType.MERKLE_TREE;
784
+ }) | (string & {
785
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
786
+ owner: string;
787
+ beneficiary: string;
788
+ oracleKey: string;
789
+ overhead: Record<string, number>;
790
+ oracleConfig: Record<string, {
791
+ gasPrice: string;
792
+ tokenExchangeRate: string;
793
+ }>;
794
+ ownerOverrides?: Record<string, string> | undefined;
795
+ }) | ({
796
+ owner: string;
797
+ ownerOverrides?: Record<string, string> | undefined;
798
+ } & {
799
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
800
+ type: HookType.PROTOCOL_FEE;
801
+ owner: string;
802
+ protocolFee: string;
803
+ beneficiary: string;
804
+ maxProtocolFee: string;
805
+ ownerOverrides?: Record<string, string> | undefined;
806
+ } | {
807
+ type: HookType.PAUSABLE;
808
+ owner: string;
809
+ paused: boolean;
810
+ ownerOverrides?: Record<string, string> | undefined;
811
+ } | {
812
+ type: HookType.OP_STACK;
813
+ owner: string;
814
+ nativeBridge: string;
815
+ destinationChain: string;
816
+ ownerOverrides?: Record<string, string> | undefined;
817
+ } | {
818
+ type: HookType.MERKLE_TREE;
819
+ } | {
820
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
821
+ owner: string;
822
+ beneficiary: string;
823
+ oracleKey: string;
824
+ overhead: Record<string, number>;
825
+ oracleConfig: Record<string, {
826
+ gasPrice: string;
827
+ tokenExchangeRate: string;
828
+ }>;
829
+ ownerOverrides?: Record<string, string> | undefined;
830
+ }>;
831
+ } & {
832
+ type: HookType.ROUTING;
833
+ } & string) | ({
834
+ owner: string;
835
+ ownerOverrides?: Record<string, string> | undefined;
836
+ } & {
837
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
838
+ type: HookType.PROTOCOL_FEE;
839
+ owner: string;
840
+ protocolFee: string;
841
+ beneficiary: string;
842
+ maxProtocolFee: string;
843
+ ownerOverrides?: Record<string, string> | undefined;
844
+ } | {
845
+ type: HookType.PAUSABLE;
846
+ owner: string;
847
+ paused: boolean;
848
+ ownerOverrides?: Record<string, string> | undefined;
849
+ } | {
850
+ type: HookType.OP_STACK;
851
+ owner: string;
852
+ nativeBridge: string;
853
+ destinationChain: string;
854
+ ownerOverrides?: Record<string, string> | undefined;
855
+ } | {
856
+ type: HookType.MERKLE_TREE;
857
+ } | {
858
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
859
+ owner: string;
860
+ beneficiary: string;
861
+ oracleKey: string;
862
+ overhead: Record<string, number>;
863
+ oracleConfig: Record<string, {
864
+ gasPrice: string;
865
+ tokenExchangeRate: string;
866
+ }>;
867
+ ownerOverrides?: Record<string, string> | undefined;
868
+ }>;
869
+ } & {
870
+ type: HookType.ROUTING;
871
+ }) | ({
872
+ owner: string;
873
+ ownerOverrides?: Record<string, string> | undefined;
874
+ } & {
875
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
876
+ type: HookType.PROTOCOL_FEE;
877
+ owner: string;
878
+ protocolFee: string;
879
+ beneficiary: string;
880
+ maxProtocolFee: string;
881
+ ownerOverrides?: Record<string, string> | undefined;
882
+ } | {
883
+ type: HookType.PAUSABLE;
884
+ owner: string;
885
+ paused: boolean;
886
+ ownerOverrides?: Record<string, string> | undefined;
887
+ } | {
888
+ type: HookType.OP_STACK;
889
+ owner: string;
890
+ nativeBridge: string;
891
+ destinationChain: string;
892
+ ownerOverrides?: Record<string, string> | undefined;
893
+ } | {
894
+ type: HookType.MERKLE_TREE;
895
+ } | {
896
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
897
+ owner: string;
898
+ beneficiary: string;
899
+ oracleKey: string;
900
+ overhead: Record<string, number>;
901
+ oracleConfig: Record<string, {
902
+ gasPrice: string;
903
+ tokenExchangeRate: string;
904
+ }>;
905
+ ownerOverrides?: Record<string, string> | undefined;
906
+ }>;
907
+ } & {
908
+ type: HookType.FALLBACK_ROUTING;
909
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
910
+ type: HookType.PROTOCOL_FEE;
911
+ owner: string;
912
+ protocolFee: string;
913
+ beneficiary: string;
914
+ maxProtocolFee: string;
915
+ ownerOverrides?: Record<string, string> | undefined;
916
+ } | {
917
+ type: HookType.PAUSABLE;
918
+ owner: string;
919
+ paused: boolean;
920
+ ownerOverrides?: Record<string, string> | undefined;
921
+ } | {
922
+ type: HookType.OP_STACK;
923
+ owner: string;
924
+ nativeBridge: string;
925
+ destinationChain: string;
926
+ ownerOverrides?: Record<string, string> | undefined;
927
+ } | {
928
+ type: HookType.MERKLE_TREE;
929
+ } | {
930
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
931
+ owner: string;
932
+ beneficiary: string;
933
+ oracleKey: string;
934
+ overhead: Record<string, number>;
935
+ oracleConfig: Record<string, {
936
+ gasPrice: string;
937
+ tokenExchangeRate: string;
938
+ }>;
939
+ ownerOverrides?: Record<string, string> | undefined;
940
+ };
941
+ } & string) | ({
942
+ owner: string;
943
+ ownerOverrides?: Record<string, string> | undefined;
944
+ } & {
945
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
946
+ type: HookType.PROTOCOL_FEE;
947
+ owner: string;
948
+ protocolFee: string;
949
+ beneficiary: string;
950
+ maxProtocolFee: string;
951
+ ownerOverrides?: Record<string, string> | undefined;
952
+ } | {
953
+ type: HookType.PAUSABLE;
954
+ owner: string;
955
+ paused: boolean;
956
+ ownerOverrides?: Record<string, string> | undefined;
957
+ } | {
958
+ type: HookType.OP_STACK;
959
+ owner: string;
960
+ nativeBridge: string;
961
+ destinationChain: string;
962
+ ownerOverrides?: Record<string, string> | undefined;
963
+ } | {
964
+ type: HookType.MERKLE_TREE;
965
+ } | {
966
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
967
+ owner: string;
968
+ beneficiary: string;
969
+ oracleKey: string;
970
+ overhead: Record<string, number>;
971
+ oracleConfig: Record<string, {
972
+ gasPrice: string;
973
+ tokenExchangeRate: string;
974
+ }>;
975
+ ownerOverrides?: Record<string, string> | undefined;
976
+ }>;
977
+ } & {
978
+ type: HookType.FALLBACK_ROUTING;
979
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
980
+ type: HookType.PROTOCOL_FEE;
981
+ owner: string;
982
+ protocolFee: string;
983
+ beneficiary: string;
984
+ maxProtocolFee: string;
985
+ ownerOverrides?: Record<string, string> | undefined;
986
+ } | {
987
+ type: HookType.PAUSABLE;
988
+ owner: string;
989
+ paused: boolean;
990
+ ownerOverrides?: Record<string, string> | undefined;
991
+ } | {
992
+ type: HookType.OP_STACK;
993
+ owner: string;
994
+ nativeBridge: string;
995
+ destinationChain: string;
996
+ ownerOverrides?: Record<string, string> | undefined;
997
+ } | {
998
+ type: HookType.MERKLE_TREE;
999
+ } | {
1000
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1001
+ owner: string;
1002
+ beneficiary: string;
1003
+ oracleKey: string;
1004
+ overhead: Record<string, number>;
1005
+ oracleConfig: Record<string, {
1006
+ gasPrice: string;
1007
+ tokenExchangeRate: string;
1008
+ }>;
1009
+ 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);
148
1043
  }, {
149
- required?: any;
150
- default?: any;
151
- }>>;
152
- export type HooksConfigMap = z.infer<typeof HooksConfigMapSchema>;
153
- export declare function isValidHookConfigMap(config: any): boolean;
154
- export declare function presetHookConfigs(owner: Address): HooksConfig;
155
- export declare function readHooksConfigMap(filePath: string): ChainMap<HooksConfig> | undefined;
156
- export declare function createHooksConfigMap({ context, outPath, }: {
157
- context: CommandContext;
158
- outPath: string;
159
- }): Promise<void>;
160
- export declare function createHookConfig(context: CommandContext, chain: ChainName, remotes: ChainName[]): Promise<HookConfig>;
161
- export declare function createProtocolFeeConfig(context: CommandContext, chain: ChainName): Promise<HookConfig>;
1044
+ default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1045
+ type: HookType.PROTOCOL_FEE;
1046
+ owner: string;
1047
+ protocolFee: string;
1048
+ beneficiary: string;
1049
+ maxProtocolFee: string;
1050
+ ownerOverrides?: Record<string, string> | undefined;
1051
+ } | {
1052
+ type: HookType.PAUSABLE;
1053
+ owner: string;
1054
+ paused: boolean;
1055
+ ownerOverrides?: Record<string, string> | undefined;
1056
+ } | {
1057
+ type: HookType.OP_STACK;
1058
+ owner: string;
1059
+ nativeBridge: string;
1060
+ destinationChain: string;
1061
+ ownerOverrides?: Record<string, string> | undefined;
1062
+ } | {
1063
+ type: HookType.MERKLE_TREE;
1064
+ } | {
1065
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1066
+ owner: string;
1067
+ beneficiary: string;
1068
+ oracleKey: string;
1069
+ overhead: Record<string, number>;
1070
+ oracleConfig: Record<string, {
1071
+ gasPrice: string;
1072
+ tokenExchangeRate: string;
1073
+ }>;
1074
+ ownerOverrides?: Record<string, string> | undefined;
1075
+ } | (string & {
1076
+ owner: string;
1077
+ ownerOverrides?: Record<string, string> | undefined;
1078
+ } & {
1079
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1080
+ type: HookType.PROTOCOL_FEE;
1081
+ owner: string;
1082
+ protocolFee: string;
1083
+ beneficiary: string;
1084
+ maxProtocolFee: string;
1085
+ ownerOverrides?: Record<string, string> | undefined;
1086
+ } | {
1087
+ type: HookType.PAUSABLE;
1088
+ owner: string;
1089
+ paused: boolean;
1090
+ ownerOverrides?: Record<string, string> | undefined;
1091
+ } | {
1092
+ type: HookType.OP_STACK;
1093
+ owner: string;
1094
+ nativeBridge: string;
1095
+ destinationChain: string;
1096
+ ownerOverrides?: Record<string, string> | undefined;
1097
+ } | {
1098
+ type: HookType.MERKLE_TREE;
1099
+ } | {
1100
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1101
+ owner: string;
1102
+ beneficiary: string;
1103
+ oracleKey: string;
1104
+ overhead: Record<string, number>;
1105
+ oracleConfig: Record<string, {
1106
+ gasPrice: string;
1107
+ tokenExchangeRate: string;
1108
+ }>;
1109
+ ownerOverrides?: Record<string, string> | undefined;
1110
+ }>;
1111
+ } & {
1112
+ type: HookType.ROUTING;
1113
+ }) | (string & {
1114
+ owner: string;
1115
+ ownerOverrides?: Record<string, string> | undefined;
1116
+ } & {
1117
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1118
+ type: HookType.PROTOCOL_FEE;
1119
+ owner: string;
1120
+ protocolFee: string;
1121
+ beneficiary: string;
1122
+ maxProtocolFee: string;
1123
+ ownerOverrides?: Record<string, string> | undefined;
1124
+ } | {
1125
+ type: HookType.PAUSABLE;
1126
+ owner: string;
1127
+ paused: boolean;
1128
+ ownerOverrides?: Record<string, string> | undefined;
1129
+ } | {
1130
+ type: HookType.OP_STACK;
1131
+ owner: string;
1132
+ nativeBridge: string;
1133
+ destinationChain: string;
1134
+ ownerOverrides?: Record<string, string> | undefined;
1135
+ } | {
1136
+ type: HookType.MERKLE_TREE;
1137
+ } | {
1138
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1139
+ owner: string;
1140
+ beneficiary: string;
1141
+ oracleKey: string;
1142
+ overhead: Record<string, number>;
1143
+ oracleConfig: Record<string, {
1144
+ gasPrice: string;
1145
+ tokenExchangeRate: string;
1146
+ }>;
1147
+ ownerOverrides?: Record<string, string> | undefined;
1148
+ }>;
1149
+ } & {
1150
+ type: HookType.FALLBACK_ROUTING;
1151
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1152
+ type: HookType.PROTOCOL_FEE;
1153
+ owner: string;
1154
+ protocolFee: string;
1155
+ beneficiary: string;
1156
+ maxProtocolFee: string;
1157
+ ownerOverrides?: Record<string, string> | undefined;
1158
+ } | {
1159
+ type: HookType.PAUSABLE;
1160
+ owner: string;
1161
+ paused: boolean;
1162
+ ownerOverrides?: Record<string, string> | undefined;
1163
+ } | {
1164
+ type: HookType.OP_STACK;
1165
+ owner: string;
1166
+ nativeBridge: string;
1167
+ destinationChain: string;
1168
+ ownerOverrides?: Record<string, string> | undefined;
1169
+ } | {
1170
+ type: HookType.MERKLE_TREE;
1171
+ } | {
1172
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1173
+ owner: string;
1174
+ beneficiary: string;
1175
+ oracleKey: string;
1176
+ overhead: Record<string, number>;
1177
+ oracleConfig: Record<string, {
1178
+ gasPrice: string;
1179
+ tokenExchangeRate: string;
1180
+ }>;
1181
+ ownerOverrides?: Record<string, string> | undefined;
1182
+ };
1183
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
1184
+ owner: string;
1185
+ ownerOverrides?: Record<string, string> | undefined;
1186
+ } & {
1187
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1188
+ type: HookType.PROTOCOL_FEE;
1189
+ owner: string;
1190
+ protocolFee: string;
1191
+ beneficiary: string;
1192
+ maxProtocolFee: string;
1193
+ ownerOverrides?: Record<string, string> | undefined;
1194
+ } | {
1195
+ type: HookType.PAUSABLE;
1196
+ owner: string;
1197
+ paused: boolean;
1198
+ ownerOverrides?: Record<string, string> | undefined;
1199
+ } | {
1200
+ type: HookType.OP_STACK;
1201
+ owner: string;
1202
+ nativeBridge: string;
1203
+ destinationChain: string;
1204
+ ownerOverrides?: Record<string, string> | undefined;
1205
+ } | {
1206
+ type: HookType.MERKLE_TREE;
1207
+ } | {
1208
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1209
+ owner: string;
1210
+ beneficiary: string;
1211
+ oracleKey: string;
1212
+ overhead: Record<string, number>;
1213
+ oracleConfig: Record<string, {
1214
+ gasPrice: string;
1215
+ tokenExchangeRate: string;
1216
+ }>;
1217
+ ownerOverrides?: Record<string, string> | undefined;
1218
+ }>;
1219
+ } & {
1220
+ type: HookType.ROUTING;
1221
+ } & string) | ({
1222
+ owner: string;
1223
+ ownerOverrides?: Record<string, string> | undefined;
1224
+ } & {
1225
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1226
+ type: HookType.PROTOCOL_FEE;
1227
+ owner: string;
1228
+ protocolFee: string;
1229
+ beneficiary: string;
1230
+ maxProtocolFee: string;
1231
+ ownerOverrides?: Record<string, string> | undefined;
1232
+ } | {
1233
+ type: HookType.PAUSABLE;
1234
+ owner: string;
1235
+ paused: boolean;
1236
+ ownerOverrides?: Record<string, string> | undefined;
1237
+ } | {
1238
+ type: HookType.OP_STACK;
1239
+ owner: string;
1240
+ nativeBridge: string;
1241
+ destinationChain: string;
1242
+ ownerOverrides?: Record<string, string> | undefined;
1243
+ } | {
1244
+ type: HookType.MERKLE_TREE;
1245
+ } | {
1246
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1247
+ owner: string;
1248
+ beneficiary: string;
1249
+ oracleKey: string;
1250
+ overhead: Record<string, number>;
1251
+ oracleConfig: Record<string, {
1252
+ gasPrice: string;
1253
+ tokenExchangeRate: string;
1254
+ }>;
1255
+ ownerOverrides?: Record<string, string> | undefined;
1256
+ }>;
1257
+ } & {
1258
+ type: HookType.ROUTING;
1259
+ }) | ({
1260
+ owner: string;
1261
+ ownerOverrides?: Record<string, string> | undefined;
1262
+ } & {
1263
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1264
+ type: HookType.PROTOCOL_FEE;
1265
+ owner: string;
1266
+ protocolFee: string;
1267
+ beneficiary: string;
1268
+ maxProtocolFee: string;
1269
+ ownerOverrides?: Record<string, string> | undefined;
1270
+ } | {
1271
+ type: HookType.PAUSABLE;
1272
+ owner: string;
1273
+ paused: boolean;
1274
+ ownerOverrides?: Record<string, string> | undefined;
1275
+ } | {
1276
+ type: HookType.OP_STACK;
1277
+ owner: string;
1278
+ nativeBridge: string;
1279
+ destinationChain: string;
1280
+ ownerOverrides?: Record<string, string> | undefined;
1281
+ } | {
1282
+ type: HookType.MERKLE_TREE;
1283
+ } | {
1284
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1285
+ owner: string;
1286
+ beneficiary: string;
1287
+ oracleKey: string;
1288
+ overhead: Record<string, number>;
1289
+ oracleConfig: Record<string, {
1290
+ gasPrice: string;
1291
+ tokenExchangeRate: string;
1292
+ }>;
1293
+ ownerOverrides?: Record<string, string> | undefined;
1294
+ }>;
1295
+ } & {
1296
+ type: HookType.FALLBACK_ROUTING;
1297
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1298
+ type: HookType.PROTOCOL_FEE;
1299
+ owner: string;
1300
+ protocolFee: string;
1301
+ beneficiary: string;
1302
+ maxProtocolFee: string;
1303
+ ownerOverrides?: Record<string, string> | undefined;
1304
+ } | {
1305
+ type: HookType.PAUSABLE;
1306
+ owner: string;
1307
+ paused: boolean;
1308
+ ownerOverrides?: Record<string, string> | undefined;
1309
+ } | {
1310
+ type: HookType.OP_STACK;
1311
+ owner: string;
1312
+ nativeBridge: string;
1313
+ destinationChain: string;
1314
+ ownerOverrides?: Record<string, string> | undefined;
1315
+ } | {
1316
+ type: HookType.MERKLE_TREE;
1317
+ } | {
1318
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1319
+ owner: string;
1320
+ beneficiary: string;
1321
+ oracleKey: string;
1322
+ overhead: Record<string, number>;
1323
+ oracleConfig: Record<string, {
1324
+ gasPrice: string;
1325
+ tokenExchangeRate: string;
1326
+ }>;
1327
+ ownerOverrides?: Record<string, string> | undefined;
1328
+ };
1329
+ } & string) | ({
1330
+ owner: string;
1331
+ ownerOverrides?: Record<string, string> | undefined;
1332
+ } & {
1333
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1334
+ type: HookType.PROTOCOL_FEE;
1335
+ owner: string;
1336
+ protocolFee: string;
1337
+ beneficiary: string;
1338
+ maxProtocolFee: string;
1339
+ ownerOverrides?: Record<string, string> | undefined;
1340
+ } | {
1341
+ type: HookType.PAUSABLE;
1342
+ owner: string;
1343
+ paused: boolean;
1344
+ ownerOverrides?: Record<string, string> | undefined;
1345
+ } | {
1346
+ type: HookType.OP_STACK;
1347
+ owner: string;
1348
+ nativeBridge: string;
1349
+ destinationChain: string;
1350
+ ownerOverrides?: Record<string, string> | undefined;
1351
+ } | {
1352
+ type: HookType.MERKLE_TREE;
1353
+ } | {
1354
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1355
+ owner: string;
1356
+ beneficiary: string;
1357
+ oracleKey: string;
1358
+ overhead: Record<string, number>;
1359
+ oracleConfig: Record<string, {
1360
+ gasPrice: string;
1361
+ tokenExchangeRate: string;
1362
+ }>;
1363
+ ownerOverrides?: Record<string, string> | undefined;
1364
+ }>;
1365
+ } & {
1366
+ type: HookType.FALLBACK_ROUTING;
1367
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1368
+ type: HookType.PROTOCOL_FEE;
1369
+ owner: string;
1370
+ protocolFee: string;
1371
+ beneficiary: string;
1372
+ maxProtocolFee: string;
1373
+ ownerOverrides?: Record<string, string> | undefined;
1374
+ } | {
1375
+ type: HookType.PAUSABLE;
1376
+ owner: string;
1377
+ paused: boolean;
1378
+ ownerOverrides?: Record<string, string> | undefined;
1379
+ } | {
1380
+ type: HookType.OP_STACK;
1381
+ owner: string;
1382
+ nativeBridge: string;
1383
+ destinationChain: string;
1384
+ ownerOverrides?: Record<string, string> | undefined;
1385
+ } | {
1386
+ type: HookType.MERKLE_TREE;
1387
+ } | {
1388
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1389
+ owner: string;
1390
+ beneficiary: string;
1391
+ oracleKey: string;
1392
+ overhead: Record<string, number>;
1393
+ oracleConfig: Record<string, {
1394
+ gasPrice: string;
1395
+ tokenExchangeRate: string;
1396
+ }>;
1397
+ ownerOverrides?: Record<string, string> | undefined;
1398
+ };
1399
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | (string & {
1400
+ type: HookType.PROTOCOL_FEE;
1401
+ owner: string;
1402
+ protocolFee: string;
1403
+ beneficiary: string;
1404
+ maxProtocolFee: string;
1405
+ ownerOverrides?: Record<string, string> | undefined;
1406
+ }) | (string & {
1407
+ type: HookType.PAUSABLE;
1408
+ owner: string;
1409
+ paused: boolean;
1410
+ ownerOverrides?: Record<string, string> | undefined;
1411
+ }) | (string & {
1412
+ type: HookType.OP_STACK;
1413
+ owner: string;
1414
+ nativeBridge: string;
1415
+ destinationChain: string;
1416
+ ownerOverrides?: Record<string, string> | undefined;
1417
+ }) | (string & {
1418
+ type: HookType.MERKLE_TREE;
1419
+ }) | (string & {
1420
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1421
+ owner: string;
1422
+ beneficiary: string;
1423
+ oracleKey: string;
1424
+ overhead: Record<string, number>;
1425
+ oracleConfig: Record<string, {
1426
+ gasPrice: string;
1427
+ tokenExchangeRate: string;
1428
+ }>;
1429
+ ownerOverrides?: Record<string, string> | undefined;
1430
+ }) | ({
1431
+ type: HookType.PROTOCOL_FEE;
1432
+ owner: string;
1433
+ protocolFee: string;
1434
+ beneficiary: string;
1435
+ maxProtocolFee: string;
1436
+ ownerOverrides?: Record<string, string> | undefined;
1437
+ } & string) | ({
1438
+ type: HookType.PAUSABLE;
1439
+ owner: string;
1440
+ paused: boolean;
1441
+ ownerOverrides?: Record<string, string> | undefined;
1442
+ } & string) | ({
1443
+ type: HookType.OP_STACK;
1444
+ owner: string;
1445
+ nativeBridge: string;
1446
+ destinationChain: string;
1447
+ ownerOverrides?: Record<string, string> | undefined;
1448
+ } & string) | ({
1449
+ type: HookType.MERKLE_TREE;
1450
+ } & string) | ({
1451
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1452
+ owner: string;
1453
+ beneficiary: string;
1454
+ oracleKey: string;
1455
+ overhead: Record<string, number>;
1456
+ oracleConfig: Record<string, {
1457
+ gasPrice: string;
1458
+ tokenExchangeRate: string;
1459
+ }>;
1460
+ ownerOverrides?: Record<string, string> | undefined;
1461
+ } & string);
1462
+ required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1463
+ type: HookType.PROTOCOL_FEE;
1464
+ owner: string;
1465
+ protocolFee: string;
1466
+ beneficiary: string;
1467
+ maxProtocolFee: string;
1468
+ ownerOverrides?: Record<string, string> | undefined;
1469
+ } | {
1470
+ type: HookType.PAUSABLE;
1471
+ owner: string;
1472
+ paused: boolean;
1473
+ ownerOverrides?: Record<string, string> | undefined;
1474
+ } | {
1475
+ type: HookType.OP_STACK;
1476
+ owner: string;
1477
+ nativeBridge: string;
1478
+ destinationChain: string;
1479
+ ownerOverrides?: Record<string, string> | undefined;
1480
+ } | {
1481
+ type: HookType.MERKLE_TREE;
1482
+ } | {
1483
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1484
+ owner: string;
1485
+ beneficiary: string;
1486
+ oracleKey: string;
1487
+ overhead: Record<string, number>;
1488
+ oracleConfig: Record<string, {
1489
+ gasPrice: string;
1490
+ tokenExchangeRate: string;
1491
+ }>;
1492
+ ownerOverrides?: Record<string, string> | undefined;
1493
+ } | (string & {
1494
+ owner: string;
1495
+ ownerOverrides?: Record<string, string> | undefined;
1496
+ } & {
1497
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1498
+ type: HookType.PROTOCOL_FEE;
1499
+ owner: string;
1500
+ protocolFee: string;
1501
+ beneficiary: string;
1502
+ maxProtocolFee: string;
1503
+ ownerOverrides?: Record<string, string> | undefined;
1504
+ } | {
1505
+ type: HookType.PAUSABLE;
1506
+ owner: string;
1507
+ paused: boolean;
1508
+ ownerOverrides?: Record<string, string> | undefined;
1509
+ } | {
1510
+ type: HookType.OP_STACK;
1511
+ owner: string;
1512
+ nativeBridge: string;
1513
+ destinationChain: string;
1514
+ ownerOverrides?: Record<string, string> | undefined;
1515
+ } | {
1516
+ type: HookType.MERKLE_TREE;
1517
+ } | {
1518
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1519
+ owner: string;
1520
+ beneficiary: string;
1521
+ oracleKey: string;
1522
+ overhead: Record<string, number>;
1523
+ oracleConfig: Record<string, {
1524
+ gasPrice: string;
1525
+ tokenExchangeRate: string;
1526
+ }>;
1527
+ ownerOverrides?: Record<string, string> | undefined;
1528
+ }>;
1529
+ } & {
1530
+ type: HookType.ROUTING;
1531
+ }) | (string & {
1532
+ owner: string;
1533
+ ownerOverrides?: Record<string, string> | undefined;
1534
+ } & {
1535
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1536
+ type: HookType.PROTOCOL_FEE;
1537
+ owner: string;
1538
+ protocolFee: string;
1539
+ beneficiary: string;
1540
+ maxProtocolFee: string;
1541
+ ownerOverrides?: Record<string, string> | undefined;
1542
+ } | {
1543
+ type: HookType.PAUSABLE;
1544
+ owner: string;
1545
+ paused: boolean;
1546
+ ownerOverrides?: Record<string, string> | undefined;
1547
+ } | {
1548
+ type: HookType.OP_STACK;
1549
+ owner: string;
1550
+ nativeBridge: string;
1551
+ destinationChain: string;
1552
+ ownerOverrides?: Record<string, string> | undefined;
1553
+ } | {
1554
+ type: HookType.MERKLE_TREE;
1555
+ } | {
1556
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1557
+ owner: string;
1558
+ beneficiary: string;
1559
+ oracleKey: string;
1560
+ overhead: Record<string, number>;
1561
+ oracleConfig: Record<string, {
1562
+ gasPrice: string;
1563
+ tokenExchangeRate: string;
1564
+ }>;
1565
+ ownerOverrides?: Record<string, string> | undefined;
1566
+ }>;
1567
+ } & {
1568
+ type: HookType.FALLBACK_ROUTING;
1569
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1570
+ type: HookType.PROTOCOL_FEE;
1571
+ owner: string;
1572
+ protocolFee: string;
1573
+ beneficiary: string;
1574
+ maxProtocolFee: string;
1575
+ ownerOverrides?: Record<string, string> | undefined;
1576
+ } | {
1577
+ type: HookType.PAUSABLE;
1578
+ owner: string;
1579
+ paused: boolean;
1580
+ ownerOverrides?: Record<string, string> | undefined;
1581
+ } | {
1582
+ type: HookType.OP_STACK;
1583
+ owner: string;
1584
+ nativeBridge: string;
1585
+ destinationChain: string;
1586
+ ownerOverrides?: Record<string, string> | undefined;
1587
+ } | {
1588
+ type: HookType.MERKLE_TREE;
1589
+ } | {
1590
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1591
+ owner: string;
1592
+ beneficiary: string;
1593
+ oracleKey: string;
1594
+ overhead: Record<string, number>;
1595
+ oracleConfig: Record<string, {
1596
+ gasPrice: string;
1597
+ tokenExchangeRate: string;
1598
+ }>;
1599
+ ownerOverrides?: Record<string, string> | undefined;
1600
+ };
1601
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
1602
+ owner: string;
1603
+ ownerOverrides?: Record<string, string> | undefined;
1604
+ } & {
1605
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1606
+ type: HookType.PROTOCOL_FEE;
1607
+ owner: string;
1608
+ protocolFee: string;
1609
+ beneficiary: string;
1610
+ maxProtocolFee: string;
1611
+ ownerOverrides?: Record<string, string> | undefined;
1612
+ } | {
1613
+ type: HookType.PAUSABLE;
1614
+ owner: string;
1615
+ paused: boolean;
1616
+ ownerOverrides?: Record<string, string> | undefined;
1617
+ } | {
1618
+ type: HookType.OP_STACK;
1619
+ owner: string;
1620
+ nativeBridge: string;
1621
+ destinationChain: string;
1622
+ ownerOverrides?: Record<string, string> | undefined;
1623
+ } | {
1624
+ type: HookType.MERKLE_TREE;
1625
+ } | {
1626
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1627
+ owner: string;
1628
+ beneficiary: string;
1629
+ oracleKey: string;
1630
+ overhead: Record<string, number>;
1631
+ oracleConfig: Record<string, {
1632
+ gasPrice: string;
1633
+ tokenExchangeRate: string;
1634
+ }>;
1635
+ ownerOverrides?: Record<string, string> | undefined;
1636
+ }>;
1637
+ } & {
1638
+ type: HookType.ROUTING;
1639
+ } & string) | ({
1640
+ owner: string;
1641
+ ownerOverrides?: Record<string, string> | undefined;
1642
+ } & {
1643
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1644
+ type: HookType.PROTOCOL_FEE;
1645
+ owner: string;
1646
+ protocolFee: string;
1647
+ beneficiary: string;
1648
+ maxProtocolFee: string;
1649
+ ownerOverrides?: Record<string, string> | undefined;
1650
+ } | {
1651
+ type: HookType.PAUSABLE;
1652
+ owner: string;
1653
+ paused: boolean;
1654
+ ownerOverrides?: Record<string, string> | undefined;
1655
+ } | {
1656
+ type: HookType.OP_STACK;
1657
+ owner: string;
1658
+ nativeBridge: string;
1659
+ destinationChain: string;
1660
+ ownerOverrides?: Record<string, string> | undefined;
1661
+ } | {
1662
+ type: HookType.MERKLE_TREE;
1663
+ } | {
1664
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1665
+ owner: string;
1666
+ beneficiary: string;
1667
+ oracleKey: string;
1668
+ overhead: Record<string, number>;
1669
+ oracleConfig: Record<string, {
1670
+ gasPrice: string;
1671
+ tokenExchangeRate: string;
1672
+ }>;
1673
+ ownerOverrides?: Record<string, string> | undefined;
1674
+ }>;
1675
+ } & {
1676
+ type: HookType.ROUTING;
1677
+ }) | ({
1678
+ owner: string;
1679
+ ownerOverrides?: Record<string, string> | undefined;
1680
+ } & {
1681
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1682
+ type: HookType.PROTOCOL_FEE;
1683
+ owner: string;
1684
+ protocolFee: string;
1685
+ beneficiary: string;
1686
+ maxProtocolFee: string;
1687
+ ownerOverrides?: Record<string, string> | undefined;
1688
+ } | {
1689
+ type: HookType.PAUSABLE;
1690
+ owner: string;
1691
+ paused: boolean;
1692
+ ownerOverrides?: Record<string, string> | undefined;
1693
+ } | {
1694
+ type: HookType.OP_STACK;
1695
+ owner: string;
1696
+ nativeBridge: string;
1697
+ destinationChain: string;
1698
+ ownerOverrides?: Record<string, string> | undefined;
1699
+ } | {
1700
+ type: HookType.MERKLE_TREE;
1701
+ } | {
1702
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1703
+ owner: string;
1704
+ beneficiary: string;
1705
+ oracleKey: string;
1706
+ overhead: Record<string, number>;
1707
+ oracleConfig: Record<string, {
1708
+ gasPrice: string;
1709
+ tokenExchangeRate: string;
1710
+ }>;
1711
+ ownerOverrides?: Record<string, string> | undefined;
1712
+ }>;
1713
+ } & {
1714
+ type: HookType.FALLBACK_ROUTING;
1715
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1716
+ type: HookType.PROTOCOL_FEE;
1717
+ owner: string;
1718
+ protocolFee: string;
1719
+ beneficiary: string;
1720
+ maxProtocolFee: string;
1721
+ ownerOverrides?: Record<string, string> | undefined;
1722
+ } | {
1723
+ type: HookType.PAUSABLE;
1724
+ owner: string;
1725
+ paused: boolean;
1726
+ ownerOverrides?: Record<string, string> | undefined;
1727
+ } | {
1728
+ type: HookType.OP_STACK;
1729
+ owner: string;
1730
+ nativeBridge: string;
1731
+ destinationChain: string;
1732
+ ownerOverrides?: Record<string, string> | undefined;
1733
+ } | {
1734
+ type: HookType.MERKLE_TREE;
1735
+ } | {
1736
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1737
+ owner: string;
1738
+ beneficiary: string;
1739
+ oracleKey: string;
1740
+ overhead: Record<string, number>;
1741
+ oracleConfig: Record<string, {
1742
+ gasPrice: string;
1743
+ tokenExchangeRate: string;
1744
+ }>;
1745
+ ownerOverrides?: Record<string, string> | undefined;
1746
+ };
1747
+ } & string) | ({
1748
+ owner: string;
1749
+ ownerOverrides?: Record<string, string> | undefined;
1750
+ } & {
1751
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1752
+ type: HookType.PROTOCOL_FEE;
1753
+ owner: string;
1754
+ protocolFee: string;
1755
+ beneficiary: string;
1756
+ maxProtocolFee: string;
1757
+ ownerOverrides?: Record<string, string> | undefined;
1758
+ } | {
1759
+ type: HookType.PAUSABLE;
1760
+ owner: string;
1761
+ paused: boolean;
1762
+ ownerOverrides?: Record<string, string> | undefined;
1763
+ } | {
1764
+ type: HookType.OP_STACK;
1765
+ owner: string;
1766
+ nativeBridge: string;
1767
+ destinationChain: string;
1768
+ ownerOverrides?: Record<string, string> | undefined;
1769
+ } | {
1770
+ type: HookType.MERKLE_TREE;
1771
+ } | {
1772
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1773
+ owner: string;
1774
+ beneficiary: string;
1775
+ oracleKey: string;
1776
+ overhead: Record<string, number>;
1777
+ oracleConfig: Record<string, {
1778
+ gasPrice: string;
1779
+ tokenExchangeRate: string;
1780
+ }>;
1781
+ ownerOverrides?: Record<string, string> | undefined;
1782
+ }>;
1783
+ } & {
1784
+ type: HookType.FALLBACK_ROUTING;
1785
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1786
+ type: HookType.PROTOCOL_FEE;
1787
+ owner: string;
1788
+ protocolFee: string;
1789
+ beneficiary: string;
1790
+ maxProtocolFee: string;
1791
+ ownerOverrides?: Record<string, string> | undefined;
1792
+ } | {
1793
+ type: HookType.PAUSABLE;
1794
+ owner: string;
1795
+ paused: boolean;
1796
+ ownerOverrides?: Record<string, string> | undefined;
1797
+ } | {
1798
+ type: HookType.OP_STACK;
1799
+ owner: string;
1800
+ nativeBridge: string;
1801
+ destinationChain: string;
1802
+ ownerOverrides?: Record<string, string> | undefined;
1803
+ } | {
1804
+ type: HookType.MERKLE_TREE;
1805
+ } | {
1806
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1807
+ owner: string;
1808
+ beneficiary: string;
1809
+ oracleKey: string;
1810
+ overhead: Record<string, number>;
1811
+ oracleConfig: Record<string, {
1812
+ gasPrice: string;
1813
+ tokenExchangeRate: string;
1814
+ }>;
1815
+ ownerOverrides?: Record<string, string> | undefined;
1816
+ };
1817
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | (string & {
1818
+ type: HookType.PROTOCOL_FEE;
1819
+ owner: string;
1820
+ protocolFee: string;
1821
+ beneficiary: string;
1822
+ maxProtocolFee: string;
1823
+ ownerOverrides?: Record<string, string> | undefined;
1824
+ }) | (string & {
1825
+ type: HookType.PAUSABLE;
1826
+ owner: string;
1827
+ paused: boolean;
1828
+ ownerOverrides?: Record<string, string> | undefined;
1829
+ }) | (string & {
1830
+ type: HookType.OP_STACK;
1831
+ owner: string;
1832
+ nativeBridge: string;
1833
+ destinationChain: string;
1834
+ ownerOverrides?: Record<string, string> | undefined;
1835
+ }) | (string & {
1836
+ type: HookType.MERKLE_TREE;
1837
+ }) | (string & {
1838
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1839
+ owner: string;
1840
+ beneficiary: string;
1841
+ oracleKey: string;
1842
+ overhead: Record<string, number>;
1843
+ oracleConfig: Record<string, {
1844
+ gasPrice: string;
1845
+ tokenExchangeRate: string;
1846
+ }>;
1847
+ ownerOverrides?: Record<string, string> | undefined;
1848
+ }) | ({
1849
+ type: HookType.PROTOCOL_FEE;
1850
+ owner: string;
1851
+ protocolFee: string;
1852
+ beneficiary: string;
1853
+ maxProtocolFee: string;
1854
+ ownerOverrides?: Record<string, string> | undefined;
1855
+ } & string) | ({
1856
+ type: HookType.PAUSABLE;
1857
+ owner: string;
1858
+ paused: boolean;
1859
+ ownerOverrides?: Record<string, string> | undefined;
1860
+ } & string) | ({
1861
+ type: HookType.OP_STACK;
1862
+ owner: string;
1863
+ nativeBridge: string;
1864
+ destinationChain: string;
1865
+ ownerOverrides?: Record<string, string> | undefined;
1866
+ } & string) | ({
1867
+ type: HookType.MERKLE_TREE;
1868
+ } & string) | ({
1869
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1870
+ owner: string;
1871
+ beneficiary: string;
1872
+ oracleKey: string;
1873
+ overhead: Record<string, number>;
1874
+ oracleConfig: Record<string, {
1875
+ gasPrice: string;
1876
+ tokenExchangeRate: string;
1877
+ }>;
1878
+ ownerOverrides?: Record<string, string> | undefined;
1879
+ } & string);
1880
+ }>;
1881
+ export type HooksConfig = z.infer<typeof HooksConfigSchema>;
1882
+ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1883
+ default: z.ZodUnion<[z.ZodString, z.ZodObject<{
1884
+ owner: z.ZodString;
1885
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1886
+ type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
1887
+ beneficiary: z.ZodString;
1888
+ maxProtocolFee: z.ZodString;
1889
+ protocolFee: z.ZodString;
1890
+ }, "strip", z.ZodTypeAny, {
1891
+ type: HookType.PROTOCOL_FEE;
1892
+ owner: string;
1893
+ protocolFee: string;
1894
+ beneficiary: string;
1895
+ maxProtocolFee: string;
1896
+ ownerOverrides?: Record<string, string> | undefined;
1897
+ }, {
1898
+ type: HookType.PROTOCOL_FEE;
1899
+ owner: string;
1900
+ protocolFee: string;
1901
+ beneficiary: string;
1902
+ maxProtocolFee: string;
1903
+ ownerOverrides?: Record<string, string> | undefined;
1904
+ }>, z.ZodObject<{
1905
+ owner: z.ZodString;
1906
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1907
+ paused: z.ZodBoolean;
1908
+ type: z.ZodLiteral<HookType.PAUSABLE>;
1909
+ }, "strip", z.ZodTypeAny, {
1910
+ type: HookType.PAUSABLE;
1911
+ owner: string;
1912
+ paused: boolean;
1913
+ ownerOverrides?: Record<string, string> | undefined;
1914
+ }, {
1915
+ type: HookType.PAUSABLE;
1916
+ owner: string;
1917
+ paused: boolean;
1918
+ ownerOverrides?: Record<string, string> | undefined;
1919
+ }>, z.ZodObject<{
1920
+ owner: z.ZodString;
1921
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1922
+ type: z.ZodLiteral<HookType.OP_STACK>;
1923
+ nativeBridge: z.ZodString;
1924
+ destinationChain: z.ZodString;
1925
+ }, "strip", z.ZodTypeAny, {
1926
+ type: HookType.OP_STACK;
1927
+ owner: string;
1928
+ nativeBridge: string;
1929
+ destinationChain: string;
1930
+ ownerOverrides?: Record<string, string> | undefined;
1931
+ }, {
1932
+ type: HookType.OP_STACK;
1933
+ owner: string;
1934
+ nativeBridge: string;
1935
+ destinationChain: string;
1936
+ ownerOverrides?: Record<string, string> | undefined;
1937
+ }>, z.ZodObject<{
1938
+ type: z.ZodLiteral<HookType.MERKLE_TREE>;
1939
+ }, "strip", z.ZodTypeAny, {
1940
+ type: HookType.MERKLE_TREE;
1941
+ }, {
1942
+ type: HookType.MERKLE_TREE;
1943
+ }>, z.ZodObject<{
1944
+ owner: z.ZodString;
1945
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1946
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
1947
+ beneficiary: z.ZodString;
1948
+ oracleKey: z.ZodString;
1949
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
1950
+ oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
1951
+ gasPrice: z.ZodString;
1952
+ tokenExchangeRate: z.ZodString;
1953
+ }, "strip", z.ZodTypeAny, {
1954
+ gasPrice: string;
1955
+ tokenExchangeRate: string;
1956
+ }, {
1957
+ gasPrice: string;
1958
+ tokenExchangeRate: string;
1959
+ }>>;
1960
+ }, "strip", z.ZodTypeAny, {
1961
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1962
+ owner: string;
1963
+ beneficiary: string;
1964
+ oracleKey: string;
1965
+ overhead: Record<string, number>;
1966
+ oracleConfig: Record<string, {
1967
+ gasPrice: string;
1968
+ tokenExchangeRate: string;
1969
+ }>;
1970
+ ownerOverrides?: Record<string, string> | undefined;
1971
+ }, {
1972
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
1973
+ owner: string;
1974
+ beneficiary: string;
1975
+ oracleKey: string;
1976
+ overhead: Record<string, number>;
1977
+ oracleConfig: Record<string, {
1978
+ gasPrice: string;
1979
+ tokenExchangeRate: string;
1980
+ }>;
1981
+ ownerOverrides?: Record<string, string> | undefined;
1982
+ }>, 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>]>;
1983
+ required: z.ZodUnion<[z.ZodString, z.ZodObject<{
1984
+ owner: z.ZodString;
1985
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1986
+ type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
1987
+ beneficiary: z.ZodString;
1988
+ maxProtocolFee: z.ZodString;
1989
+ protocolFee: z.ZodString;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ type: HookType.PROTOCOL_FEE;
1992
+ owner: string;
1993
+ protocolFee: string;
1994
+ beneficiary: string;
1995
+ maxProtocolFee: string;
1996
+ ownerOverrides?: Record<string, string> | undefined;
1997
+ }, {
1998
+ type: HookType.PROTOCOL_FEE;
1999
+ owner: string;
2000
+ protocolFee: string;
2001
+ beneficiary: string;
2002
+ maxProtocolFee: string;
2003
+ ownerOverrides?: Record<string, string> | undefined;
2004
+ }>, z.ZodObject<{
2005
+ owner: z.ZodString;
2006
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2007
+ paused: z.ZodBoolean;
2008
+ type: z.ZodLiteral<HookType.PAUSABLE>;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ type: HookType.PAUSABLE;
2011
+ owner: string;
2012
+ paused: boolean;
2013
+ ownerOverrides?: Record<string, string> | undefined;
2014
+ }, {
2015
+ type: HookType.PAUSABLE;
2016
+ owner: string;
2017
+ paused: boolean;
2018
+ ownerOverrides?: Record<string, string> | undefined;
2019
+ }>, z.ZodObject<{
2020
+ owner: z.ZodString;
2021
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2022
+ type: z.ZodLiteral<HookType.OP_STACK>;
2023
+ nativeBridge: z.ZodString;
2024
+ destinationChain: z.ZodString;
2025
+ }, "strip", z.ZodTypeAny, {
2026
+ type: HookType.OP_STACK;
2027
+ owner: string;
2028
+ nativeBridge: string;
2029
+ destinationChain: string;
2030
+ ownerOverrides?: Record<string, string> | undefined;
2031
+ }, {
2032
+ type: HookType.OP_STACK;
2033
+ owner: string;
2034
+ nativeBridge: string;
2035
+ destinationChain: string;
2036
+ ownerOverrides?: Record<string, string> | undefined;
2037
+ }>, z.ZodObject<{
2038
+ type: z.ZodLiteral<HookType.MERKLE_TREE>;
2039
+ }, "strip", z.ZodTypeAny, {
2040
+ type: HookType.MERKLE_TREE;
2041
+ }, {
2042
+ type: HookType.MERKLE_TREE;
2043
+ }>, z.ZodObject<{
2044
+ owner: z.ZodString;
2045
+ ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2046
+ type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
2047
+ beneficiary: z.ZodString;
2048
+ oracleKey: z.ZodString;
2049
+ overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
2050
+ oracleConfig: z.ZodRecord<z.ZodString, z.ZodObject<{
2051
+ gasPrice: z.ZodString;
2052
+ tokenExchangeRate: z.ZodString;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ gasPrice: string;
2055
+ tokenExchangeRate: string;
2056
+ }, {
2057
+ gasPrice: string;
2058
+ tokenExchangeRate: string;
2059
+ }>>;
2060
+ }, "strip", z.ZodTypeAny, {
2061
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2062
+ owner: string;
2063
+ beneficiary: string;
2064
+ oracleKey: string;
2065
+ overhead: Record<string, number>;
2066
+ oracleConfig: Record<string, {
2067
+ gasPrice: string;
2068
+ tokenExchangeRate: string;
2069
+ }>;
2070
+ ownerOverrides?: Record<string, string> | undefined;
2071
+ }, {
2072
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2073
+ owner: string;
2074
+ beneficiary: string;
2075
+ oracleKey: string;
2076
+ overhead: Record<string, number>;
2077
+ oracleConfig: Record<string, {
2078
+ gasPrice: string;
2079
+ tokenExchangeRate: string;
2080
+ }>;
2081
+ ownerOverrides?: Record<string, string> | undefined;
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
+ }, "strip", z.ZodTypeAny, {
2084
+ default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2085
+ type: HookType.PROTOCOL_FEE;
2086
+ owner: string;
2087
+ protocolFee: string;
2088
+ beneficiary: string;
2089
+ maxProtocolFee: string;
2090
+ ownerOverrides?: Record<string, string> | undefined;
2091
+ } | {
2092
+ type: HookType.PAUSABLE;
2093
+ owner: string;
2094
+ paused: boolean;
2095
+ ownerOverrides?: Record<string, string> | undefined;
2096
+ } | {
2097
+ type: HookType.OP_STACK;
2098
+ owner: string;
2099
+ nativeBridge: string;
2100
+ destinationChain: string;
2101
+ ownerOverrides?: Record<string, string> | undefined;
2102
+ } | {
2103
+ type: HookType.MERKLE_TREE;
2104
+ } | {
2105
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2106
+ owner: string;
2107
+ beneficiary: string;
2108
+ oracleKey: string;
2109
+ overhead: Record<string, number>;
2110
+ oracleConfig: Record<string, {
2111
+ gasPrice: string;
2112
+ tokenExchangeRate: string;
2113
+ }>;
2114
+ ownerOverrides?: Record<string, string> | undefined;
2115
+ } | (string & {
2116
+ owner: string;
2117
+ ownerOverrides?: Record<string, string> | undefined;
2118
+ } & {
2119
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2120
+ type: HookType.PROTOCOL_FEE;
2121
+ owner: string;
2122
+ protocolFee: string;
2123
+ beneficiary: string;
2124
+ maxProtocolFee: string;
2125
+ ownerOverrides?: Record<string, string> | undefined;
2126
+ } | {
2127
+ type: HookType.PAUSABLE;
2128
+ owner: string;
2129
+ paused: boolean;
2130
+ ownerOverrides?: Record<string, string> | undefined;
2131
+ } | {
2132
+ type: HookType.OP_STACK;
2133
+ owner: string;
2134
+ nativeBridge: string;
2135
+ destinationChain: string;
2136
+ ownerOverrides?: Record<string, string> | undefined;
2137
+ } | {
2138
+ type: HookType.MERKLE_TREE;
2139
+ } | {
2140
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2141
+ owner: string;
2142
+ beneficiary: string;
2143
+ oracleKey: string;
2144
+ overhead: Record<string, number>;
2145
+ oracleConfig: Record<string, {
2146
+ gasPrice: string;
2147
+ tokenExchangeRate: string;
2148
+ }>;
2149
+ ownerOverrides?: Record<string, string> | undefined;
2150
+ }>;
2151
+ } & {
2152
+ type: HookType.ROUTING;
2153
+ }) | (string & {
2154
+ owner: string;
2155
+ ownerOverrides?: Record<string, string> | undefined;
2156
+ } & {
2157
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2158
+ type: HookType.PROTOCOL_FEE;
2159
+ owner: string;
2160
+ protocolFee: string;
2161
+ beneficiary: string;
2162
+ maxProtocolFee: string;
2163
+ ownerOverrides?: Record<string, string> | undefined;
2164
+ } | {
2165
+ type: HookType.PAUSABLE;
2166
+ owner: string;
2167
+ paused: boolean;
2168
+ ownerOverrides?: Record<string, string> | undefined;
2169
+ } | {
2170
+ type: HookType.OP_STACK;
2171
+ owner: string;
2172
+ nativeBridge: string;
2173
+ destinationChain: string;
2174
+ ownerOverrides?: Record<string, string> | undefined;
2175
+ } | {
2176
+ type: HookType.MERKLE_TREE;
2177
+ } | {
2178
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2179
+ owner: string;
2180
+ beneficiary: string;
2181
+ oracleKey: string;
2182
+ overhead: Record<string, number>;
2183
+ oracleConfig: Record<string, {
2184
+ gasPrice: string;
2185
+ tokenExchangeRate: string;
2186
+ }>;
2187
+ ownerOverrides?: Record<string, string> | undefined;
2188
+ }>;
2189
+ } & {
2190
+ type: HookType.FALLBACK_ROUTING;
2191
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2192
+ type: HookType.PROTOCOL_FEE;
2193
+ owner: string;
2194
+ protocolFee: string;
2195
+ beneficiary: string;
2196
+ maxProtocolFee: string;
2197
+ ownerOverrides?: Record<string, string> | undefined;
2198
+ } | {
2199
+ type: HookType.PAUSABLE;
2200
+ owner: string;
2201
+ paused: boolean;
2202
+ ownerOverrides?: Record<string, string> | undefined;
2203
+ } | {
2204
+ type: HookType.OP_STACK;
2205
+ owner: string;
2206
+ nativeBridge: string;
2207
+ destinationChain: string;
2208
+ ownerOverrides?: Record<string, string> | undefined;
2209
+ } | {
2210
+ type: HookType.MERKLE_TREE;
2211
+ } | {
2212
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2213
+ owner: string;
2214
+ beneficiary: string;
2215
+ oracleKey: string;
2216
+ overhead: Record<string, number>;
2217
+ oracleConfig: Record<string, {
2218
+ gasPrice: string;
2219
+ tokenExchangeRate: string;
2220
+ }>;
2221
+ ownerOverrides?: Record<string, string> | undefined;
2222
+ };
2223
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
2224
+ type: HookType.PROTOCOL_FEE;
2225
+ owner: string;
2226
+ protocolFee: string;
2227
+ beneficiary: string;
2228
+ maxProtocolFee: string;
2229
+ ownerOverrides?: Record<string, string> | undefined;
2230
+ }) | (string & {
2231
+ type: HookType.PAUSABLE;
2232
+ owner: string;
2233
+ paused: boolean;
2234
+ ownerOverrides?: Record<string, string> | undefined;
2235
+ }) | (string & {
2236
+ type: HookType.OP_STACK;
2237
+ owner: string;
2238
+ nativeBridge: string;
2239
+ destinationChain: string;
2240
+ ownerOverrides?: Record<string, string> | undefined;
2241
+ }) | (string & {
2242
+ type: HookType.MERKLE_TREE;
2243
+ }) | (string & {
2244
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2245
+ owner: string;
2246
+ beneficiary: string;
2247
+ oracleKey: string;
2248
+ overhead: Record<string, number>;
2249
+ oracleConfig: Record<string, {
2250
+ gasPrice: string;
2251
+ tokenExchangeRate: string;
2252
+ }>;
2253
+ ownerOverrides?: Record<string, string> | undefined;
2254
+ }) | ({
2255
+ owner: string;
2256
+ ownerOverrides?: Record<string, string> | undefined;
2257
+ } & {
2258
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2259
+ type: HookType.PROTOCOL_FEE;
2260
+ owner: string;
2261
+ protocolFee: string;
2262
+ beneficiary: string;
2263
+ maxProtocolFee: string;
2264
+ ownerOverrides?: Record<string, string> | undefined;
2265
+ } | {
2266
+ type: HookType.PAUSABLE;
2267
+ owner: string;
2268
+ paused: boolean;
2269
+ ownerOverrides?: Record<string, string> | undefined;
2270
+ } | {
2271
+ type: HookType.OP_STACK;
2272
+ owner: string;
2273
+ nativeBridge: string;
2274
+ destinationChain: string;
2275
+ ownerOverrides?: Record<string, string> | undefined;
2276
+ } | {
2277
+ type: HookType.MERKLE_TREE;
2278
+ } | {
2279
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2280
+ owner: string;
2281
+ beneficiary: string;
2282
+ oracleKey: string;
2283
+ overhead: Record<string, number>;
2284
+ oracleConfig: Record<string, {
2285
+ gasPrice: string;
2286
+ tokenExchangeRate: string;
2287
+ }>;
2288
+ ownerOverrides?: Record<string, string> | undefined;
2289
+ }>;
2290
+ } & {
2291
+ type: HookType.ROUTING;
2292
+ } & string) | ({
2293
+ owner: string;
2294
+ ownerOverrides?: Record<string, string> | undefined;
2295
+ } & {
2296
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2297
+ type: HookType.PROTOCOL_FEE;
2298
+ owner: string;
2299
+ protocolFee: string;
2300
+ beneficiary: string;
2301
+ maxProtocolFee: string;
2302
+ ownerOverrides?: Record<string, string> | undefined;
2303
+ } | {
2304
+ type: HookType.PAUSABLE;
2305
+ owner: string;
2306
+ paused: boolean;
2307
+ ownerOverrides?: Record<string, string> | undefined;
2308
+ } | {
2309
+ type: HookType.OP_STACK;
2310
+ owner: string;
2311
+ nativeBridge: string;
2312
+ destinationChain: string;
2313
+ ownerOverrides?: Record<string, string> | undefined;
2314
+ } | {
2315
+ type: HookType.MERKLE_TREE;
2316
+ } | {
2317
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2318
+ owner: string;
2319
+ beneficiary: string;
2320
+ oracleKey: string;
2321
+ overhead: Record<string, number>;
2322
+ oracleConfig: Record<string, {
2323
+ gasPrice: string;
2324
+ tokenExchangeRate: string;
2325
+ }>;
2326
+ ownerOverrides?: Record<string, string> | undefined;
2327
+ }>;
2328
+ } & {
2329
+ type: HookType.ROUTING;
2330
+ }) | ({
2331
+ owner: string;
2332
+ ownerOverrides?: Record<string, string> | undefined;
2333
+ } & {
2334
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2335
+ type: HookType.PROTOCOL_FEE;
2336
+ owner: string;
2337
+ protocolFee: string;
2338
+ beneficiary: string;
2339
+ maxProtocolFee: string;
2340
+ ownerOverrides?: Record<string, string> | undefined;
2341
+ } | {
2342
+ type: HookType.PAUSABLE;
2343
+ owner: string;
2344
+ paused: boolean;
2345
+ ownerOverrides?: Record<string, string> | undefined;
2346
+ } | {
2347
+ type: HookType.OP_STACK;
2348
+ owner: string;
2349
+ nativeBridge: string;
2350
+ destinationChain: string;
2351
+ ownerOverrides?: Record<string, string> | undefined;
2352
+ } | {
2353
+ type: HookType.MERKLE_TREE;
2354
+ } | {
2355
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2356
+ owner: string;
2357
+ beneficiary: string;
2358
+ oracleKey: string;
2359
+ overhead: Record<string, number>;
2360
+ oracleConfig: Record<string, {
2361
+ gasPrice: string;
2362
+ tokenExchangeRate: string;
2363
+ }>;
2364
+ ownerOverrides?: Record<string, string> | undefined;
2365
+ }>;
2366
+ } & {
2367
+ type: HookType.FALLBACK_ROUTING;
2368
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2369
+ type: HookType.PROTOCOL_FEE;
2370
+ owner: string;
2371
+ protocolFee: string;
2372
+ beneficiary: string;
2373
+ maxProtocolFee: string;
2374
+ ownerOverrides?: Record<string, string> | undefined;
2375
+ } | {
2376
+ type: HookType.PAUSABLE;
2377
+ owner: string;
2378
+ paused: boolean;
2379
+ ownerOverrides?: Record<string, string> | undefined;
2380
+ } | {
2381
+ type: HookType.OP_STACK;
2382
+ owner: string;
2383
+ nativeBridge: string;
2384
+ destinationChain: string;
2385
+ ownerOverrides?: Record<string, string> | undefined;
2386
+ } | {
2387
+ type: HookType.MERKLE_TREE;
2388
+ } | {
2389
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2390
+ owner: string;
2391
+ beneficiary: string;
2392
+ oracleKey: string;
2393
+ overhead: Record<string, number>;
2394
+ oracleConfig: Record<string, {
2395
+ gasPrice: string;
2396
+ tokenExchangeRate: string;
2397
+ }>;
2398
+ ownerOverrides?: Record<string, string> | undefined;
2399
+ };
2400
+ } & string) | ({
2401
+ owner: string;
2402
+ ownerOverrides?: Record<string, string> | undefined;
2403
+ } & {
2404
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2405
+ type: HookType.PROTOCOL_FEE;
2406
+ owner: string;
2407
+ protocolFee: string;
2408
+ beneficiary: string;
2409
+ maxProtocolFee: string;
2410
+ ownerOverrides?: Record<string, string> | undefined;
2411
+ } | {
2412
+ type: HookType.PAUSABLE;
2413
+ owner: string;
2414
+ paused: boolean;
2415
+ ownerOverrides?: Record<string, string> | undefined;
2416
+ } | {
2417
+ type: HookType.OP_STACK;
2418
+ owner: string;
2419
+ nativeBridge: string;
2420
+ destinationChain: string;
2421
+ ownerOverrides?: Record<string, string> | undefined;
2422
+ } | {
2423
+ type: HookType.MERKLE_TREE;
2424
+ } | {
2425
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2426
+ owner: string;
2427
+ beneficiary: string;
2428
+ oracleKey: string;
2429
+ overhead: Record<string, number>;
2430
+ oracleConfig: Record<string, {
2431
+ gasPrice: string;
2432
+ tokenExchangeRate: string;
2433
+ }>;
2434
+ ownerOverrides?: Record<string, string> | undefined;
2435
+ }>;
2436
+ } & {
2437
+ type: HookType.FALLBACK_ROUTING;
2438
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2439
+ type: HookType.PROTOCOL_FEE;
2440
+ owner: string;
2441
+ protocolFee: string;
2442
+ beneficiary: string;
2443
+ maxProtocolFee: string;
2444
+ ownerOverrides?: Record<string, string> | undefined;
2445
+ } | {
2446
+ type: HookType.PAUSABLE;
2447
+ owner: string;
2448
+ paused: boolean;
2449
+ ownerOverrides?: Record<string, string> | undefined;
2450
+ } | {
2451
+ type: HookType.OP_STACK;
2452
+ owner: string;
2453
+ nativeBridge: string;
2454
+ destinationChain: string;
2455
+ ownerOverrides?: Record<string, string> | undefined;
2456
+ } | {
2457
+ type: HookType.MERKLE_TREE;
2458
+ } | {
2459
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2460
+ owner: string;
2461
+ beneficiary: string;
2462
+ oracleKey: string;
2463
+ overhead: Record<string, number>;
2464
+ oracleConfig: Record<string, {
2465
+ gasPrice: string;
2466
+ tokenExchangeRate: string;
2467
+ }>;
2468
+ ownerOverrides?: Record<string, string> | undefined;
2469
+ };
2470
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | ({
2471
+ type: HookType.PROTOCOL_FEE;
2472
+ owner: string;
2473
+ protocolFee: string;
2474
+ beneficiary: string;
2475
+ maxProtocolFee: string;
2476
+ ownerOverrides?: Record<string, string> | undefined;
2477
+ } & string) | ({
2478
+ type: HookType.PAUSABLE;
2479
+ owner: string;
2480
+ paused: boolean;
2481
+ ownerOverrides?: Record<string, string> | undefined;
2482
+ } & string) | ({
2483
+ type: HookType.OP_STACK;
2484
+ owner: string;
2485
+ nativeBridge: string;
2486
+ destinationChain: string;
2487
+ ownerOverrides?: Record<string, string> | undefined;
2488
+ } & string) | ({
2489
+ type: HookType.MERKLE_TREE;
2490
+ } & string) | ({
2491
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2492
+ owner: string;
2493
+ beneficiary: string;
2494
+ oracleKey: string;
2495
+ overhead: Record<string, number>;
2496
+ oracleConfig: Record<string, {
2497
+ gasPrice: string;
2498
+ tokenExchangeRate: string;
2499
+ }>;
2500
+ ownerOverrides?: Record<string, string> | undefined;
2501
+ } & string);
2502
+ required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2503
+ type: HookType.PROTOCOL_FEE;
2504
+ owner: string;
2505
+ protocolFee: string;
2506
+ beneficiary: string;
2507
+ maxProtocolFee: string;
2508
+ ownerOverrides?: Record<string, string> | undefined;
2509
+ } | {
2510
+ type: HookType.PAUSABLE;
2511
+ owner: string;
2512
+ paused: boolean;
2513
+ ownerOverrides?: Record<string, string> | undefined;
2514
+ } | {
2515
+ type: HookType.OP_STACK;
2516
+ owner: string;
2517
+ nativeBridge: string;
2518
+ destinationChain: string;
2519
+ ownerOverrides?: Record<string, string> | undefined;
2520
+ } | {
2521
+ type: HookType.MERKLE_TREE;
2522
+ } | {
2523
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2524
+ owner: string;
2525
+ beneficiary: string;
2526
+ oracleKey: string;
2527
+ overhead: Record<string, number>;
2528
+ oracleConfig: Record<string, {
2529
+ gasPrice: string;
2530
+ tokenExchangeRate: string;
2531
+ }>;
2532
+ ownerOverrides?: Record<string, string> | undefined;
2533
+ } | (string & {
2534
+ owner: string;
2535
+ ownerOverrides?: Record<string, string> | undefined;
2536
+ } & {
2537
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2538
+ type: HookType.PROTOCOL_FEE;
2539
+ owner: string;
2540
+ protocolFee: string;
2541
+ beneficiary: string;
2542
+ maxProtocolFee: string;
2543
+ ownerOverrides?: Record<string, string> | undefined;
2544
+ } | {
2545
+ type: HookType.PAUSABLE;
2546
+ owner: string;
2547
+ paused: boolean;
2548
+ ownerOverrides?: Record<string, string> | undefined;
2549
+ } | {
2550
+ type: HookType.OP_STACK;
2551
+ owner: string;
2552
+ nativeBridge: string;
2553
+ destinationChain: string;
2554
+ ownerOverrides?: Record<string, string> | undefined;
2555
+ } | {
2556
+ type: HookType.MERKLE_TREE;
2557
+ } | {
2558
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2559
+ owner: string;
2560
+ beneficiary: string;
2561
+ oracleKey: string;
2562
+ overhead: Record<string, number>;
2563
+ oracleConfig: Record<string, {
2564
+ gasPrice: string;
2565
+ tokenExchangeRate: string;
2566
+ }>;
2567
+ ownerOverrides?: Record<string, string> | undefined;
2568
+ }>;
2569
+ } & {
2570
+ type: HookType.ROUTING;
2571
+ }) | (string & {
2572
+ owner: string;
2573
+ ownerOverrides?: Record<string, string> | undefined;
2574
+ } & {
2575
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2576
+ type: HookType.PROTOCOL_FEE;
2577
+ owner: string;
2578
+ protocolFee: string;
2579
+ beneficiary: string;
2580
+ maxProtocolFee: string;
2581
+ ownerOverrides?: Record<string, string> | undefined;
2582
+ } | {
2583
+ type: HookType.PAUSABLE;
2584
+ owner: string;
2585
+ paused: boolean;
2586
+ ownerOverrides?: Record<string, string> | undefined;
2587
+ } | {
2588
+ type: HookType.OP_STACK;
2589
+ owner: string;
2590
+ nativeBridge: string;
2591
+ destinationChain: string;
2592
+ ownerOverrides?: Record<string, string> | undefined;
2593
+ } | {
2594
+ type: HookType.MERKLE_TREE;
2595
+ } | {
2596
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2597
+ owner: string;
2598
+ beneficiary: string;
2599
+ oracleKey: string;
2600
+ overhead: Record<string, number>;
2601
+ oracleConfig: Record<string, {
2602
+ gasPrice: string;
2603
+ tokenExchangeRate: string;
2604
+ }>;
2605
+ ownerOverrides?: Record<string, string> | undefined;
2606
+ }>;
2607
+ } & {
2608
+ type: HookType.FALLBACK_ROUTING;
2609
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2610
+ type: HookType.PROTOCOL_FEE;
2611
+ owner: string;
2612
+ protocolFee: string;
2613
+ beneficiary: string;
2614
+ maxProtocolFee: string;
2615
+ ownerOverrides?: Record<string, string> | undefined;
2616
+ } | {
2617
+ type: HookType.PAUSABLE;
2618
+ owner: string;
2619
+ paused: boolean;
2620
+ ownerOverrides?: Record<string, string> | undefined;
2621
+ } | {
2622
+ type: HookType.OP_STACK;
2623
+ owner: string;
2624
+ nativeBridge: string;
2625
+ destinationChain: string;
2626
+ ownerOverrides?: Record<string, string> | undefined;
2627
+ } | {
2628
+ type: HookType.MERKLE_TREE;
2629
+ } | {
2630
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2631
+ owner: string;
2632
+ beneficiary: string;
2633
+ oracleKey: string;
2634
+ overhead: Record<string, number>;
2635
+ oracleConfig: Record<string, {
2636
+ gasPrice: string;
2637
+ tokenExchangeRate: string;
2638
+ }>;
2639
+ ownerOverrides?: Record<string, string> | undefined;
2640
+ };
2641
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
2642
+ type: HookType.PROTOCOL_FEE;
2643
+ owner: string;
2644
+ protocolFee: string;
2645
+ beneficiary: string;
2646
+ maxProtocolFee: string;
2647
+ ownerOverrides?: Record<string, string> | undefined;
2648
+ }) | (string & {
2649
+ type: HookType.PAUSABLE;
2650
+ owner: string;
2651
+ paused: boolean;
2652
+ ownerOverrides?: Record<string, string> | undefined;
2653
+ }) | (string & {
2654
+ type: HookType.OP_STACK;
2655
+ owner: string;
2656
+ nativeBridge: string;
2657
+ destinationChain: string;
2658
+ ownerOverrides?: Record<string, string> | undefined;
2659
+ }) | (string & {
2660
+ type: HookType.MERKLE_TREE;
2661
+ }) | (string & {
2662
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2663
+ owner: string;
2664
+ beneficiary: string;
2665
+ oracleKey: string;
2666
+ overhead: Record<string, number>;
2667
+ oracleConfig: Record<string, {
2668
+ gasPrice: string;
2669
+ tokenExchangeRate: string;
2670
+ }>;
2671
+ ownerOverrides?: Record<string, string> | undefined;
2672
+ }) | ({
2673
+ owner: string;
2674
+ ownerOverrides?: Record<string, string> | undefined;
2675
+ } & {
2676
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2677
+ type: HookType.PROTOCOL_FEE;
2678
+ owner: string;
2679
+ protocolFee: string;
2680
+ beneficiary: string;
2681
+ maxProtocolFee: string;
2682
+ ownerOverrides?: Record<string, string> | undefined;
2683
+ } | {
2684
+ type: HookType.PAUSABLE;
2685
+ owner: string;
2686
+ paused: boolean;
2687
+ ownerOverrides?: Record<string, string> | undefined;
2688
+ } | {
2689
+ type: HookType.OP_STACK;
2690
+ owner: string;
2691
+ nativeBridge: string;
2692
+ destinationChain: string;
2693
+ ownerOverrides?: Record<string, string> | undefined;
2694
+ } | {
2695
+ type: HookType.MERKLE_TREE;
2696
+ } | {
2697
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2698
+ owner: string;
2699
+ beneficiary: string;
2700
+ oracleKey: string;
2701
+ overhead: Record<string, number>;
2702
+ oracleConfig: Record<string, {
2703
+ gasPrice: string;
2704
+ tokenExchangeRate: string;
2705
+ }>;
2706
+ ownerOverrides?: Record<string, string> | undefined;
2707
+ }>;
2708
+ } & {
2709
+ type: HookType.ROUTING;
2710
+ } & string) | ({
2711
+ owner: string;
2712
+ ownerOverrides?: Record<string, string> | undefined;
2713
+ } & {
2714
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2715
+ type: HookType.PROTOCOL_FEE;
2716
+ owner: string;
2717
+ protocolFee: string;
2718
+ beneficiary: string;
2719
+ maxProtocolFee: string;
2720
+ ownerOverrides?: Record<string, string> | undefined;
2721
+ } | {
2722
+ type: HookType.PAUSABLE;
2723
+ owner: string;
2724
+ paused: boolean;
2725
+ ownerOverrides?: Record<string, string> | undefined;
2726
+ } | {
2727
+ type: HookType.OP_STACK;
2728
+ owner: string;
2729
+ nativeBridge: string;
2730
+ destinationChain: string;
2731
+ ownerOverrides?: Record<string, string> | undefined;
2732
+ } | {
2733
+ type: HookType.MERKLE_TREE;
2734
+ } | {
2735
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2736
+ owner: string;
2737
+ beneficiary: string;
2738
+ oracleKey: string;
2739
+ overhead: Record<string, number>;
2740
+ oracleConfig: Record<string, {
2741
+ gasPrice: string;
2742
+ tokenExchangeRate: string;
2743
+ }>;
2744
+ ownerOverrides?: Record<string, string> | undefined;
2745
+ }>;
2746
+ } & {
2747
+ type: HookType.ROUTING;
2748
+ }) | ({
2749
+ owner: string;
2750
+ ownerOverrides?: Record<string, string> | undefined;
2751
+ } & {
2752
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2753
+ type: HookType.PROTOCOL_FEE;
2754
+ owner: string;
2755
+ protocolFee: string;
2756
+ beneficiary: string;
2757
+ maxProtocolFee: string;
2758
+ ownerOverrides?: Record<string, string> | undefined;
2759
+ } | {
2760
+ type: HookType.PAUSABLE;
2761
+ owner: string;
2762
+ paused: boolean;
2763
+ ownerOverrides?: Record<string, string> | undefined;
2764
+ } | {
2765
+ type: HookType.OP_STACK;
2766
+ owner: string;
2767
+ nativeBridge: string;
2768
+ destinationChain: string;
2769
+ ownerOverrides?: Record<string, string> | undefined;
2770
+ } | {
2771
+ type: HookType.MERKLE_TREE;
2772
+ } | {
2773
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2774
+ owner: string;
2775
+ beneficiary: string;
2776
+ oracleKey: string;
2777
+ overhead: Record<string, number>;
2778
+ oracleConfig: Record<string, {
2779
+ gasPrice: string;
2780
+ tokenExchangeRate: string;
2781
+ }>;
2782
+ ownerOverrides?: Record<string, string> | undefined;
2783
+ }>;
2784
+ } & {
2785
+ type: HookType.FALLBACK_ROUTING;
2786
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2787
+ type: HookType.PROTOCOL_FEE;
2788
+ owner: string;
2789
+ protocolFee: string;
2790
+ beneficiary: string;
2791
+ maxProtocolFee: string;
2792
+ ownerOverrides?: Record<string, string> | undefined;
2793
+ } | {
2794
+ type: HookType.PAUSABLE;
2795
+ owner: string;
2796
+ paused: boolean;
2797
+ ownerOverrides?: Record<string, string> | undefined;
2798
+ } | {
2799
+ type: HookType.OP_STACK;
2800
+ owner: string;
2801
+ nativeBridge: string;
2802
+ destinationChain: string;
2803
+ ownerOverrides?: Record<string, string> | undefined;
2804
+ } | {
2805
+ type: HookType.MERKLE_TREE;
2806
+ } | {
2807
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2808
+ owner: string;
2809
+ beneficiary: string;
2810
+ oracleKey: string;
2811
+ overhead: Record<string, number>;
2812
+ oracleConfig: Record<string, {
2813
+ gasPrice: string;
2814
+ tokenExchangeRate: string;
2815
+ }>;
2816
+ ownerOverrides?: Record<string, string> | undefined;
2817
+ };
2818
+ } & string) | ({
2819
+ owner: string;
2820
+ ownerOverrides?: Record<string, string> | undefined;
2821
+ } & {
2822
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2823
+ type: HookType.PROTOCOL_FEE;
2824
+ owner: string;
2825
+ protocolFee: string;
2826
+ beneficiary: string;
2827
+ maxProtocolFee: string;
2828
+ ownerOverrides?: Record<string, string> | undefined;
2829
+ } | {
2830
+ type: HookType.PAUSABLE;
2831
+ owner: string;
2832
+ paused: boolean;
2833
+ ownerOverrides?: Record<string, string> | undefined;
2834
+ } | {
2835
+ type: HookType.OP_STACK;
2836
+ owner: string;
2837
+ nativeBridge: string;
2838
+ destinationChain: string;
2839
+ ownerOverrides?: Record<string, string> | undefined;
2840
+ } | {
2841
+ type: HookType.MERKLE_TREE;
2842
+ } | {
2843
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2844
+ owner: string;
2845
+ beneficiary: string;
2846
+ oracleKey: string;
2847
+ overhead: Record<string, number>;
2848
+ oracleConfig: Record<string, {
2849
+ gasPrice: string;
2850
+ tokenExchangeRate: string;
2851
+ }>;
2852
+ ownerOverrides?: Record<string, string> | undefined;
2853
+ }>;
2854
+ } & {
2855
+ type: HookType.FALLBACK_ROUTING;
2856
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2857
+ type: HookType.PROTOCOL_FEE;
2858
+ owner: string;
2859
+ protocolFee: string;
2860
+ beneficiary: string;
2861
+ maxProtocolFee: string;
2862
+ ownerOverrides?: Record<string, string> | undefined;
2863
+ } | {
2864
+ type: HookType.PAUSABLE;
2865
+ owner: string;
2866
+ paused: boolean;
2867
+ ownerOverrides?: Record<string, string> | undefined;
2868
+ } | {
2869
+ type: HookType.OP_STACK;
2870
+ owner: string;
2871
+ nativeBridge: string;
2872
+ destinationChain: string;
2873
+ ownerOverrides?: Record<string, string> | undefined;
2874
+ } | {
2875
+ type: HookType.MERKLE_TREE;
2876
+ } | {
2877
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2878
+ owner: string;
2879
+ beneficiary: string;
2880
+ oracleKey: string;
2881
+ overhead: Record<string, number>;
2882
+ oracleConfig: Record<string, {
2883
+ gasPrice: string;
2884
+ tokenExchangeRate: string;
2885
+ }>;
2886
+ 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);
2920
+ }, {
2921
+ default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2922
+ type: HookType.PROTOCOL_FEE;
2923
+ owner: string;
2924
+ protocolFee: string;
2925
+ beneficiary: string;
2926
+ maxProtocolFee: string;
2927
+ ownerOverrides?: Record<string, string> | undefined;
2928
+ } | {
2929
+ type: HookType.PAUSABLE;
2930
+ owner: string;
2931
+ paused: boolean;
2932
+ ownerOverrides?: Record<string, string> | undefined;
2933
+ } | {
2934
+ type: HookType.OP_STACK;
2935
+ owner: string;
2936
+ nativeBridge: string;
2937
+ destinationChain: string;
2938
+ ownerOverrides?: Record<string, string> | undefined;
2939
+ } | {
2940
+ type: HookType.MERKLE_TREE;
2941
+ } | {
2942
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2943
+ owner: string;
2944
+ beneficiary: string;
2945
+ oracleKey: string;
2946
+ overhead: Record<string, number>;
2947
+ oracleConfig: Record<string, {
2948
+ gasPrice: string;
2949
+ tokenExchangeRate: string;
2950
+ }>;
2951
+ ownerOverrides?: Record<string, string> | undefined;
2952
+ } | (string & {
2953
+ owner: string;
2954
+ ownerOverrides?: Record<string, string> | undefined;
2955
+ } & {
2956
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2957
+ type: HookType.PROTOCOL_FEE;
2958
+ owner: string;
2959
+ protocolFee: string;
2960
+ beneficiary: string;
2961
+ maxProtocolFee: string;
2962
+ ownerOverrides?: Record<string, string> | undefined;
2963
+ } | {
2964
+ type: HookType.PAUSABLE;
2965
+ owner: string;
2966
+ paused: boolean;
2967
+ ownerOverrides?: Record<string, string> | undefined;
2968
+ } | {
2969
+ type: HookType.OP_STACK;
2970
+ owner: string;
2971
+ nativeBridge: string;
2972
+ destinationChain: string;
2973
+ ownerOverrides?: Record<string, string> | undefined;
2974
+ } | {
2975
+ type: HookType.MERKLE_TREE;
2976
+ } | {
2977
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2978
+ owner: string;
2979
+ beneficiary: string;
2980
+ oracleKey: string;
2981
+ overhead: Record<string, number>;
2982
+ oracleConfig: Record<string, {
2983
+ gasPrice: string;
2984
+ tokenExchangeRate: string;
2985
+ }>;
2986
+ ownerOverrides?: Record<string, string> | undefined;
2987
+ }>;
2988
+ } & {
2989
+ type: HookType.ROUTING;
2990
+ }) | (string & {
2991
+ owner: string;
2992
+ ownerOverrides?: Record<string, string> | undefined;
2993
+ } & {
2994
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2995
+ type: HookType.PROTOCOL_FEE;
2996
+ owner: string;
2997
+ protocolFee: string;
2998
+ beneficiary: string;
2999
+ maxProtocolFee: string;
3000
+ ownerOverrides?: Record<string, string> | undefined;
3001
+ } | {
3002
+ type: HookType.PAUSABLE;
3003
+ owner: string;
3004
+ paused: boolean;
3005
+ ownerOverrides?: Record<string, string> | undefined;
3006
+ } | {
3007
+ type: HookType.OP_STACK;
3008
+ owner: string;
3009
+ nativeBridge: string;
3010
+ destinationChain: string;
3011
+ ownerOverrides?: Record<string, string> | undefined;
3012
+ } | {
3013
+ type: HookType.MERKLE_TREE;
3014
+ } | {
3015
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3016
+ owner: string;
3017
+ beneficiary: string;
3018
+ oracleKey: string;
3019
+ overhead: Record<string, number>;
3020
+ oracleConfig: Record<string, {
3021
+ gasPrice: string;
3022
+ tokenExchangeRate: string;
3023
+ }>;
3024
+ ownerOverrides?: Record<string, string> | undefined;
3025
+ }>;
3026
+ } & {
3027
+ type: HookType.FALLBACK_ROUTING;
3028
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3029
+ type: HookType.PROTOCOL_FEE;
3030
+ owner: string;
3031
+ protocolFee: string;
3032
+ beneficiary: string;
3033
+ maxProtocolFee: string;
3034
+ ownerOverrides?: Record<string, string> | undefined;
3035
+ } | {
3036
+ type: HookType.PAUSABLE;
3037
+ owner: string;
3038
+ paused: boolean;
3039
+ ownerOverrides?: Record<string, string> | undefined;
3040
+ } | {
3041
+ type: HookType.OP_STACK;
3042
+ owner: string;
3043
+ nativeBridge: string;
3044
+ destinationChain: string;
3045
+ ownerOverrides?: Record<string, string> | undefined;
3046
+ } | {
3047
+ type: HookType.MERKLE_TREE;
3048
+ } | {
3049
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3050
+ owner: string;
3051
+ beneficiary: string;
3052
+ oracleKey: string;
3053
+ overhead: Record<string, number>;
3054
+ oracleConfig: Record<string, {
3055
+ gasPrice: string;
3056
+ tokenExchangeRate: string;
3057
+ }>;
3058
+ ownerOverrides?: Record<string, string> | undefined;
3059
+ };
3060
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
3061
+ owner: string;
3062
+ ownerOverrides?: Record<string, string> | undefined;
3063
+ } & {
3064
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3065
+ type: HookType.PROTOCOL_FEE;
3066
+ owner: string;
3067
+ protocolFee: string;
3068
+ beneficiary: string;
3069
+ maxProtocolFee: string;
3070
+ ownerOverrides?: Record<string, string> | undefined;
3071
+ } | {
3072
+ type: HookType.PAUSABLE;
3073
+ owner: string;
3074
+ paused: boolean;
3075
+ ownerOverrides?: Record<string, string> | undefined;
3076
+ } | {
3077
+ type: HookType.OP_STACK;
3078
+ owner: string;
3079
+ nativeBridge: string;
3080
+ destinationChain: string;
3081
+ ownerOverrides?: Record<string, string> | undefined;
3082
+ } | {
3083
+ type: HookType.MERKLE_TREE;
3084
+ } | {
3085
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3086
+ owner: string;
3087
+ beneficiary: string;
3088
+ oracleKey: string;
3089
+ overhead: Record<string, number>;
3090
+ oracleConfig: Record<string, {
3091
+ gasPrice: string;
3092
+ tokenExchangeRate: string;
3093
+ }>;
3094
+ ownerOverrides?: Record<string, string> | undefined;
3095
+ }>;
3096
+ } & {
3097
+ type: HookType.ROUTING;
3098
+ } & string) | ({
3099
+ owner: string;
3100
+ ownerOverrides?: Record<string, string> | undefined;
3101
+ } & {
3102
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3103
+ type: HookType.PROTOCOL_FEE;
3104
+ owner: string;
3105
+ protocolFee: string;
3106
+ beneficiary: string;
3107
+ maxProtocolFee: string;
3108
+ ownerOverrides?: Record<string, string> | undefined;
3109
+ } | {
3110
+ type: HookType.PAUSABLE;
3111
+ owner: string;
3112
+ paused: boolean;
3113
+ ownerOverrides?: Record<string, string> | undefined;
3114
+ } | {
3115
+ type: HookType.OP_STACK;
3116
+ owner: string;
3117
+ nativeBridge: string;
3118
+ destinationChain: string;
3119
+ ownerOverrides?: Record<string, string> | undefined;
3120
+ } | {
3121
+ type: HookType.MERKLE_TREE;
3122
+ } | {
3123
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3124
+ owner: string;
3125
+ beneficiary: string;
3126
+ oracleKey: string;
3127
+ overhead: Record<string, number>;
3128
+ oracleConfig: Record<string, {
3129
+ gasPrice: string;
3130
+ tokenExchangeRate: string;
3131
+ }>;
3132
+ ownerOverrides?: Record<string, string> | undefined;
3133
+ }>;
3134
+ } & {
3135
+ type: HookType.ROUTING;
3136
+ }) | ({
3137
+ owner: string;
3138
+ ownerOverrides?: Record<string, string> | undefined;
3139
+ } & {
3140
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3141
+ type: HookType.PROTOCOL_FEE;
3142
+ owner: string;
3143
+ protocolFee: string;
3144
+ beneficiary: string;
3145
+ maxProtocolFee: string;
3146
+ ownerOverrides?: Record<string, string> | undefined;
3147
+ } | {
3148
+ type: HookType.PAUSABLE;
3149
+ owner: string;
3150
+ paused: boolean;
3151
+ ownerOverrides?: Record<string, string> | undefined;
3152
+ } | {
3153
+ type: HookType.OP_STACK;
3154
+ owner: string;
3155
+ nativeBridge: string;
3156
+ destinationChain: string;
3157
+ ownerOverrides?: Record<string, string> | undefined;
3158
+ } | {
3159
+ type: HookType.MERKLE_TREE;
3160
+ } | {
3161
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3162
+ owner: string;
3163
+ beneficiary: string;
3164
+ oracleKey: string;
3165
+ overhead: Record<string, number>;
3166
+ oracleConfig: Record<string, {
3167
+ gasPrice: string;
3168
+ tokenExchangeRate: string;
3169
+ }>;
3170
+ ownerOverrides?: Record<string, string> | undefined;
3171
+ }>;
3172
+ } & {
3173
+ type: HookType.FALLBACK_ROUTING;
3174
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3175
+ type: HookType.PROTOCOL_FEE;
3176
+ owner: string;
3177
+ protocolFee: string;
3178
+ beneficiary: string;
3179
+ maxProtocolFee: string;
3180
+ ownerOverrides?: Record<string, string> | undefined;
3181
+ } | {
3182
+ type: HookType.PAUSABLE;
3183
+ owner: string;
3184
+ paused: boolean;
3185
+ ownerOverrides?: Record<string, string> | undefined;
3186
+ } | {
3187
+ type: HookType.OP_STACK;
3188
+ owner: string;
3189
+ nativeBridge: string;
3190
+ destinationChain: string;
3191
+ ownerOverrides?: Record<string, string> | undefined;
3192
+ } | {
3193
+ type: HookType.MERKLE_TREE;
3194
+ } | {
3195
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3196
+ owner: string;
3197
+ beneficiary: string;
3198
+ oracleKey: string;
3199
+ overhead: Record<string, number>;
3200
+ oracleConfig: Record<string, {
3201
+ gasPrice: string;
3202
+ tokenExchangeRate: string;
3203
+ }>;
3204
+ ownerOverrides?: Record<string, string> | undefined;
3205
+ };
3206
+ } & string) | ({
3207
+ owner: string;
3208
+ ownerOverrides?: Record<string, string> | undefined;
3209
+ } & {
3210
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3211
+ type: HookType.PROTOCOL_FEE;
3212
+ owner: string;
3213
+ protocolFee: string;
3214
+ beneficiary: string;
3215
+ maxProtocolFee: string;
3216
+ ownerOverrides?: Record<string, string> | undefined;
3217
+ } | {
3218
+ type: HookType.PAUSABLE;
3219
+ owner: string;
3220
+ paused: boolean;
3221
+ ownerOverrides?: Record<string, string> | undefined;
3222
+ } | {
3223
+ type: HookType.OP_STACK;
3224
+ owner: string;
3225
+ nativeBridge: string;
3226
+ destinationChain: string;
3227
+ ownerOverrides?: Record<string, string> | undefined;
3228
+ } | {
3229
+ type: HookType.MERKLE_TREE;
3230
+ } | {
3231
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3232
+ owner: string;
3233
+ beneficiary: string;
3234
+ oracleKey: string;
3235
+ overhead: Record<string, number>;
3236
+ oracleConfig: Record<string, {
3237
+ gasPrice: string;
3238
+ tokenExchangeRate: string;
3239
+ }>;
3240
+ ownerOverrides?: Record<string, string> | undefined;
3241
+ }>;
3242
+ } & {
3243
+ type: HookType.FALLBACK_ROUTING;
3244
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3245
+ type: HookType.PROTOCOL_FEE;
3246
+ owner: string;
3247
+ protocolFee: string;
3248
+ beneficiary: string;
3249
+ maxProtocolFee: string;
3250
+ ownerOverrides?: Record<string, string> | undefined;
3251
+ } | {
3252
+ type: HookType.PAUSABLE;
3253
+ owner: string;
3254
+ paused: boolean;
3255
+ ownerOverrides?: Record<string, string> | undefined;
3256
+ } | {
3257
+ type: HookType.OP_STACK;
3258
+ owner: string;
3259
+ nativeBridge: string;
3260
+ destinationChain: string;
3261
+ ownerOverrides?: Record<string, string> | undefined;
3262
+ } | {
3263
+ type: HookType.MERKLE_TREE;
3264
+ } | {
3265
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3266
+ owner: string;
3267
+ beneficiary: string;
3268
+ oracleKey: string;
3269
+ overhead: Record<string, number>;
3270
+ oracleConfig: Record<string, {
3271
+ gasPrice: string;
3272
+ tokenExchangeRate: string;
3273
+ }>;
3274
+ ownerOverrides?: Record<string, string> | undefined;
3275
+ };
3276
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | (string & {
3277
+ type: HookType.PROTOCOL_FEE;
3278
+ owner: string;
3279
+ protocolFee: string;
3280
+ beneficiary: string;
3281
+ maxProtocolFee: string;
3282
+ ownerOverrides?: Record<string, string> | undefined;
3283
+ }) | (string & {
3284
+ type: HookType.PAUSABLE;
3285
+ owner: string;
3286
+ paused: boolean;
3287
+ ownerOverrides?: Record<string, string> | undefined;
3288
+ }) | (string & {
3289
+ type: HookType.OP_STACK;
3290
+ owner: string;
3291
+ nativeBridge: string;
3292
+ destinationChain: string;
3293
+ ownerOverrides?: Record<string, string> | undefined;
3294
+ }) | (string & {
3295
+ type: HookType.MERKLE_TREE;
3296
+ }) | (string & {
3297
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3298
+ owner: string;
3299
+ beneficiary: string;
3300
+ oracleKey: string;
3301
+ overhead: Record<string, number>;
3302
+ oracleConfig: Record<string, {
3303
+ gasPrice: string;
3304
+ tokenExchangeRate: string;
3305
+ }>;
3306
+ ownerOverrides?: Record<string, string> | undefined;
3307
+ }) | ({
3308
+ type: HookType.PROTOCOL_FEE;
3309
+ owner: string;
3310
+ protocolFee: string;
3311
+ beneficiary: string;
3312
+ maxProtocolFee: string;
3313
+ ownerOverrides?: Record<string, string> | undefined;
3314
+ } & string) | ({
3315
+ type: HookType.PAUSABLE;
3316
+ owner: string;
3317
+ paused: boolean;
3318
+ ownerOverrides?: Record<string, string> | undefined;
3319
+ } & string) | ({
3320
+ type: HookType.OP_STACK;
3321
+ owner: string;
3322
+ nativeBridge: string;
3323
+ destinationChain: string;
3324
+ ownerOverrides?: Record<string, string> | undefined;
3325
+ } & string) | ({
3326
+ type: HookType.MERKLE_TREE;
3327
+ } & string) | ({
3328
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3329
+ owner: string;
3330
+ beneficiary: string;
3331
+ oracleKey: string;
3332
+ overhead: Record<string, number>;
3333
+ oracleConfig: Record<string, {
3334
+ gasPrice: string;
3335
+ tokenExchangeRate: string;
3336
+ }>;
3337
+ ownerOverrides?: Record<string, string> | undefined;
3338
+ } & string);
3339
+ required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3340
+ type: HookType.PROTOCOL_FEE;
3341
+ owner: string;
3342
+ protocolFee: string;
3343
+ beneficiary: string;
3344
+ maxProtocolFee: string;
3345
+ ownerOverrides?: Record<string, string> | undefined;
3346
+ } | {
3347
+ type: HookType.PAUSABLE;
3348
+ owner: string;
3349
+ paused: boolean;
3350
+ ownerOverrides?: Record<string, string> | undefined;
3351
+ } | {
3352
+ type: HookType.OP_STACK;
3353
+ owner: string;
3354
+ nativeBridge: string;
3355
+ destinationChain: string;
3356
+ ownerOverrides?: Record<string, string> | undefined;
3357
+ } | {
3358
+ type: HookType.MERKLE_TREE;
3359
+ } | {
3360
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3361
+ owner: string;
3362
+ beneficiary: string;
3363
+ oracleKey: string;
3364
+ overhead: Record<string, number>;
3365
+ oracleConfig: Record<string, {
3366
+ gasPrice: string;
3367
+ tokenExchangeRate: string;
3368
+ }>;
3369
+ ownerOverrides?: Record<string, string> | undefined;
3370
+ } | (string & {
3371
+ owner: string;
3372
+ ownerOverrides?: Record<string, string> | undefined;
3373
+ } & {
3374
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3375
+ type: HookType.PROTOCOL_FEE;
3376
+ owner: string;
3377
+ protocolFee: string;
3378
+ beneficiary: string;
3379
+ maxProtocolFee: string;
3380
+ ownerOverrides?: Record<string, string> | undefined;
3381
+ } | {
3382
+ type: HookType.PAUSABLE;
3383
+ owner: string;
3384
+ paused: boolean;
3385
+ ownerOverrides?: Record<string, string> | undefined;
3386
+ } | {
3387
+ type: HookType.OP_STACK;
3388
+ owner: string;
3389
+ nativeBridge: string;
3390
+ destinationChain: string;
3391
+ ownerOverrides?: Record<string, string> | undefined;
3392
+ } | {
3393
+ type: HookType.MERKLE_TREE;
3394
+ } | {
3395
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3396
+ owner: string;
3397
+ beneficiary: string;
3398
+ oracleKey: string;
3399
+ overhead: Record<string, number>;
3400
+ oracleConfig: Record<string, {
3401
+ gasPrice: string;
3402
+ tokenExchangeRate: string;
3403
+ }>;
3404
+ ownerOverrides?: Record<string, string> | undefined;
3405
+ }>;
3406
+ } & {
3407
+ type: HookType.ROUTING;
3408
+ }) | (string & {
3409
+ owner: string;
3410
+ ownerOverrides?: Record<string, string> | undefined;
3411
+ } & {
3412
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3413
+ type: HookType.PROTOCOL_FEE;
3414
+ owner: string;
3415
+ protocolFee: string;
3416
+ beneficiary: string;
3417
+ maxProtocolFee: string;
3418
+ ownerOverrides?: Record<string, string> | undefined;
3419
+ } | {
3420
+ type: HookType.PAUSABLE;
3421
+ owner: string;
3422
+ paused: boolean;
3423
+ ownerOverrides?: Record<string, string> | undefined;
3424
+ } | {
3425
+ type: HookType.OP_STACK;
3426
+ owner: string;
3427
+ nativeBridge: string;
3428
+ destinationChain: string;
3429
+ ownerOverrides?: Record<string, string> | undefined;
3430
+ } | {
3431
+ type: HookType.MERKLE_TREE;
3432
+ } | {
3433
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3434
+ owner: string;
3435
+ beneficiary: string;
3436
+ oracleKey: string;
3437
+ overhead: Record<string, number>;
3438
+ oracleConfig: Record<string, {
3439
+ gasPrice: string;
3440
+ tokenExchangeRate: string;
3441
+ }>;
3442
+ ownerOverrides?: Record<string, string> | undefined;
3443
+ }>;
3444
+ } & {
3445
+ type: HookType.FALLBACK_ROUTING;
3446
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3447
+ type: HookType.PROTOCOL_FEE;
3448
+ owner: string;
3449
+ protocolFee: string;
3450
+ beneficiary: string;
3451
+ maxProtocolFee: string;
3452
+ ownerOverrides?: Record<string, string> | undefined;
3453
+ } | {
3454
+ type: HookType.PAUSABLE;
3455
+ owner: string;
3456
+ paused: boolean;
3457
+ ownerOverrides?: Record<string, string> | undefined;
3458
+ } | {
3459
+ type: HookType.OP_STACK;
3460
+ owner: string;
3461
+ nativeBridge: string;
3462
+ destinationChain: string;
3463
+ ownerOverrides?: Record<string, string> | undefined;
3464
+ } | {
3465
+ type: HookType.MERKLE_TREE;
3466
+ } | {
3467
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3468
+ owner: string;
3469
+ beneficiary: string;
3470
+ oracleKey: string;
3471
+ overhead: Record<string, number>;
3472
+ oracleConfig: Record<string, {
3473
+ gasPrice: string;
3474
+ tokenExchangeRate: string;
3475
+ }>;
3476
+ ownerOverrides?: Record<string, string> | undefined;
3477
+ };
3478
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
3479
+ owner: string;
3480
+ ownerOverrides?: Record<string, string> | undefined;
3481
+ } & {
3482
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3483
+ type: HookType.PROTOCOL_FEE;
3484
+ owner: string;
3485
+ protocolFee: string;
3486
+ beneficiary: string;
3487
+ maxProtocolFee: string;
3488
+ ownerOverrides?: Record<string, string> | undefined;
3489
+ } | {
3490
+ type: HookType.PAUSABLE;
3491
+ owner: string;
3492
+ paused: boolean;
3493
+ ownerOverrides?: Record<string, string> | undefined;
3494
+ } | {
3495
+ type: HookType.OP_STACK;
3496
+ owner: string;
3497
+ nativeBridge: string;
3498
+ destinationChain: string;
3499
+ ownerOverrides?: Record<string, string> | undefined;
3500
+ } | {
3501
+ type: HookType.MERKLE_TREE;
3502
+ } | {
3503
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3504
+ owner: string;
3505
+ beneficiary: string;
3506
+ oracleKey: string;
3507
+ overhead: Record<string, number>;
3508
+ oracleConfig: Record<string, {
3509
+ gasPrice: string;
3510
+ tokenExchangeRate: string;
3511
+ }>;
3512
+ ownerOverrides?: Record<string, string> | undefined;
3513
+ }>;
3514
+ } & {
3515
+ type: HookType.ROUTING;
3516
+ } & string) | ({
3517
+ owner: string;
3518
+ ownerOverrides?: Record<string, string> | undefined;
3519
+ } & {
3520
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3521
+ type: HookType.PROTOCOL_FEE;
3522
+ owner: string;
3523
+ protocolFee: string;
3524
+ beneficiary: string;
3525
+ maxProtocolFee: string;
3526
+ ownerOverrides?: Record<string, string> | undefined;
3527
+ } | {
3528
+ type: HookType.PAUSABLE;
3529
+ owner: string;
3530
+ paused: boolean;
3531
+ ownerOverrides?: Record<string, string> | undefined;
3532
+ } | {
3533
+ type: HookType.OP_STACK;
3534
+ owner: string;
3535
+ nativeBridge: string;
3536
+ destinationChain: string;
3537
+ ownerOverrides?: Record<string, string> | undefined;
3538
+ } | {
3539
+ type: HookType.MERKLE_TREE;
3540
+ } | {
3541
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3542
+ owner: string;
3543
+ beneficiary: string;
3544
+ oracleKey: string;
3545
+ overhead: Record<string, number>;
3546
+ oracleConfig: Record<string, {
3547
+ gasPrice: string;
3548
+ tokenExchangeRate: string;
3549
+ }>;
3550
+ ownerOverrides?: Record<string, string> | undefined;
3551
+ }>;
3552
+ } & {
3553
+ type: HookType.ROUTING;
3554
+ }) | ({
3555
+ owner: string;
3556
+ ownerOverrides?: Record<string, string> | undefined;
3557
+ } & {
3558
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3559
+ type: HookType.PROTOCOL_FEE;
3560
+ owner: string;
3561
+ protocolFee: string;
3562
+ beneficiary: string;
3563
+ maxProtocolFee: string;
3564
+ ownerOverrides?: Record<string, string> | undefined;
3565
+ } | {
3566
+ type: HookType.PAUSABLE;
3567
+ owner: string;
3568
+ paused: boolean;
3569
+ ownerOverrides?: Record<string, string> | undefined;
3570
+ } | {
3571
+ type: HookType.OP_STACK;
3572
+ owner: string;
3573
+ nativeBridge: string;
3574
+ destinationChain: string;
3575
+ ownerOverrides?: Record<string, string> | undefined;
3576
+ } | {
3577
+ type: HookType.MERKLE_TREE;
3578
+ } | {
3579
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3580
+ owner: string;
3581
+ beneficiary: string;
3582
+ oracleKey: string;
3583
+ overhead: Record<string, number>;
3584
+ oracleConfig: Record<string, {
3585
+ gasPrice: string;
3586
+ tokenExchangeRate: string;
3587
+ }>;
3588
+ ownerOverrides?: Record<string, string> | undefined;
3589
+ }>;
3590
+ } & {
3591
+ type: HookType.FALLBACK_ROUTING;
3592
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3593
+ type: HookType.PROTOCOL_FEE;
3594
+ owner: string;
3595
+ protocolFee: string;
3596
+ beneficiary: string;
3597
+ maxProtocolFee: string;
3598
+ ownerOverrides?: Record<string, string> | undefined;
3599
+ } | {
3600
+ type: HookType.PAUSABLE;
3601
+ owner: string;
3602
+ paused: boolean;
3603
+ ownerOverrides?: Record<string, string> | undefined;
3604
+ } | {
3605
+ type: HookType.OP_STACK;
3606
+ owner: string;
3607
+ nativeBridge: string;
3608
+ destinationChain: string;
3609
+ ownerOverrides?: Record<string, string> | undefined;
3610
+ } | {
3611
+ type: HookType.MERKLE_TREE;
3612
+ } | {
3613
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3614
+ owner: string;
3615
+ beneficiary: string;
3616
+ oracleKey: string;
3617
+ overhead: Record<string, number>;
3618
+ oracleConfig: Record<string, {
3619
+ gasPrice: string;
3620
+ tokenExchangeRate: string;
3621
+ }>;
3622
+ ownerOverrides?: Record<string, string> | undefined;
3623
+ };
3624
+ } & string) | ({
3625
+ owner: string;
3626
+ ownerOverrides?: Record<string, string> | undefined;
3627
+ } & {
3628
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3629
+ type: HookType.PROTOCOL_FEE;
3630
+ owner: string;
3631
+ protocolFee: string;
3632
+ beneficiary: string;
3633
+ maxProtocolFee: string;
3634
+ ownerOverrides?: Record<string, string> | undefined;
3635
+ } | {
3636
+ type: HookType.PAUSABLE;
3637
+ owner: string;
3638
+ paused: boolean;
3639
+ ownerOverrides?: Record<string, string> | undefined;
3640
+ } | {
3641
+ type: HookType.OP_STACK;
3642
+ owner: string;
3643
+ nativeBridge: string;
3644
+ destinationChain: string;
3645
+ ownerOverrides?: Record<string, string> | undefined;
3646
+ } | {
3647
+ type: HookType.MERKLE_TREE;
3648
+ } | {
3649
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3650
+ owner: string;
3651
+ beneficiary: string;
3652
+ oracleKey: string;
3653
+ overhead: Record<string, number>;
3654
+ oracleConfig: Record<string, {
3655
+ gasPrice: string;
3656
+ tokenExchangeRate: string;
3657
+ }>;
3658
+ ownerOverrides?: Record<string, string> | undefined;
3659
+ }>;
3660
+ } & {
3661
+ type: HookType.FALLBACK_ROUTING;
3662
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3663
+ type: HookType.PROTOCOL_FEE;
3664
+ owner: string;
3665
+ protocolFee: string;
3666
+ beneficiary: string;
3667
+ maxProtocolFee: string;
3668
+ ownerOverrides?: Record<string, string> | undefined;
3669
+ } | {
3670
+ type: HookType.PAUSABLE;
3671
+ owner: string;
3672
+ paused: boolean;
3673
+ ownerOverrides?: Record<string, string> | undefined;
3674
+ } | {
3675
+ type: HookType.OP_STACK;
3676
+ owner: string;
3677
+ nativeBridge: string;
3678
+ destinationChain: string;
3679
+ ownerOverrides?: Record<string, string> | undefined;
3680
+ } | {
3681
+ type: HookType.MERKLE_TREE;
3682
+ } | {
3683
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3684
+ owner: string;
3685
+ beneficiary: string;
3686
+ oracleKey: string;
3687
+ overhead: Record<string, number>;
3688
+ oracleConfig: Record<string, {
3689
+ gasPrice: string;
3690
+ tokenExchangeRate: string;
3691
+ }>;
3692
+ ownerOverrides?: Record<string, string> | undefined;
3693
+ };
3694
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | (string & {
3695
+ type: HookType.PROTOCOL_FEE;
3696
+ owner: string;
3697
+ protocolFee: string;
3698
+ beneficiary: string;
3699
+ maxProtocolFee: string;
3700
+ ownerOverrides?: Record<string, string> | undefined;
3701
+ }) | (string & {
3702
+ type: HookType.PAUSABLE;
3703
+ owner: string;
3704
+ paused: boolean;
3705
+ ownerOverrides?: Record<string, string> | undefined;
3706
+ }) | (string & {
3707
+ type: HookType.OP_STACK;
3708
+ owner: string;
3709
+ nativeBridge: string;
3710
+ destinationChain: string;
3711
+ ownerOverrides?: Record<string, string> | undefined;
3712
+ }) | (string & {
3713
+ type: HookType.MERKLE_TREE;
3714
+ }) | (string & {
3715
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3716
+ owner: string;
3717
+ beneficiary: string;
3718
+ oracleKey: string;
3719
+ overhead: Record<string, number>;
3720
+ oracleConfig: Record<string, {
3721
+ gasPrice: string;
3722
+ tokenExchangeRate: string;
3723
+ }>;
3724
+ ownerOverrides?: Record<string, string> | undefined;
3725
+ }) | ({
3726
+ type: HookType.PROTOCOL_FEE;
3727
+ owner: string;
3728
+ protocolFee: string;
3729
+ beneficiary: string;
3730
+ maxProtocolFee: string;
3731
+ ownerOverrides?: Record<string, string> | undefined;
3732
+ } & string) | ({
3733
+ type: HookType.PAUSABLE;
3734
+ owner: string;
3735
+ paused: boolean;
3736
+ ownerOverrides?: Record<string, string> | undefined;
3737
+ } & string) | ({
3738
+ type: HookType.OP_STACK;
3739
+ owner: string;
3740
+ nativeBridge: string;
3741
+ destinationChain: string;
3742
+ ownerOverrides?: Record<string, string> | undefined;
3743
+ } & string) | ({
3744
+ type: HookType.MERKLE_TREE;
3745
+ } & string) | ({
3746
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3747
+ owner: string;
3748
+ beneficiary: string;
3749
+ oracleKey: string;
3750
+ overhead: Record<string, number>;
3751
+ oracleConfig: Record<string, {
3752
+ gasPrice: string;
3753
+ tokenExchangeRate: string;
3754
+ }>;
3755
+ ownerOverrides?: Record<string, string> | undefined;
3756
+ } & string);
3757
+ }>>;
3758
+ export type HooksConfigMap = z.infer<typeof HooksConfigMapSchema>;
3759
+ export declare function presetHookConfigs(owner: Address): HooksConfig;
3760
+ export declare function readHooksConfigMap(filePath: string): ChainMap<{
3761
+ default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3762
+ type: HookType.PROTOCOL_FEE;
3763
+ owner: string;
3764
+ protocolFee: string;
3765
+ beneficiary: string;
3766
+ maxProtocolFee: string;
3767
+ ownerOverrides?: Record<string, string> | undefined;
3768
+ } | {
3769
+ type: HookType.PAUSABLE;
3770
+ owner: string;
3771
+ paused: boolean;
3772
+ ownerOverrides?: Record<string, string> | undefined;
3773
+ } | {
3774
+ type: HookType.OP_STACK;
3775
+ owner: string;
3776
+ nativeBridge: string;
3777
+ destinationChain: string;
3778
+ ownerOverrides?: Record<string, string> | undefined;
3779
+ } | {
3780
+ type: HookType.MERKLE_TREE;
3781
+ } | {
3782
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3783
+ owner: string;
3784
+ beneficiary: string;
3785
+ oracleKey: string;
3786
+ overhead: Record<string, number>;
3787
+ oracleConfig: Record<string, {
3788
+ gasPrice: string;
3789
+ tokenExchangeRate: string;
3790
+ }>;
3791
+ ownerOverrides?: Record<string, string> | undefined;
3792
+ } | (string & {
3793
+ owner: string;
3794
+ ownerOverrides?: Record<string, string> | undefined;
3795
+ } & {
3796
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3797
+ type: HookType.PROTOCOL_FEE;
3798
+ owner: string;
3799
+ protocolFee: string;
3800
+ beneficiary: string;
3801
+ maxProtocolFee: string;
3802
+ ownerOverrides?: Record<string, string> | undefined;
3803
+ } | {
3804
+ type: HookType.PAUSABLE;
3805
+ owner: string;
3806
+ paused: boolean;
3807
+ ownerOverrides?: Record<string, string> | undefined;
3808
+ } | {
3809
+ type: HookType.OP_STACK;
3810
+ owner: string;
3811
+ nativeBridge: string;
3812
+ destinationChain: string;
3813
+ ownerOverrides?: Record<string, string> | undefined;
3814
+ } | {
3815
+ type: HookType.MERKLE_TREE;
3816
+ } | {
3817
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3818
+ owner: string;
3819
+ beneficiary: string;
3820
+ oracleKey: string;
3821
+ overhead: Record<string, number>;
3822
+ oracleConfig: Record<string, {
3823
+ gasPrice: string;
3824
+ tokenExchangeRate: string;
3825
+ }>;
3826
+ ownerOverrides?: Record<string, string> | undefined;
3827
+ }>;
3828
+ } & {
3829
+ type: HookType.ROUTING;
3830
+ }) | (string & {
3831
+ owner: string;
3832
+ ownerOverrides?: Record<string, string> | undefined;
3833
+ } & {
3834
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3835
+ type: HookType.PROTOCOL_FEE;
3836
+ owner: string;
3837
+ protocolFee: string;
3838
+ beneficiary: string;
3839
+ maxProtocolFee: string;
3840
+ ownerOverrides?: Record<string, string> | undefined;
3841
+ } | {
3842
+ type: HookType.PAUSABLE;
3843
+ owner: string;
3844
+ paused: boolean;
3845
+ ownerOverrides?: Record<string, string> | undefined;
3846
+ } | {
3847
+ type: HookType.OP_STACK;
3848
+ owner: string;
3849
+ nativeBridge: string;
3850
+ destinationChain: string;
3851
+ ownerOverrides?: Record<string, string> | undefined;
3852
+ } | {
3853
+ type: HookType.MERKLE_TREE;
3854
+ } | {
3855
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3856
+ owner: string;
3857
+ beneficiary: string;
3858
+ oracleKey: string;
3859
+ overhead: Record<string, number>;
3860
+ oracleConfig: Record<string, {
3861
+ gasPrice: string;
3862
+ tokenExchangeRate: string;
3863
+ }>;
3864
+ ownerOverrides?: Record<string, string> | undefined;
3865
+ }>;
3866
+ } & {
3867
+ type: HookType.FALLBACK_ROUTING;
3868
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3869
+ type: HookType.PROTOCOL_FEE;
3870
+ owner: string;
3871
+ protocolFee: string;
3872
+ beneficiary: string;
3873
+ maxProtocolFee: string;
3874
+ ownerOverrides?: Record<string, string> | undefined;
3875
+ } | {
3876
+ type: HookType.PAUSABLE;
3877
+ owner: string;
3878
+ paused: boolean;
3879
+ ownerOverrides?: Record<string, string> | undefined;
3880
+ } | {
3881
+ type: HookType.OP_STACK;
3882
+ owner: string;
3883
+ nativeBridge: string;
3884
+ destinationChain: string;
3885
+ ownerOverrides?: Record<string, string> | undefined;
3886
+ } | {
3887
+ type: HookType.MERKLE_TREE;
3888
+ } | {
3889
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3890
+ owner: string;
3891
+ beneficiary: string;
3892
+ oracleKey: string;
3893
+ overhead: Record<string, number>;
3894
+ oracleConfig: Record<string, {
3895
+ gasPrice: string;
3896
+ tokenExchangeRate: string;
3897
+ }>;
3898
+ ownerOverrides?: Record<string, string> | undefined;
3899
+ };
3900
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
3901
+ type: HookType.PROTOCOL_FEE;
3902
+ owner: string;
3903
+ protocolFee: string;
3904
+ beneficiary: string;
3905
+ maxProtocolFee: string;
3906
+ ownerOverrides?: Record<string, string> | undefined;
3907
+ }) | (string & {
3908
+ type: HookType.PAUSABLE;
3909
+ owner: string;
3910
+ paused: boolean;
3911
+ ownerOverrides?: Record<string, string> | undefined;
3912
+ }) | (string & {
3913
+ type: HookType.OP_STACK;
3914
+ owner: string;
3915
+ nativeBridge: string;
3916
+ destinationChain: string;
3917
+ ownerOverrides?: Record<string, string> | undefined;
3918
+ }) | (string & {
3919
+ type: HookType.MERKLE_TREE;
3920
+ }) | (string & {
3921
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3922
+ owner: string;
3923
+ beneficiary: string;
3924
+ oracleKey: string;
3925
+ overhead: Record<string, number>;
3926
+ oracleConfig: Record<string, {
3927
+ gasPrice: string;
3928
+ tokenExchangeRate: string;
3929
+ }>;
3930
+ ownerOverrides?: Record<string, string> | undefined;
3931
+ }) | ({
3932
+ owner: string;
3933
+ ownerOverrides?: Record<string, string> | undefined;
3934
+ } & {
3935
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3936
+ type: HookType.PROTOCOL_FEE;
3937
+ owner: string;
3938
+ protocolFee: string;
3939
+ beneficiary: string;
3940
+ maxProtocolFee: string;
3941
+ ownerOverrides?: Record<string, string> | undefined;
3942
+ } | {
3943
+ type: HookType.PAUSABLE;
3944
+ owner: string;
3945
+ paused: boolean;
3946
+ ownerOverrides?: Record<string, string> | undefined;
3947
+ } | {
3948
+ type: HookType.OP_STACK;
3949
+ owner: string;
3950
+ nativeBridge: string;
3951
+ destinationChain: string;
3952
+ ownerOverrides?: Record<string, string> | undefined;
3953
+ } | {
3954
+ type: HookType.MERKLE_TREE;
3955
+ } | {
3956
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3957
+ owner: string;
3958
+ beneficiary: string;
3959
+ oracleKey: string;
3960
+ overhead: Record<string, number>;
3961
+ oracleConfig: Record<string, {
3962
+ gasPrice: string;
3963
+ tokenExchangeRate: string;
3964
+ }>;
3965
+ ownerOverrides?: Record<string, string> | undefined;
3966
+ }>;
3967
+ } & {
3968
+ type: HookType.ROUTING;
3969
+ } & string) | ({
3970
+ owner: string;
3971
+ ownerOverrides?: Record<string, string> | undefined;
3972
+ } & {
3973
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3974
+ type: HookType.PROTOCOL_FEE;
3975
+ owner: string;
3976
+ protocolFee: string;
3977
+ beneficiary: string;
3978
+ maxProtocolFee: string;
3979
+ ownerOverrides?: Record<string, string> | undefined;
3980
+ } | {
3981
+ type: HookType.PAUSABLE;
3982
+ owner: string;
3983
+ paused: boolean;
3984
+ ownerOverrides?: Record<string, string> | undefined;
3985
+ } | {
3986
+ type: HookType.OP_STACK;
3987
+ owner: string;
3988
+ nativeBridge: string;
3989
+ destinationChain: string;
3990
+ ownerOverrides?: Record<string, string> | undefined;
3991
+ } | {
3992
+ type: HookType.MERKLE_TREE;
3993
+ } | {
3994
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3995
+ owner: string;
3996
+ beneficiary: string;
3997
+ oracleKey: string;
3998
+ overhead: Record<string, number>;
3999
+ oracleConfig: Record<string, {
4000
+ gasPrice: string;
4001
+ tokenExchangeRate: string;
4002
+ }>;
4003
+ ownerOverrides?: Record<string, string> | undefined;
4004
+ }>;
4005
+ } & {
4006
+ type: HookType.ROUTING;
4007
+ }) | ({
4008
+ owner: string;
4009
+ ownerOverrides?: Record<string, string> | undefined;
4010
+ } & {
4011
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4012
+ type: HookType.PROTOCOL_FEE;
4013
+ owner: string;
4014
+ protocolFee: string;
4015
+ beneficiary: string;
4016
+ maxProtocolFee: string;
4017
+ ownerOverrides?: Record<string, string> | undefined;
4018
+ } | {
4019
+ type: HookType.PAUSABLE;
4020
+ owner: string;
4021
+ paused: boolean;
4022
+ ownerOverrides?: Record<string, string> | undefined;
4023
+ } | {
4024
+ type: HookType.OP_STACK;
4025
+ owner: string;
4026
+ nativeBridge: string;
4027
+ destinationChain: string;
4028
+ ownerOverrides?: Record<string, string> | undefined;
4029
+ } | {
4030
+ type: HookType.MERKLE_TREE;
4031
+ } | {
4032
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4033
+ owner: string;
4034
+ beneficiary: string;
4035
+ oracleKey: string;
4036
+ overhead: Record<string, number>;
4037
+ oracleConfig: Record<string, {
4038
+ gasPrice: string;
4039
+ tokenExchangeRate: string;
4040
+ }>;
4041
+ ownerOverrides?: Record<string, string> | undefined;
4042
+ }>;
4043
+ } & {
4044
+ type: HookType.FALLBACK_ROUTING;
4045
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4046
+ type: HookType.PROTOCOL_FEE;
4047
+ owner: string;
4048
+ protocolFee: string;
4049
+ beneficiary: string;
4050
+ maxProtocolFee: string;
4051
+ ownerOverrides?: Record<string, string> | undefined;
4052
+ } | {
4053
+ type: HookType.PAUSABLE;
4054
+ owner: string;
4055
+ paused: boolean;
4056
+ ownerOverrides?: Record<string, string> | undefined;
4057
+ } | {
4058
+ type: HookType.OP_STACK;
4059
+ owner: string;
4060
+ nativeBridge: string;
4061
+ destinationChain: string;
4062
+ ownerOverrides?: Record<string, string> | undefined;
4063
+ } | {
4064
+ type: HookType.MERKLE_TREE;
4065
+ } | {
4066
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4067
+ owner: string;
4068
+ beneficiary: string;
4069
+ oracleKey: string;
4070
+ overhead: Record<string, number>;
4071
+ oracleConfig: Record<string, {
4072
+ gasPrice: string;
4073
+ tokenExchangeRate: string;
4074
+ }>;
4075
+ ownerOverrides?: Record<string, string> | undefined;
4076
+ };
4077
+ } & string) | ({
4078
+ owner: string;
4079
+ ownerOverrides?: Record<string, string> | undefined;
4080
+ } & {
4081
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4082
+ type: HookType.PROTOCOL_FEE;
4083
+ owner: string;
4084
+ protocolFee: string;
4085
+ beneficiary: string;
4086
+ maxProtocolFee: string;
4087
+ ownerOverrides?: Record<string, string> | undefined;
4088
+ } | {
4089
+ type: HookType.PAUSABLE;
4090
+ owner: string;
4091
+ paused: boolean;
4092
+ ownerOverrides?: Record<string, string> | undefined;
4093
+ } | {
4094
+ type: HookType.OP_STACK;
4095
+ owner: string;
4096
+ nativeBridge: string;
4097
+ destinationChain: string;
4098
+ ownerOverrides?: Record<string, string> | undefined;
4099
+ } | {
4100
+ type: HookType.MERKLE_TREE;
4101
+ } | {
4102
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4103
+ owner: string;
4104
+ beneficiary: string;
4105
+ oracleKey: string;
4106
+ overhead: Record<string, number>;
4107
+ oracleConfig: Record<string, {
4108
+ gasPrice: string;
4109
+ tokenExchangeRate: string;
4110
+ }>;
4111
+ ownerOverrides?: Record<string, string> | undefined;
4112
+ }>;
4113
+ } & {
4114
+ type: HookType.FALLBACK_ROUTING;
4115
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4116
+ type: HookType.PROTOCOL_FEE;
4117
+ owner: string;
4118
+ protocolFee: string;
4119
+ beneficiary: string;
4120
+ maxProtocolFee: string;
4121
+ ownerOverrides?: Record<string, string> | undefined;
4122
+ } | {
4123
+ type: HookType.PAUSABLE;
4124
+ owner: string;
4125
+ paused: boolean;
4126
+ ownerOverrides?: Record<string, string> | undefined;
4127
+ } | {
4128
+ type: HookType.OP_STACK;
4129
+ owner: string;
4130
+ nativeBridge: string;
4131
+ destinationChain: string;
4132
+ ownerOverrides?: Record<string, string> | undefined;
4133
+ } | {
4134
+ type: HookType.MERKLE_TREE;
4135
+ } | {
4136
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4137
+ owner: string;
4138
+ beneficiary: string;
4139
+ oracleKey: string;
4140
+ overhead: Record<string, number>;
4141
+ oracleConfig: Record<string, {
4142
+ gasPrice: string;
4143
+ tokenExchangeRate: string;
4144
+ }>;
4145
+ ownerOverrides?: Record<string, string> | undefined;
4146
+ };
4147
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | ({
4148
+ type: HookType.PROTOCOL_FEE;
4149
+ owner: string;
4150
+ protocolFee: string;
4151
+ beneficiary: string;
4152
+ maxProtocolFee: string;
4153
+ ownerOverrides?: Record<string, string> | undefined;
4154
+ } & string) | ({
4155
+ type: HookType.PAUSABLE;
4156
+ owner: string;
4157
+ paused: boolean;
4158
+ ownerOverrides?: Record<string, string> | undefined;
4159
+ } & string) | ({
4160
+ type: HookType.OP_STACK;
4161
+ owner: string;
4162
+ nativeBridge: string;
4163
+ destinationChain: string;
4164
+ ownerOverrides?: Record<string, string> | undefined;
4165
+ } & string) | ({
4166
+ type: HookType.MERKLE_TREE;
4167
+ } & string) | ({
4168
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4169
+ owner: string;
4170
+ beneficiary: string;
4171
+ oracleKey: string;
4172
+ overhead: Record<string, number>;
4173
+ oracleConfig: Record<string, {
4174
+ gasPrice: string;
4175
+ tokenExchangeRate: string;
4176
+ }>;
4177
+ ownerOverrides?: Record<string, string> | undefined;
4178
+ } & string);
4179
+ required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4180
+ type: HookType.PROTOCOL_FEE;
4181
+ owner: string;
4182
+ protocolFee: string;
4183
+ beneficiary: string;
4184
+ maxProtocolFee: string;
4185
+ ownerOverrides?: Record<string, string> | undefined;
4186
+ } | {
4187
+ type: HookType.PAUSABLE;
4188
+ owner: string;
4189
+ paused: boolean;
4190
+ ownerOverrides?: Record<string, string> | undefined;
4191
+ } | {
4192
+ type: HookType.OP_STACK;
4193
+ owner: string;
4194
+ nativeBridge: string;
4195
+ destinationChain: string;
4196
+ ownerOverrides?: Record<string, string> | undefined;
4197
+ } | {
4198
+ type: HookType.MERKLE_TREE;
4199
+ } | {
4200
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4201
+ owner: string;
4202
+ beneficiary: string;
4203
+ oracleKey: string;
4204
+ overhead: Record<string, number>;
4205
+ oracleConfig: Record<string, {
4206
+ gasPrice: string;
4207
+ tokenExchangeRate: string;
4208
+ }>;
4209
+ ownerOverrides?: Record<string, string> | undefined;
4210
+ } | (string & {
4211
+ owner: string;
4212
+ ownerOverrides?: Record<string, string> | undefined;
4213
+ } & {
4214
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4215
+ type: HookType.PROTOCOL_FEE;
4216
+ owner: string;
4217
+ protocolFee: string;
4218
+ beneficiary: string;
4219
+ maxProtocolFee: string;
4220
+ ownerOverrides?: Record<string, string> | undefined;
4221
+ } | {
4222
+ type: HookType.PAUSABLE;
4223
+ owner: string;
4224
+ paused: boolean;
4225
+ ownerOverrides?: Record<string, string> | undefined;
4226
+ } | {
4227
+ type: HookType.OP_STACK;
4228
+ owner: string;
4229
+ nativeBridge: string;
4230
+ destinationChain: string;
4231
+ ownerOverrides?: Record<string, string> | undefined;
4232
+ } | {
4233
+ type: HookType.MERKLE_TREE;
4234
+ } | {
4235
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4236
+ owner: string;
4237
+ beneficiary: string;
4238
+ oracleKey: string;
4239
+ overhead: Record<string, number>;
4240
+ oracleConfig: Record<string, {
4241
+ gasPrice: string;
4242
+ tokenExchangeRate: string;
4243
+ }>;
4244
+ ownerOverrides?: Record<string, string> | undefined;
4245
+ }>;
4246
+ } & {
4247
+ type: HookType.ROUTING;
4248
+ }) | (string & {
4249
+ owner: string;
4250
+ ownerOverrides?: Record<string, string> | undefined;
4251
+ } & {
4252
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4253
+ type: HookType.PROTOCOL_FEE;
4254
+ owner: string;
4255
+ protocolFee: string;
4256
+ beneficiary: string;
4257
+ maxProtocolFee: string;
4258
+ ownerOverrides?: Record<string, string> | undefined;
4259
+ } | {
4260
+ type: HookType.PAUSABLE;
4261
+ owner: string;
4262
+ paused: boolean;
4263
+ ownerOverrides?: Record<string, string> | undefined;
4264
+ } | {
4265
+ type: HookType.OP_STACK;
4266
+ owner: string;
4267
+ nativeBridge: string;
4268
+ destinationChain: string;
4269
+ ownerOverrides?: Record<string, string> | undefined;
4270
+ } | {
4271
+ type: HookType.MERKLE_TREE;
4272
+ } | {
4273
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4274
+ owner: string;
4275
+ beneficiary: string;
4276
+ oracleKey: string;
4277
+ overhead: Record<string, number>;
4278
+ oracleConfig: Record<string, {
4279
+ gasPrice: string;
4280
+ tokenExchangeRate: string;
4281
+ }>;
4282
+ ownerOverrides?: Record<string, string> | undefined;
4283
+ }>;
4284
+ } & {
4285
+ type: HookType.FALLBACK_ROUTING;
4286
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4287
+ type: HookType.PROTOCOL_FEE;
4288
+ owner: string;
4289
+ protocolFee: string;
4290
+ beneficiary: string;
4291
+ maxProtocolFee: string;
4292
+ ownerOverrides?: Record<string, string> | undefined;
4293
+ } | {
4294
+ type: HookType.PAUSABLE;
4295
+ owner: string;
4296
+ paused: boolean;
4297
+ ownerOverrides?: Record<string, string> | undefined;
4298
+ } | {
4299
+ type: HookType.OP_STACK;
4300
+ owner: string;
4301
+ nativeBridge: string;
4302
+ destinationChain: string;
4303
+ ownerOverrides?: Record<string, string> | undefined;
4304
+ } | {
4305
+ type: HookType.MERKLE_TREE;
4306
+ } | {
4307
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4308
+ owner: string;
4309
+ beneficiary: string;
4310
+ oracleKey: string;
4311
+ overhead: Record<string, number>;
4312
+ oracleConfig: Record<string, {
4313
+ gasPrice: string;
4314
+ tokenExchangeRate: string;
4315
+ }>;
4316
+ ownerOverrides?: Record<string, string> | undefined;
4317
+ };
4318
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
4319
+ type: HookType.PROTOCOL_FEE;
4320
+ owner: string;
4321
+ protocolFee: string;
4322
+ beneficiary: string;
4323
+ maxProtocolFee: string;
4324
+ ownerOverrides?: Record<string, string> | undefined;
4325
+ }) | (string & {
4326
+ type: HookType.PAUSABLE;
4327
+ owner: string;
4328
+ paused: boolean;
4329
+ ownerOverrides?: Record<string, string> | undefined;
4330
+ }) | (string & {
4331
+ type: HookType.OP_STACK;
4332
+ owner: string;
4333
+ nativeBridge: string;
4334
+ destinationChain: string;
4335
+ ownerOverrides?: Record<string, string> | undefined;
4336
+ }) | (string & {
4337
+ type: HookType.MERKLE_TREE;
4338
+ }) | (string & {
4339
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4340
+ owner: string;
4341
+ beneficiary: string;
4342
+ oracleKey: string;
4343
+ overhead: Record<string, number>;
4344
+ oracleConfig: Record<string, {
4345
+ gasPrice: string;
4346
+ tokenExchangeRate: string;
4347
+ }>;
4348
+ ownerOverrides?: Record<string, string> | undefined;
4349
+ }) | ({
4350
+ owner: string;
4351
+ ownerOverrides?: Record<string, string> | undefined;
4352
+ } & {
4353
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4354
+ type: HookType.PROTOCOL_FEE;
4355
+ owner: string;
4356
+ protocolFee: string;
4357
+ beneficiary: string;
4358
+ maxProtocolFee: string;
4359
+ ownerOverrides?: Record<string, string> | undefined;
4360
+ } | {
4361
+ type: HookType.PAUSABLE;
4362
+ owner: string;
4363
+ paused: boolean;
4364
+ ownerOverrides?: Record<string, string> | undefined;
4365
+ } | {
4366
+ type: HookType.OP_STACK;
4367
+ owner: string;
4368
+ nativeBridge: string;
4369
+ destinationChain: string;
4370
+ ownerOverrides?: Record<string, string> | undefined;
4371
+ } | {
4372
+ type: HookType.MERKLE_TREE;
4373
+ } | {
4374
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4375
+ owner: string;
4376
+ beneficiary: string;
4377
+ oracleKey: string;
4378
+ overhead: Record<string, number>;
4379
+ oracleConfig: Record<string, {
4380
+ gasPrice: string;
4381
+ tokenExchangeRate: string;
4382
+ }>;
4383
+ ownerOverrides?: Record<string, string> | undefined;
4384
+ }>;
4385
+ } & {
4386
+ type: HookType.ROUTING;
4387
+ } & string) | ({
4388
+ owner: string;
4389
+ ownerOverrides?: Record<string, string> | undefined;
4390
+ } & {
4391
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4392
+ type: HookType.PROTOCOL_FEE;
4393
+ owner: string;
4394
+ protocolFee: string;
4395
+ beneficiary: string;
4396
+ maxProtocolFee: string;
4397
+ ownerOverrides?: Record<string, string> | undefined;
4398
+ } | {
4399
+ type: HookType.PAUSABLE;
4400
+ owner: string;
4401
+ paused: boolean;
4402
+ ownerOverrides?: Record<string, string> | undefined;
4403
+ } | {
4404
+ type: HookType.OP_STACK;
4405
+ owner: string;
4406
+ nativeBridge: string;
4407
+ destinationChain: string;
4408
+ ownerOverrides?: Record<string, string> | undefined;
4409
+ } | {
4410
+ type: HookType.MERKLE_TREE;
4411
+ } | {
4412
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4413
+ owner: string;
4414
+ beneficiary: string;
4415
+ oracleKey: string;
4416
+ overhead: Record<string, number>;
4417
+ oracleConfig: Record<string, {
4418
+ gasPrice: string;
4419
+ tokenExchangeRate: string;
4420
+ }>;
4421
+ ownerOverrides?: Record<string, string> | undefined;
4422
+ }>;
4423
+ } & {
4424
+ type: HookType.ROUTING;
4425
+ }) | ({
4426
+ owner: string;
4427
+ ownerOverrides?: Record<string, string> | undefined;
4428
+ } & {
4429
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4430
+ type: HookType.PROTOCOL_FEE;
4431
+ owner: string;
4432
+ protocolFee: string;
4433
+ beneficiary: string;
4434
+ maxProtocolFee: string;
4435
+ ownerOverrides?: Record<string, string> | undefined;
4436
+ } | {
4437
+ type: HookType.PAUSABLE;
4438
+ owner: string;
4439
+ paused: boolean;
4440
+ ownerOverrides?: Record<string, string> | undefined;
4441
+ } | {
4442
+ type: HookType.OP_STACK;
4443
+ owner: string;
4444
+ nativeBridge: string;
4445
+ destinationChain: string;
4446
+ ownerOverrides?: Record<string, string> | undefined;
4447
+ } | {
4448
+ type: HookType.MERKLE_TREE;
4449
+ } | {
4450
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4451
+ owner: string;
4452
+ beneficiary: string;
4453
+ oracleKey: string;
4454
+ overhead: Record<string, number>;
4455
+ oracleConfig: Record<string, {
4456
+ gasPrice: string;
4457
+ tokenExchangeRate: string;
4458
+ }>;
4459
+ ownerOverrides?: Record<string, string> | undefined;
4460
+ }>;
4461
+ } & {
4462
+ type: HookType.FALLBACK_ROUTING;
4463
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4464
+ type: HookType.PROTOCOL_FEE;
4465
+ owner: string;
4466
+ protocolFee: string;
4467
+ beneficiary: string;
4468
+ maxProtocolFee: string;
4469
+ ownerOverrides?: Record<string, string> | undefined;
4470
+ } | {
4471
+ type: HookType.PAUSABLE;
4472
+ owner: string;
4473
+ paused: boolean;
4474
+ ownerOverrides?: Record<string, string> | undefined;
4475
+ } | {
4476
+ type: HookType.OP_STACK;
4477
+ owner: string;
4478
+ nativeBridge: string;
4479
+ destinationChain: string;
4480
+ ownerOverrides?: Record<string, string> | undefined;
4481
+ } | {
4482
+ type: HookType.MERKLE_TREE;
4483
+ } | {
4484
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4485
+ owner: string;
4486
+ beneficiary: string;
4487
+ oracleKey: string;
4488
+ overhead: Record<string, number>;
4489
+ oracleConfig: Record<string, {
4490
+ gasPrice: string;
4491
+ tokenExchangeRate: string;
4492
+ }>;
4493
+ ownerOverrides?: Record<string, string> | undefined;
4494
+ };
4495
+ } & string) | ({
4496
+ owner: string;
4497
+ ownerOverrides?: Record<string, string> | undefined;
4498
+ } & {
4499
+ domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4500
+ type: HookType.PROTOCOL_FEE;
4501
+ owner: string;
4502
+ protocolFee: string;
4503
+ beneficiary: string;
4504
+ maxProtocolFee: string;
4505
+ ownerOverrides?: Record<string, string> | undefined;
4506
+ } | {
4507
+ type: HookType.PAUSABLE;
4508
+ owner: string;
4509
+ paused: boolean;
4510
+ ownerOverrides?: Record<string, string> | undefined;
4511
+ } | {
4512
+ type: HookType.OP_STACK;
4513
+ owner: string;
4514
+ nativeBridge: string;
4515
+ destinationChain: string;
4516
+ ownerOverrides?: Record<string, string> | undefined;
4517
+ } | {
4518
+ type: HookType.MERKLE_TREE;
4519
+ } | {
4520
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4521
+ owner: string;
4522
+ beneficiary: string;
4523
+ oracleKey: string;
4524
+ overhead: Record<string, number>;
4525
+ oracleConfig: Record<string, {
4526
+ gasPrice: string;
4527
+ tokenExchangeRate: string;
4528
+ }>;
4529
+ ownerOverrides?: Record<string, string> | undefined;
4530
+ }>;
4531
+ } & {
4532
+ type: HookType.FALLBACK_ROUTING;
4533
+ fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4534
+ type: HookType.PROTOCOL_FEE;
4535
+ owner: string;
4536
+ protocolFee: string;
4537
+ beneficiary: string;
4538
+ maxProtocolFee: string;
4539
+ ownerOverrides?: Record<string, string> | undefined;
4540
+ } | {
4541
+ type: HookType.PAUSABLE;
4542
+ owner: string;
4543
+ paused: boolean;
4544
+ ownerOverrides?: Record<string, string> | undefined;
4545
+ } | {
4546
+ type: HookType.OP_STACK;
4547
+ owner: string;
4548
+ nativeBridge: string;
4549
+ destinationChain: string;
4550
+ ownerOverrides?: Record<string, string> | undefined;
4551
+ } | {
4552
+ type: HookType.MERKLE_TREE;
4553
+ } | {
4554
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4555
+ owner: string;
4556
+ beneficiary: string;
4557
+ oracleKey: string;
4558
+ overhead: Record<string, number>;
4559
+ oracleConfig: Record<string, {
4560
+ gasPrice: string;
4561
+ tokenExchangeRate: string;
4562
+ }>;
4563
+ 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);
4597
+ }> | undefined;
4598
+ export declare function createHookConfig(context: CommandContext, selectMessage?: string): Promise<HookConfig>;
4599
+ export declare function createProtocolFeeConfig(): Promise<HookConfig>;
162
4600
  export declare function createIGPConfig(remotes: ChainName[]): Promise<HookConfig>;
163
- export declare function createAggregationConfig(context: CommandContext, chain: ChainName, remotes: ChainName[]): Promise<HookConfig>;
164
- export declare function createRoutingConfig(context: CommandContext, origin: ChainName, remotes: ChainName[]): Promise<HookConfig>;
4601
+ export declare function createAggregationConfig(context: CommandContext): Promise<HookConfig>;
4602
+ export declare function createRoutingConfig(context: CommandContext): Promise<HookConfig>;
165
4603
  export {};
166
4604
  //# sourceMappingURL=hooks.d.ts.map