@hyperlane-xyz/sdk 5.6.1 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/consts/multisigIsm.d.ts.map +1 -1
- package/dist/consts/multisigIsm.js +119 -14
- package/dist/consts/multisigIsm.js.map +1 -1
- package/dist/consts/multisigIsm.test.js +13 -0
- package/dist/consts/multisigIsm.test.js.map +1 -1
- package/dist/contracts/contracts.d.ts +3 -0
- package/dist/contracts/contracts.d.ts.map +1 -1
- package/dist/contracts/contracts.js +15 -1
- package/dist/contracts/contracts.js.map +1 -1
- package/dist/core/EvmCoreModule.d.ts.map +1 -1
- package/dist/core/EvmCoreModule.js +2 -8
- package/dist/core/EvmCoreModule.js.map +1 -1
- package/dist/core/HyperlaneCore.d.ts.map +1 -1
- package/dist/core/HyperlaneCore.js +5 -2
- package/dist/core/HyperlaneCore.js.map +1 -1
- package/dist/core/HyperlaneRelayer.d.ts +37 -32
- package/dist/core/HyperlaneRelayer.d.ts.map +1 -1
- package/dist/core/HyperlaneRelayer.js +6 -6
- package/dist/core/HyperlaneRelayer.js.map +1 -1
- package/dist/core/schemas.d.ts +1007 -953
- package/dist/core/schemas.d.ts.map +1 -1
- package/dist/deploy/HyperlaneDeployer.d.ts +1 -0
- package/dist/deploy/HyperlaneDeployer.d.ts.map +1 -1
- package/dist/deploy/HyperlaneDeployer.js +2 -2
- package/dist/deploy/HyperlaneDeployer.js.map +1 -1
- package/dist/deploy/types.d.ts +2 -1
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/deploy/types.js.map +1 -1
- package/dist/deploy/verify/PostDeploymentContractVerifier.d.ts.map +1 -1
- package/dist/deploy/verify/PostDeploymentContractVerifier.js +1 -1
- package/dist/deploy/verify/PostDeploymentContractVerifier.js.map +1 -1
- package/dist/deploy/verify/utils.d.ts +36 -0
- package/dist/deploy/verify/utils.d.ts.map +1 -1
- package/dist/deploy/verify/utils.js +100 -1
- package/dist/deploy/verify/utils.js.map +1 -1
- package/dist/gas/token-prices.d.ts +7 -7
- package/dist/gas/token-prices.d.ts.map +1 -1
- package/dist/gas/token-prices.js +36 -32
- package/dist/gas/token-prices.js.map +1 -1
- package/dist/gas/utils.d.ts +38 -0
- package/dist/gas/utils.d.ts.map +1 -0
- package/dist/gas/utils.js +145 -0
- package/dist/gas/utils.js.map +1 -0
- package/dist/hook/EvmHookModule.d.ts +9 -4
- package/dist/hook/EvmHookModule.d.ts.map +1 -1
- package/dist/hook/EvmHookModule.js +43 -81
- package/dist/hook/EvmHookModule.js.map +1 -1
- package/dist/hook/EvmHookReader.d.ts +3 -1
- package/dist/hook/EvmHookReader.d.ts.map +1 -1
- package/dist/hook/EvmHookReader.js +9 -2
- package/dist/hook/EvmHookReader.js.map +1 -1
- package/dist/hook/schemas.d.ts +10 -4
- package/dist/hook/schemas.d.ts.map +1 -1
- package/dist/hook/schemas.js +1 -0
- package/dist/hook/schemas.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/ism/EvmIsmModule.d.ts +5 -24
- package/dist/ism/EvmIsmModule.d.ts.map +1 -1
- package/dist/ism/EvmIsmModule.js +22 -222
- package/dist/ism/EvmIsmModule.js.map +1 -1
- package/dist/ism/EvmIsmReader.d.ts +3 -1
- package/dist/ism/EvmIsmReader.d.ts.map +1 -1
- package/dist/ism/EvmIsmReader.js +10 -4
- package/dist/ism/EvmIsmReader.js.map +1 -1
- package/dist/ism/HyperlaneIsmFactory.d.ts +17 -4
- package/dist/ism/HyperlaneIsmFactory.d.ts.map +1 -1
- package/dist/ism/HyperlaneIsmFactory.hardhat-test.js +0 -1
- package/dist/ism/HyperlaneIsmFactory.hardhat-test.js.map +1 -1
- package/dist/ism/HyperlaneIsmFactory.js +30 -17
- package/dist/ism/HyperlaneIsmFactory.js.map +1 -1
- package/dist/ism/metadata/arbL2ToL1.hardhat-test.js +20 -5
- package/dist/ism/metadata/arbL2ToL1.hardhat-test.js.map +1 -1
- package/dist/metadata/agentConfig.d.ts +5 -5
- package/dist/metadata/warpRouteConfig.d.ts +10 -0
- package/dist/metadata/warpRouteConfig.d.ts.map +1 -1
- package/dist/metadata/warpRouteConfig.js +1 -0
- package/dist/metadata/warpRouteConfig.js.map +1 -1
- package/dist/middleware/account/InterchainAccount.d.ts.map +1 -1
- package/dist/middleware/account/InterchainAccount.js +4 -1
- package/dist/middleware/account/InterchainAccount.js.map +1 -1
- package/dist/router/ProxiedRouterDeployer.d.ts.map +1 -1
- package/dist/router/ProxiedRouterDeployer.js +10 -2
- package/dist/router/ProxiedRouterDeployer.js.map +1 -1
- package/dist/router/schemas.d.ts +155 -90
- package/dist/router/schemas.d.ts.map +1 -1
- package/dist/router/schemas.js +6 -1
- package/dist/router/schemas.js.map +1 -1
- package/dist/router/types.d.ts +2 -1
- package/dist/router/types.d.ts.map +1 -1
- package/dist/router/types.js.map +1 -1
- package/dist/schemas.d.ts +13 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +3 -0
- package/dist/schemas.js.map +1 -1
- package/dist/token/EvmERC20WarpModule.d.ts +9 -0
- package/dist/token/EvmERC20WarpModule.d.ts.map +1 -1
- package/dist/token/EvmERC20WarpModule.hardhat-test.js +67 -2
- package/dist/token/EvmERC20WarpModule.hardhat-test.js.map +1 -1
- package/dist/token/EvmERC20WarpModule.js +61 -10
- package/dist/token/EvmERC20WarpModule.js.map +1 -1
- package/dist/token/EvmERC20WarpRouteReader.d.ts +4 -1
- package/dist/token/EvmERC20WarpRouteReader.d.ts.map +1 -1
- package/dist/token/EvmERC20WarpRouteReader.hardhat-test.js +0 -1
- package/dist/token/EvmERC20WarpRouteReader.hardhat-test.js.map +1 -1
- package/dist/token/EvmERC20WarpRouteReader.js +26 -1
- package/dist/token/EvmERC20WarpRouteReader.js.map +1 -1
- package/dist/token/IToken.d.ts +2 -2
- package/dist/token/adapters/SealevelTokenAdapter.d.ts.map +1 -1
- package/dist/token/adapters/SealevelTokenAdapter.js +2 -2
- package/dist/token/adapters/SealevelTokenAdapter.js.map +1 -1
- package/dist/token/deploy.d.ts.map +1 -1
- package/dist/token/deploy.js +18 -7
- package/dist/token/deploy.js.map +1 -1
- package/dist/token/schemas.d.ts +206 -120
- package/dist/token/schemas.d.ts.map +1 -1
- package/dist/token/schemas.js +5 -1
- package/dist/token/schemas.js.map +1 -1
- package/dist/utils/cosmos.d.ts +12 -12
- package/dist/warp/types.d.ts +4 -4
- package/package.json +3 -3
- package/dist/deploy/EvmModuleDeployer.d.ts +0 -93
- package/dist/deploy/EvmModuleDeployer.d.ts.map +0 -1
- package/dist/deploy/EvmModuleDeployer.js +0 -187
- package/dist/deploy/EvmModuleDeployer.js.map +0 -1
package/dist/router/schemas.d.ts
CHANGED
|
@@ -13,16 +13,16 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
15
15
|
owner: string;
|
|
16
|
+
protocolFee: string;
|
|
16
17
|
beneficiary: string;
|
|
17
18
|
maxProtocolFee: string;
|
|
18
|
-
protocolFee: string;
|
|
19
19
|
ownerOverrides?: Record<string, string> | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
22
22
|
owner: string;
|
|
23
|
+
protocolFee: string;
|
|
23
24
|
beneficiary: string;
|
|
24
25
|
maxProtocolFee: string;
|
|
25
|
-
protocolFee: string;
|
|
26
26
|
ownerOverrides?: Record<string, string> | undefined;
|
|
27
27
|
}>, z.ZodObject<{
|
|
28
28
|
owner: z.ZodString;
|
|
@@ -107,16 +107,19 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
107
107
|
arbSys: z.ZodString;
|
|
108
108
|
bridge: z.ZodOptional<z.ZodString>;
|
|
109
109
|
destinationChain: z.ZodString;
|
|
110
|
+
childHook: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
110
111
|
}, "strip", z.ZodTypeAny, {
|
|
111
112
|
type: import("../index.js").HookType.ARB_L2_TO_L1;
|
|
112
113
|
destinationChain: string;
|
|
113
114
|
arbSys: string;
|
|
114
115
|
bridge?: string | undefined;
|
|
116
|
+
childHook?: any;
|
|
115
117
|
}, {
|
|
116
118
|
type: import("../index.js").HookType.ARB_L2_TO_L1;
|
|
117
119
|
destinationChain: string;
|
|
118
120
|
arbSys: string;
|
|
119
121
|
bridge?: string | undefined;
|
|
122
|
+
childHook?: any;
|
|
120
123
|
}>]>>;
|
|
121
124
|
interchainSecurityModule: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
122
125
|
type: z.ZodLiteral<import("../index.js").IsmType.TEST_ISM>;
|
|
@@ -248,14 +251,25 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
248
251
|
mailbox: string;
|
|
249
252
|
ownerOverrides?: Record<string, string> | undefined;
|
|
250
253
|
hook?: string | {
|
|
254
|
+
type: import("../index.js").HookType.MERKLE_TREE;
|
|
255
|
+
} | {
|
|
256
|
+
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
257
|
+
owner: string;
|
|
258
|
+
beneficiary: string;
|
|
259
|
+
oracleKey: string;
|
|
260
|
+
overhead: Record<string, number>;
|
|
261
|
+
oracleConfig: Record<string, {
|
|
262
|
+
gasPrice: string;
|
|
263
|
+
tokenExchangeRate: string;
|
|
264
|
+
}>;
|
|
265
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
266
|
+
} | {
|
|
251
267
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
252
268
|
owner: string;
|
|
269
|
+
protocolFee: string;
|
|
253
270
|
beneficiary: string;
|
|
254
271
|
maxProtocolFee: string;
|
|
255
|
-
protocolFee: string;
|
|
256
272
|
ownerOverrides?: Record<string, string> | undefined;
|
|
257
|
-
} | {
|
|
258
|
-
type: import("../index.js").HookType.MERKLE_TREE;
|
|
259
273
|
} | {
|
|
260
274
|
type: import("../index.js").HookType.PAUSABLE;
|
|
261
275
|
owner: string;
|
|
@@ -272,17 +286,7 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
272
286
|
destinationChain: string;
|
|
273
287
|
arbSys: string;
|
|
274
288
|
bridge?: string | undefined;
|
|
275
|
-
|
|
276
|
-
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
277
|
-
owner: string;
|
|
278
|
-
beneficiary: string;
|
|
279
|
-
oracleKey: string;
|
|
280
|
-
overhead: Record<string, number>;
|
|
281
|
-
oracleConfig: Record<string, {
|
|
282
|
-
gasPrice: string;
|
|
283
|
-
tokenExchangeRate: string;
|
|
284
|
-
}>;
|
|
285
|
-
ownerOverrides?: Record<string, string> | undefined;
|
|
289
|
+
childHook?: any;
|
|
286
290
|
} | import("../index.js").DomainRoutingHookConfig | import("../index.js").FallbackRoutingHookConfig | import("../index.js").AggregationHookConfig | undefined;
|
|
287
291
|
interchainSecurityModule?: string | {
|
|
288
292
|
type: import("../index.js").IsmType.TEST_ISM;
|
|
@@ -330,14 +334,25 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
330
334
|
mailbox: string;
|
|
331
335
|
ownerOverrides?: Record<string, string> | undefined;
|
|
332
336
|
hook?: string | {
|
|
337
|
+
type: import("../index.js").HookType.MERKLE_TREE;
|
|
338
|
+
} | {
|
|
339
|
+
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
340
|
+
owner: string;
|
|
341
|
+
beneficiary: string;
|
|
342
|
+
oracleKey: string;
|
|
343
|
+
overhead: Record<string, number>;
|
|
344
|
+
oracleConfig: Record<string, {
|
|
345
|
+
gasPrice: string;
|
|
346
|
+
tokenExchangeRate: string;
|
|
347
|
+
}>;
|
|
348
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
349
|
+
} | {
|
|
333
350
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
334
351
|
owner: string;
|
|
352
|
+
protocolFee: string;
|
|
335
353
|
beneficiary: string;
|
|
336
354
|
maxProtocolFee: string;
|
|
337
|
-
protocolFee: string;
|
|
338
355
|
ownerOverrides?: Record<string, string> | undefined;
|
|
339
|
-
} | {
|
|
340
|
-
type: import("../index.js").HookType.MERKLE_TREE;
|
|
341
356
|
} | {
|
|
342
357
|
type: import("../index.js").HookType.PAUSABLE;
|
|
343
358
|
owner: string;
|
|
@@ -354,17 +369,7 @@ export declare const MailboxClientConfigSchema: z.ZodObject<{
|
|
|
354
369
|
destinationChain: string;
|
|
355
370
|
arbSys: string;
|
|
356
371
|
bridge?: string | undefined;
|
|
357
|
-
|
|
358
|
-
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
359
|
-
owner: string;
|
|
360
|
-
beneficiary: string;
|
|
361
|
-
oracleKey: string;
|
|
362
|
-
overhead: Record<string, number>;
|
|
363
|
-
oracleConfig: Record<string, {
|
|
364
|
-
gasPrice: string;
|
|
365
|
-
tokenExchangeRate: string;
|
|
366
|
-
}>;
|
|
367
|
-
ownerOverrides?: Record<string, string> | undefined;
|
|
372
|
+
childHook?: any;
|
|
368
373
|
} | import("../index.js").DomainRoutingHookConfig | import("../index.js").FallbackRoutingHookConfig | import("../index.js").AggregationHookConfig | undefined;
|
|
369
374
|
interchainSecurityModule?: string | {
|
|
370
375
|
type: import("../index.js").IsmType.TEST_ISM;
|
|
@@ -430,16 +435,16 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
430
435
|
}, "strip", z.ZodTypeAny, {
|
|
431
436
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
432
437
|
owner: string;
|
|
438
|
+
protocolFee: string;
|
|
433
439
|
beneficiary: string;
|
|
434
440
|
maxProtocolFee: string;
|
|
435
|
-
protocolFee: string;
|
|
436
441
|
ownerOverrides?: Record<string, string> | undefined;
|
|
437
442
|
}, {
|
|
438
443
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
439
444
|
owner: string;
|
|
445
|
+
protocolFee: string;
|
|
440
446
|
beneficiary: string;
|
|
441
447
|
maxProtocolFee: string;
|
|
442
|
-
protocolFee: string;
|
|
443
448
|
ownerOverrides?: Record<string, string> | undefined;
|
|
444
449
|
}>, z.ZodObject<{
|
|
445
450
|
owner: z.ZodString;
|
|
@@ -524,16 +529,19 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
524
529
|
arbSys: z.ZodString;
|
|
525
530
|
bridge: z.ZodOptional<z.ZodString>;
|
|
526
531
|
destinationChain: z.ZodString;
|
|
532
|
+
childHook: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
527
533
|
}, "strip", z.ZodTypeAny, {
|
|
528
534
|
type: import("../index.js").HookType.ARB_L2_TO_L1;
|
|
529
535
|
destinationChain: string;
|
|
530
536
|
arbSys: string;
|
|
531
537
|
bridge?: string | undefined;
|
|
538
|
+
childHook?: any;
|
|
532
539
|
}, {
|
|
533
540
|
type: import("../index.js").HookType.ARB_L2_TO_L1;
|
|
534
541
|
destinationChain: string;
|
|
535
542
|
arbSys: string;
|
|
536
543
|
bridge?: string | undefined;
|
|
544
|
+
childHook?: any;
|
|
537
545
|
}>]>>;
|
|
538
546
|
interchainSecurityModule: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
539
547
|
type: z.ZodLiteral<import("../index.js").IsmType.TEST_ISM>;
|
|
@@ -662,19 +670,43 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
662
670
|
}>>;
|
|
663
671
|
foreignDeployment: z.ZodOptional<z.ZodString>;
|
|
664
672
|
remoteRouters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
673
|
+
proxyAdmin: z.ZodOptional<z.ZodObject<{
|
|
674
|
+
owner: z.ZodString;
|
|
675
|
+
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
676
|
+
address: z.ZodOptional<z.ZodString>;
|
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
|
678
|
+
owner: string;
|
|
679
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
680
|
+
address?: string | undefined;
|
|
681
|
+
}, {
|
|
682
|
+
owner: string;
|
|
683
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
684
|
+
address?: string | undefined;
|
|
685
|
+
}>>;
|
|
665
686
|
}, "strip", z.ZodTypeAny, {
|
|
666
687
|
owner: string;
|
|
667
688
|
mailbox: string;
|
|
668
689
|
ownerOverrides?: Record<string, string> | undefined;
|
|
669
690
|
hook?: string | {
|
|
691
|
+
type: import("../index.js").HookType.MERKLE_TREE;
|
|
692
|
+
} | {
|
|
693
|
+
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
694
|
+
owner: string;
|
|
695
|
+
beneficiary: string;
|
|
696
|
+
oracleKey: string;
|
|
697
|
+
overhead: Record<string, number>;
|
|
698
|
+
oracleConfig: Record<string, {
|
|
699
|
+
gasPrice: string;
|
|
700
|
+
tokenExchangeRate: string;
|
|
701
|
+
}>;
|
|
702
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
703
|
+
} | {
|
|
670
704
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
671
705
|
owner: string;
|
|
706
|
+
protocolFee: string;
|
|
672
707
|
beneficiary: string;
|
|
673
708
|
maxProtocolFee: string;
|
|
674
|
-
protocolFee: string;
|
|
675
709
|
ownerOverrides?: Record<string, string> | undefined;
|
|
676
|
-
} | {
|
|
677
|
-
type: import("../index.js").HookType.MERKLE_TREE;
|
|
678
710
|
} | {
|
|
679
711
|
type: import("../index.js").HookType.PAUSABLE;
|
|
680
712
|
owner: string;
|
|
@@ -691,17 +723,7 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
691
723
|
destinationChain: string;
|
|
692
724
|
arbSys: string;
|
|
693
725
|
bridge?: string | undefined;
|
|
694
|
-
|
|
695
|
-
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
696
|
-
owner: string;
|
|
697
|
-
beneficiary: string;
|
|
698
|
-
oracleKey: string;
|
|
699
|
-
overhead: Record<string, number>;
|
|
700
|
-
oracleConfig: Record<string, {
|
|
701
|
-
gasPrice: string;
|
|
702
|
-
tokenExchangeRate: string;
|
|
703
|
-
}>;
|
|
704
|
-
ownerOverrides?: Record<string, string> | undefined;
|
|
726
|
+
childHook?: any;
|
|
705
727
|
} | import("../index.js").DomainRoutingHookConfig | import("../index.js").FallbackRoutingHookConfig | import("../index.js").AggregationHookConfig | undefined;
|
|
706
728
|
interchainSecurityModule?: string | {
|
|
707
729
|
type: import("../index.js").IsmType.TEST_ISM;
|
|
@@ -746,19 +768,35 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
746
768
|
} | undefined;
|
|
747
769
|
foreignDeployment?: string | undefined;
|
|
748
770
|
remoteRouters?: Record<string, string> | undefined;
|
|
771
|
+
proxyAdmin?: {
|
|
772
|
+
owner: string;
|
|
773
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
774
|
+
address?: string | undefined;
|
|
775
|
+
} | undefined;
|
|
749
776
|
}, {
|
|
750
777
|
owner: string;
|
|
751
778
|
mailbox: string;
|
|
752
779
|
ownerOverrides?: Record<string, string> | undefined;
|
|
753
780
|
hook?: string | {
|
|
781
|
+
type: import("../index.js").HookType.MERKLE_TREE;
|
|
782
|
+
} | {
|
|
783
|
+
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
784
|
+
owner: string;
|
|
785
|
+
beneficiary: string;
|
|
786
|
+
oracleKey: string;
|
|
787
|
+
overhead: Record<string, number>;
|
|
788
|
+
oracleConfig: Record<string, {
|
|
789
|
+
gasPrice: string;
|
|
790
|
+
tokenExchangeRate: string;
|
|
791
|
+
}>;
|
|
792
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
793
|
+
} | {
|
|
754
794
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
755
795
|
owner: string;
|
|
796
|
+
protocolFee: string;
|
|
756
797
|
beneficiary: string;
|
|
757
798
|
maxProtocolFee: string;
|
|
758
|
-
protocolFee: string;
|
|
759
799
|
ownerOverrides?: Record<string, string> | undefined;
|
|
760
|
-
} | {
|
|
761
|
-
type: import("../index.js").HookType.MERKLE_TREE;
|
|
762
800
|
} | {
|
|
763
801
|
type: import("../index.js").HookType.PAUSABLE;
|
|
764
802
|
owner: string;
|
|
@@ -775,17 +813,7 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
775
813
|
destinationChain: string;
|
|
776
814
|
arbSys: string;
|
|
777
815
|
bridge?: string | undefined;
|
|
778
|
-
|
|
779
|
-
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
780
|
-
owner: string;
|
|
781
|
-
beneficiary: string;
|
|
782
|
-
oracleKey: string;
|
|
783
|
-
overhead: Record<string, number>;
|
|
784
|
-
oracleConfig: Record<string, {
|
|
785
|
-
gasPrice: string;
|
|
786
|
-
tokenExchangeRate: string;
|
|
787
|
-
}>;
|
|
788
|
-
ownerOverrides?: Record<string, string> | undefined;
|
|
816
|
+
childHook?: any;
|
|
789
817
|
} | import("../index.js").DomainRoutingHookConfig | import("../index.js").FallbackRoutingHookConfig | import("../index.js").AggregationHookConfig | undefined;
|
|
790
818
|
interchainSecurityModule?: string | {
|
|
791
819
|
type: import("../index.js").IsmType.TEST_ISM;
|
|
@@ -830,11 +858,30 @@ export declare const RouterConfigSchema: z.ZodObject<{
|
|
|
830
858
|
} | undefined;
|
|
831
859
|
foreignDeployment?: string | undefined;
|
|
832
860
|
remoteRouters?: Record<string, string> | undefined;
|
|
861
|
+
proxyAdmin?: {
|
|
862
|
+
owner: string;
|
|
863
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
864
|
+
address?: string | undefined;
|
|
865
|
+
} | undefined;
|
|
833
866
|
}>;
|
|
867
|
+
export declare const DestinationGasSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
834
868
|
export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
835
869
|
owner: z.ZodString;
|
|
836
870
|
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
837
871
|
mailbox: z.ZodString;
|
|
872
|
+
proxyAdmin: z.ZodOptional<z.ZodObject<{
|
|
873
|
+
owner: z.ZodString;
|
|
874
|
+
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
875
|
+
address: z.ZodOptional<z.ZodString>;
|
|
876
|
+
}, "strip", z.ZodTypeAny, {
|
|
877
|
+
owner: string;
|
|
878
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
879
|
+
address?: string | undefined;
|
|
880
|
+
}, {
|
|
881
|
+
owner: string;
|
|
882
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
883
|
+
address?: string | undefined;
|
|
884
|
+
}>>;
|
|
838
885
|
hook: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
839
886
|
owner: z.ZodString;
|
|
840
887
|
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -845,16 +892,16 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
845
892
|
}, "strip", z.ZodTypeAny, {
|
|
846
893
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
847
894
|
owner: string;
|
|
895
|
+
protocolFee: string;
|
|
848
896
|
beneficiary: string;
|
|
849
897
|
maxProtocolFee: string;
|
|
850
|
-
protocolFee: string;
|
|
851
898
|
ownerOverrides?: Record<string, string> | undefined;
|
|
852
899
|
}, {
|
|
853
900
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
854
901
|
owner: string;
|
|
902
|
+
protocolFee: string;
|
|
855
903
|
beneficiary: string;
|
|
856
904
|
maxProtocolFee: string;
|
|
857
|
-
protocolFee: string;
|
|
858
905
|
ownerOverrides?: Record<string, string> | undefined;
|
|
859
906
|
}>, z.ZodObject<{
|
|
860
907
|
owner: z.ZodString;
|
|
@@ -939,16 +986,19 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
939
986
|
arbSys: z.ZodString;
|
|
940
987
|
bridge: z.ZodOptional<z.ZodString>;
|
|
941
988
|
destinationChain: z.ZodString;
|
|
989
|
+
childHook: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
942
990
|
}, "strip", z.ZodTypeAny, {
|
|
943
991
|
type: import("../index.js").HookType.ARB_L2_TO_L1;
|
|
944
992
|
destinationChain: string;
|
|
945
993
|
arbSys: string;
|
|
946
994
|
bridge?: string | undefined;
|
|
995
|
+
childHook?: any;
|
|
947
996
|
}, {
|
|
948
997
|
type: import("../index.js").HookType.ARB_L2_TO_L1;
|
|
949
998
|
destinationChain: string;
|
|
950
999
|
arbSys: string;
|
|
951
1000
|
bridge?: string | undefined;
|
|
1001
|
+
childHook?: any;
|
|
952
1002
|
}>]>>;
|
|
953
1003
|
interchainSecurityModule: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
954
1004
|
type: z.ZodLiteral<import("../index.js").IsmType.TEST_ISM>;
|
|
@@ -1078,19 +1128,36 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
1078
1128
|
foreignDeployment: z.ZodOptional<z.ZodString>;
|
|
1079
1129
|
remoteRouters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1080
1130
|
gas: z.ZodOptional<z.ZodNumber>;
|
|
1131
|
+
destinationGas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1081
1132
|
}, "strip", z.ZodTypeAny, {
|
|
1082
1133
|
owner: string;
|
|
1083
1134
|
mailbox: string;
|
|
1084
1135
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1136
|
+
proxyAdmin?: {
|
|
1137
|
+
owner: string;
|
|
1138
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
1139
|
+
address?: string | undefined;
|
|
1140
|
+
} | undefined;
|
|
1085
1141
|
hook?: string | {
|
|
1142
|
+
type: import("../index.js").HookType.MERKLE_TREE;
|
|
1143
|
+
} | {
|
|
1144
|
+
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
1145
|
+
owner: string;
|
|
1146
|
+
beneficiary: string;
|
|
1147
|
+
oracleKey: string;
|
|
1148
|
+
overhead: Record<string, number>;
|
|
1149
|
+
oracleConfig: Record<string, {
|
|
1150
|
+
gasPrice: string;
|
|
1151
|
+
tokenExchangeRate: string;
|
|
1152
|
+
}>;
|
|
1153
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
1154
|
+
} | {
|
|
1086
1155
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
1087
1156
|
owner: string;
|
|
1157
|
+
protocolFee: string;
|
|
1088
1158
|
beneficiary: string;
|
|
1089
1159
|
maxProtocolFee: string;
|
|
1090
|
-
protocolFee: string;
|
|
1091
1160
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1092
|
-
} | {
|
|
1093
|
-
type: import("../index.js").HookType.MERKLE_TREE;
|
|
1094
1161
|
} | {
|
|
1095
1162
|
type: import("../index.js").HookType.PAUSABLE;
|
|
1096
1163
|
owner: string;
|
|
@@ -1107,17 +1174,7 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
1107
1174
|
destinationChain: string;
|
|
1108
1175
|
arbSys: string;
|
|
1109
1176
|
bridge?: string | undefined;
|
|
1110
|
-
|
|
1111
|
-
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
1112
|
-
owner: string;
|
|
1113
|
-
beneficiary: string;
|
|
1114
|
-
oracleKey: string;
|
|
1115
|
-
overhead: Record<string, number>;
|
|
1116
|
-
oracleConfig: Record<string, {
|
|
1117
|
-
gasPrice: string;
|
|
1118
|
-
tokenExchangeRate: string;
|
|
1119
|
-
}>;
|
|
1120
|
-
ownerOverrides?: Record<string, string> | undefined;
|
|
1177
|
+
childHook?: any;
|
|
1121
1178
|
} | import("../index.js").DomainRoutingHookConfig | import("../index.js").FallbackRoutingHookConfig | import("../index.js").AggregationHookConfig | undefined;
|
|
1122
1179
|
interchainSecurityModule?: string | {
|
|
1123
1180
|
type: import("../index.js").IsmType.TEST_ISM;
|
|
@@ -1163,19 +1220,36 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
1163
1220
|
foreignDeployment?: string | undefined;
|
|
1164
1221
|
remoteRouters?: Record<string, string> | undefined;
|
|
1165
1222
|
gas?: number | undefined;
|
|
1223
|
+
destinationGas?: Record<string, string> | undefined;
|
|
1166
1224
|
}, {
|
|
1167
1225
|
owner: string;
|
|
1168
1226
|
mailbox: string;
|
|
1169
1227
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1228
|
+
proxyAdmin?: {
|
|
1229
|
+
owner: string;
|
|
1230
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
1231
|
+
address?: string | undefined;
|
|
1232
|
+
} | undefined;
|
|
1170
1233
|
hook?: string | {
|
|
1234
|
+
type: import("../index.js").HookType.MERKLE_TREE;
|
|
1235
|
+
} | {
|
|
1236
|
+
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
1237
|
+
owner: string;
|
|
1238
|
+
beneficiary: string;
|
|
1239
|
+
oracleKey: string;
|
|
1240
|
+
overhead: Record<string, number>;
|
|
1241
|
+
oracleConfig: Record<string, {
|
|
1242
|
+
gasPrice: string;
|
|
1243
|
+
tokenExchangeRate: string;
|
|
1244
|
+
}>;
|
|
1245
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
1246
|
+
} | {
|
|
1171
1247
|
type: import("../index.js").HookType.PROTOCOL_FEE;
|
|
1172
1248
|
owner: string;
|
|
1249
|
+
protocolFee: string;
|
|
1173
1250
|
beneficiary: string;
|
|
1174
1251
|
maxProtocolFee: string;
|
|
1175
|
-
protocolFee: string;
|
|
1176
1252
|
ownerOverrides?: Record<string, string> | undefined;
|
|
1177
|
-
} | {
|
|
1178
|
-
type: import("../index.js").HookType.MERKLE_TREE;
|
|
1179
1253
|
} | {
|
|
1180
1254
|
type: import("../index.js").HookType.PAUSABLE;
|
|
1181
1255
|
owner: string;
|
|
@@ -1192,17 +1266,7 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
1192
1266
|
destinationChain: string;
|
|
1193
1267
|
arbSys: string;
|
|
1194
1268
|
bridge?: string | undefined;
|
|
1195
|
-
|
|
1196
|
-
type: import("../index.js").HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
1197
|
-
owner: string;
|
|
1198
|
-
beneficiary: string;
|
|
1199
|
-
oracleKey: string;
|
|
1200
|
-
overhead: Record<string, number>;
|
|
1201
|
-
oracleConfig: Record<string, {
|
|
1202
|
-
gasPrice: string;
|
|
1203
|
-
tokenExchangeRate: string;
|
|
1204
|
-
}>;
|
|
1205
|
-
ownerOverrides?: Record<string, string> | undefined;
|
|
1269
|
+
childHook?: any;
|
|
1206
1270
|
} | import("../index.js").DomainRoutingHookConfig | import("../index.js").FallbackRoutingHookConfig | import("../index.js").AggregationHookConfig | undefined;
|
|
1207
1271
|
interchainSecurityModule?: string | {
|
|
1208
1272
|
type: import("../index.js").IsmType.TEST_ISM;
|
|
@@ -1248,5 +1312,6 @@ export declare const GasRouterConfigSchema: z.ZodObject<{
|
|
|
1248
1312
|
foreignDeployment?: string | undefined;
|
|
1249
1313
|
remoteRouters?: Record<string, string> | undefined;
|
|
1250
1314
|
gas?: number | undefined;
|
|
1315
|
+
destinationGas?: Record<string, string> | undefined;
|
|
1251
1316
|
}>;
|
|
1252
1317
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/router/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AAIF,eAAO,MAAM,oBAAoB,uCAGhC,CAAC;AACF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC"}
|
package/dist/router/schemas.js
CHANGED
|
@@ -3,7 +3,7 @@ import { ProxyFactoryFactoriesSchema } from '../deploy/schemas.js';
|
|
|
3
3
|
import { HookConfigSchema } from '../hook/schemas.js';
|
|
4
4
|
import { IsmConfigSchema } from '../ism/schemas.js';
|
|
5
5
|
import { ZHash } from '../metadata/customZodTypes.js';
|
|
6
|
-
import { OwnableSchema } from '../schemas.js';
|
|
6
|
+
import { DeployedOwnableSchema, OwnableSchema } from '../schemas.js';
|
|
7
7
|
export const MailboxClientConfigSchema = OwnableSchema.extend({
|
|
8
8
|
mailbox: ZHash,
|
|
9
9
|
hook: HookConfigSchema.optional(),
|
|
@@ -18,8 +18,13 @@ const RemoteRouterRouter = z.string().startsWith('0x');
|
|
|
18
18
|
export const RemoteRoutersSchema = z.record(RemoteRouterDomain, RemoteRouterRouter);
|
|
19
19
|
export const RouterConfigSchema = MailboxClientConfigSchema.merge(ForeignDeploymentConfigSchema).merge(z.object({
|
|
20
20
|
remoteRouters: RemoteRoutersSchema.optional(),
|
|
21
|
+
proxyAdmin: DeployedOwnableSchema.optional(),
|
|
21
22
|
}));
|
|
23
|
+
const DestinationGasDomain = z.string();
|
|
24
|
+
const DestinationGasAmount = z.string(); // This must be a string type to match Ether's type
|
|
25
|
+
export const DestinationGasSchema = z.record(DestinationGasDomain, DestinationGasAmount);
|
|
22
26
|
export const GasRouterConfigSchema = RouterConfigSchema.extend({
|
|
23
27
|
gas: z.number().optional(),
|
|
28
|
+
destinationGas: DestinationGasSchema.optional(),
|
|
24
29
|
});
|
|
25
30
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/router/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/router/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AA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,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC"}
|
package/dist/router/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { HyperlaneFactories } from '../contracts/types.js';
|
|
|
5
5
|
import { UpgradeConfig } from '../deploy/proxy.js';
|
|
6
6
|
import { CheckerViolation } from '../deploy/types.js';
|
|
7
7
|
import { ChainMap } from '../types.js';
|
|
8
|
-
import { GasRouterConfigSchema, MailboxClientConfigSchema, RemoteRoutersSchema, RouterConfigSchema } from './schemas.js';
|
|
8
|
+
import { DestinationGasSchema, GasRouterConfigSchema, MailboxClientConfigSchema, RemoteRoutersSchema, RouterConfigSchema } from './schemas.js';
|
|
9
9
|
export type RouterAddress = {
|
|
10
10
|
router: Address;
|
|
11
11
|
};
|
|
@@ -41,4 +41,5 @@ export interface RouterViolation extends CheckerViolation {
|
|
|
41
41
|
description?: string;
|
|
42
42
|
}
|
|
43
43
|
export type RemoteRouters = z.infer<typeof RemoteRoutersSchema>;
|
|
44
|
+
export type DestinationGas = z.infer<typeof DestinationGasSchema>;
|
|
44
45
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/router/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,MAAM,EACN,2BAA2B,EAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EACL,qBAAqB,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BAAwB,cAAc;IACtC,OAAO,kBAAkB;IACzB,IAAI,eAAe;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,aAAa,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,oBAAY,mBAAmB;IAC7B,cAAc,mBAAmB;CAClC;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,IAAI,EAAE,mBAAmB,CAAC,cAAc,CAAC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,QAAQ,CAAC;QACnB,MAAM,EAAE,cAAc,CAAC;QACvB,QAAQ,EAAE,cAAc,CAAC;KAC1B,CAAC,CAAC;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/router/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/router/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,mBAAmB,EAEnB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/router/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,mBAAmB,EAEnB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AA8B7B,MAAM,CAAC,MAAM,gBAAgB,GAAqB;IAChD,UAAU,EAAE,IAAI,mBAAmB,EAAE;IACrC,kBAAkB,EAAE,IAAI,2BAA2B,EAAE;CACtD,CAAC;AAEF,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,6DAAsC,CAAA;IACtC,gDAAyB,CAAA;IACzB,0CAAmB,CAAA;AACrB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AAQD,MAAM,CAAN,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,wDAAiC,CAAA;AACnC,CAAC,EAFW,mBAAmB,KAAnB,mBAAmB,QAE9B"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -9,6 +9,19 @@ export declare const OwnableSchema: z.ZodObject<{
|
|
|
9
9
|
owner: string;
|
|
10
10
|
ownerOverrides?: Record<string, string> | undefined;
|
|
11
11
|
}>;
|
|
12
|
+
export declare const DeployedOwnableSchema: z.ZodObject<{
|
|
13
|
+
owner: z.ZodString;
|
|
14
|
+
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15
|
+
address: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
owner: string;
|
|
18
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
19
|
+
address?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
owner: string;
|
|
22
|
+
ownerOverrides?: Record<string, string> | undefined;
|
|
23
|
+
address?: string | undefined;
|
|
24
|
+
}>;
|
|
12
25
|
export declare const PausableSchema: z.ZodObject<{
|
|
13
26
|
owner: z.ZodString;
|
|
14
27
|
ownerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;EAGxB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;EAEzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;EAGxB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;EAEzB,CAAC"}
|
package/dist/schemas.js
CHANGED
|
@@ -4,6 +4,9 @@ export const OwnableSchema = z.object({
|
|
|
4
4
|
owner: ZHash,
|
|
5
5
|
ownerOverrides: z.record(ZHash).optional(),
|
|
6
6
|
});
|
|
7
|
+
export const DeployedOwnableSchema = OwnableSchema.extend({
|
|
8
|
+
address: ZHash.optional(),
|
|
9
|
+
});
|
|
7
10
|
export const PausableSchema = OwnableSchema.extend({
|
|
8
11
|
paused: z.boolean(),
|
|
9
12
|
});
|
package/dist/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,KAAK;IACZ,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,KAAK;IACZ,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,CAAC;IACxD,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE;CAC1B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC"}
|
|
@@ -39,6 +39,14 @@ export declare class EvmERC20WarpModule extends HyperlaneModule<ProtocolType.Eth
|
|
|
39
39
|
* @returns A array with a single Ethereum transaction that need to be executed to enroll the routers
|
|
40
40
|
*/
|
|
41
41
|
createRemoteRoutersUpdateTxs(actualConfig: TokenRouterConfig, expectedConfig: TokenRouterConfig): AnnotatedEV5Transaction[];
|
|
42
|
+
/**
|
|
43
|
+
* Create a transaction to update the remote routers for the Warp Route contract.
|
|
44
|
+
*
|
|
45
|
+
* @param actualConfig - The on-chain router configuration, including the remoteRouters array.
|
|
46
|
+
* @param expectedConfig - The expected token router configuration.
|
|
47
|
+
* @returns A array with a single Ethereum transaction that need to be executed to enroll the routers
|
|
48
|
+
*/
|
|
49
|
+
createSetDestinationGasUpdateTxs(actualConfig: TokenRouterConfig, expectedConfig: TokenRouterConfig): AnnotatedEV5Transaction[];
|
|
42
50
|
/**
|
|
43
51
|
* Create transactions to update an existing ISM config, or deploy a new ISM and return a tx to setInterchainSecurityModule
|
|
44
52
|
*
|
|
@@ -55,6 +63,7 @@ export declare class EvmERC20WarpModule extends HyperlaneModule<ProtocolType.Eth
|
|
|
55
63
|
* @returns Ethereum transaction that need to be executed to update the owner.
|
|
56
64
|
*/
|
|
57
65
|
createOwnershipUpdateTxs(actualConfig: TokenRouterConfig, expectedConfig: TokenRouterConfig): AnnotatedEV5Transaction[];
|
|
66
|
+
updateProxyAdminOwnershipTxs(actualConfig: Readonly<TokenRouterConfig>, expectedConfig: Readonly<TokenRouterConfig>): AnnotatedEV5Transaction[];
|
|
58
67
|
/**
|
|
59
68
|
* Updates or deploys the ISM using the provided configuration.
|
|
60
69
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EvmERC20WarpModule.d.ts","sourceRoot":"","sources":["../../src/token/EvmERC20WarpModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EvmERC20WarpModule.d.ts","sourceRoot":"","sources":["../../src/token/EvmERC20WarpModule.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAuB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,OAAO,EACP,MAAM,EACN,YAAY,EAQb,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,eAAe,EACf,qBAAqB,EACtB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAA2B,MAAM,cAAc,CAAC;AAE1E,qBAAa,kBAAmB,SAAQ,eAAe,CACrD,YAAY,CAAC,QAAQ,EACrB,iBAAiB,EACjB;IACE,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CACF;IAUG,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa;IAO/C,SAAS,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAhBtC,SAAS,CAAC,MAAM,uCAEb;IACH,MAAM,EAAE,uBAAuB,CAAC;IAGhC,SAAgB,QAAQ,EAAE,MAAM,CAAC;gBAGZ,aAAa,EAAE,aAAa,EAC/C,IAAI,EAAE,qBAAqB,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