@hyperlane-xyz/cli 3.1.10 → 3.2.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.
- package/README.md +6 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +27 -4
- package/dist/cli.js.map +1 -1
- package/dist/env.d.ts +2 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +14 -0
- package/dist/env.js.map +1 -0
- package/dist/src/avs/config.d.ts +11 -0
- package/dist/src/avs/config.d.ts.map +1 -0
- package/dist/src/avs/config.js +10 -0
- package/dist/src/avs/config.js.map +1 -0
- package/dist/src/avs/stakeRegistry.d.ts +19 -0
- package/dist/src/avs/stakeRegistry.d.ts.map +1 -0
- package/dist/src/avs/stakeRegistry.js +94 -0
- package/dist/src/avs/stakeRegistry.js.map +1 -0
- package/dist/src/commands/avs.d.ts +12 -0
- package/dist/src/commands/avs.d.ts.map +1 -0
- package/dist/src/commands/avs.js +58 -0
- package/dist/src/commands/avs.js.map +1 -0
- package/dist/src/commands/chains.d.ts.map +1 -1
- package/dist/src/commands/chains.js +46 -27
- package/dist/src/commands/chains.js.map +1 -1
- package/dist/src/commands/config.js +74 -85
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/deploy.d.ts.map +1 -1
- package/dist/src/commands/deploy.js +58 -91
- package/dist/src/commands/deploy.js.map +1 -1
- package/dist/src/commands/hook.d.ts +12 -0
- package/dist/src/commands/hook.d.ts.map +1 -0
- package/dist/src/commands/hook.js +34 -0
- package/dist/src/commands/hook.js.map +1 -0
- package/dist/src/commands/ism.d.ts +12 -0
- package/dist/src/commands/ism.d.ts.map +1 -0
- package/dist/src/commands/ism.js +36 -0
- package/dist/src/commands/ism.js.map +1 -0
- package/dist/src/commands/options.d.ts +19 -7
- package/dist/src/commands/options.d.ts.map +1 -1
- package/dist/src/commands/options.js +90 -27
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/send.d.ts +14 -1
- package/dist/src/commands/send.d.ts.map +1 -1
- package/dist/src/commands/send.js +32 -55
- package/dist/src/commands/send.js.map +1 -1
- package/dist/src/commands/signCommands.d.ts +3 -0
- package/dist/src/commands/signCommands.d.ts.map +1 -0
- package/dist/src/commands/signCommands.js +11 -0
- package/dist/src/commands/signCommands.js.map +1 -0
- package/dist/src/commands/status.d.ts +5 -2
- package/dist/src/commands/status.d.ts.map +1 -1
- package/dist/src/commands/status.js +9 -19
- package/dist/src/commands/status.js.map +1 -1
- package/dist/src/config/chain.d.ts +5 -7
- package/dist/src/config/chain.d.ts.map +1 -1
- package/dist/src/config/chain.js +94 -68
- package/dist/src/config/chain.js.map +1 -1
- package/dist/src/config/chain.test.js +1 -5
- package/dist/src/config/chain.test.js.map +1 -1
- package/dist/src/config/hooks.d.ts +91 -214
- package/dist/src/config/hooks.d.ts.map +1 -1
- package/dist/src/config/hooks.js +218 -122
- package/dist/src/config/hooks.js.map +1 -1
- package/dist/src/config/ism.d.ts +74 -0
- package/dist/src/config/ism.d.ts.map +1 -0
- package/dist/src/config/ism.js +223 -0
- package/dist/src/config/ism.js.map +1 -0
- package/dist/src/config/multisig.d.ts +4 -14
- package/dist/src/config/multisig.d.ts.map +1 -1
- package/dist/src/config/multisig.js +35 -29
- package/dist/src/config/multisig.js.map +1 -1
- package/dist/src/config/warp.d.ts +7 -180
- package/dist/src/config/warp.d.ts.map +1 -1
- package/dist/src/config/warp.js +55 -62
- package/dist/src/config/warp.js.map +1 -1
- package/dist/src/consts.d.ts +1 -0
- package/dist/src/consts.d.ts.map +1 -1
- package/dist/src/consts.js +1 -0
- package/dist/src/consts.js.map +1 -1
- package/dist/src/context/context.d.ts +14 -0
- package/dist/src/context/context.d.ts.map +1 -0
- package/dist/src/context/context.js +108 -0
- package/dist/src/context/context.js.map +1 -0
- package/dist/src/context/types.d.ts +33 -0
- package/dist/src/context/types.d.ts.map +1 -0
- package/dist/src/context/types.js.map +1 -0
- package/dist/src/deploy/agent.d.ts +6 -4
- package/dist/src/deploy/agent.d.ts.map +1 -1
- package/dist/src/deploy/agent.js +10 -24
- package/dist/src/deploy/agent.js.map +1 -1
- package/dist/src/deploy/core.d.ts +10 -7
- package/dist/src/deploy/core.d.ts.map +1 -1
- package/dist/src/deploy/core.js +156 -160
- package/dist/src/deploy/core.js.map +1 -1
- package/dist/src/deploy/dry-run.d.ts +19 -0
- package/dist/src/deploy/dry-run.d.ts.map +1 -0
- package/dist/src/deploy/dry-run.js +45 -0
- package/dist/src/deploy/dry-run.js.map +1 -0
- package/dist/src/deploy/utils.d.ts +15 -8
- package/dist/src/deploy/utils.d.ts.map +1 -1
- package/dist/src/deploy/utils.js +60 -11
- package/dist/src/deploy/utils.js.map +1 -1
- package/dist/src/deploy/warp.d.ts +4 -7
- package/dist/src/deploy/warp.d.ts.map +1 -1
- package/dist/src/deploy/warp.js +129 -169
- package/dist/src/deploy/warp.js.map +1 -1
- package/dist/src/hook/read.d.ts +13 -0
- package/dist/src/hook/read.d.ts.map +1 -0
- package/dist/src/hook/read.js +25 -0
- package/dist/src/hook/read.js.map +1 -0
- package/dist/src/ism/read.d.ts +13 -0
- package/dist/src/ism/read.d.ts.map +1 -0
- package/dist/src/ism/read.js +25 -0
- package/dist/src/ism/read.js.map +1 -0
- package/dist/src/logger.d.ts +17 -0
- package/dist/src/logger.d.ts.map +1 -0
- package/dist/src/logger.js +32 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/registry/MergedRegistry.d.ts +35 -0
- package/dist/src/registry/MergedRegistry.d.ts.map +1 -0
- package/dist/src/registry/MergedRegistry.js +83 -0
- package/dist/src/registry/MergedRegistry.js.map +1 -0
- package/dist/src/send/message.d.ts +7 -6
- package/dist/src/send/message.d.ts.map +1 -1
- package/dist/src/send/message.js +40 -22
- package/dist/src/send/message.js.map +1 -1
- package/dist/src/send/transfer.d.ts +8 -10
- package/dist/src/send/transfer.d.ts.map +1 -1
- package/dist/src/send/transfer.js +68 -70
- package/dist/src/send/transfer.js.map +1 -1
- package/dist/src/status/message.d.ts +7 -5
- package/dist/src/status/message.d.ts.map +1 -1
- package/dist/src/status/message.js +25 -12
- package/dist/src/status/message.js.map +1 -1
- package/dist/src/submit/submit.d.ts +5 -0
- package/dist/src/submit/submit.d.ts.map +1 -0
- package/dist/src/submit/submit.js +30 -0
- package/dist/src/submit/submit.js.map +1 -0
- package/dist/src/submit/types.d.ts +18 -0
- package/dist/src/submit/types.d.ts.map +1 -0
- package/dist/src/submit/types.js +2 -0
- package/dist/src/{deploy → submit}/types.js.map +1 -1
- package/dist/src/tests/deployTestErc20.d.ts +2 -0
- package/dist/src/tests/deployTestErc20.d.ts.map +1 -0
- package/dist/src/tests/deployTestErc20.js +26 -0
- package/dist/src/tests/deployTestErc20.js.map +1 -0
- package/dist/src/tests/hooks.test.d.ts +2 -0
- package/dist/src/tests/hooks.test.d.ts.map +1 -0
- package/dist/src/tests/hooks.test.js +83 -0
- package/dist/src/tests/hooks.test.js.map +1 -0
- package/dist/src/tests/ism.test.d.ts +2 -0
- package/dist/src/tests/ism.test.d.ts.map +1 -0
- package/dist/src/tests/ism.test.js +76 -0
- package/dist/src/tests/ism.test.js.map +1 -0
- package/dist/src/tests/multisig.test.d.ts +2 -0
- package/dist/src/tests/multisig.test.d.ts.map +1 -0
- package/dist/src/tests/multisig.test.js +34 -0
- package/dist/src/tests/multisig.test.js.map +1 -0
- package/dist/src/utils/balances.d.ts +2 -4
- package/dist/src/utils/balances.d.ts.map +1 -1
- package/dist/src/utils/balances.js +8 -12
- package/dist/src/utils/balances.js.map +1 -1
- package/dist/src/utils/chains.d.ts +3 -2
- package/dist/src/utils/chains.d.ts.map +1 -1
- package/dist/src/utils/chains.js +33 -18
- package/dist/src/utils/chains.js.map +1 -1
- package/dist/src/utils/env.d.ts +6 -0
- package/dist/src/utils/env.d.ts.map +1 -0
- package/dist/src/utils/env.js +9 -0
- package/dist/src/utils/env.js.map +1 -0
- package/dist/src/utils/files.d.ts +6 -4
- package/dist/src/utils/files.d.ts.map +1 -1
- package/dist/src/utils/files.js +37 -25
- package/dist/src/utils/files.js.map +1 -1
- package/dist/src/utils/keys.d.ts +28 -1
- package/dist/src/utils/keys.d.ts.map +1 -1
- package/dist/src/utils/keys.js +65 -6
- package/dist/src/utils/keys.js.map +1 -1
- package/dist/src/utils/tokens.d.ts +3 -0
- package/dist/src/utils/tokens.d.ts.map +1 -0
- package/dist/src/utils/tokens.js +14 -0
- package/dist/src/utils/tokens.js.map +1 -0
- package/dist/src/utils/version-check.d.ts +2 -0
- package/dist/src/utils/version-check.d.ts.map +1 -0
- package/dist/src/utils/version-check.js +15 -0
- package/dist/src/utils/version-check.js.map +1 -0
- package/dist/src/version.d.ts +2 -0
- package/dist/src/version.d.ts.map +1 -0
- package/dist/src/version.js +2 -0
- package/dist/src/version.js.map +1 -0
- package/examples/chain-config.yaml +38 -46
- package/examples/contract-artifacts.yaml +4 -4
- package/examples/hooks.yaml +66 -0
- package/examples/ism-advanced.yaml +33 -0
- package/examples/{multisig-ism.yaml → ism.yaml} +0 -8
- package/examples/warp-route-deployment.yaml +32 -0
- package/package.json +20 -13
- package/dist/logger.d.ts +0 -14
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -45
- package/dist/logger.js.map +0 -1
- package/dist/src/config/artifacts.d.ts +0 -3
- package/dist/src/config/artifacts.d.ts.map +0 -1
- package/dist/src/config/artifacts.js +0 -18
- package/dist/src/config/artifacts.js.map +0 -1
- package/dist/src/context.d.ts +0 -388
- package/dist/src/context.d.ts.map +0 -1
- package/dist/src/context.js +0 -30
- package/dist/src/context.js.map +0 -1
- package/dist/src/deploy/TestRecipientDeployer.d.ts +0 -20
- package/dist/src/deploy/TestRecipientDeployer.d.ts.map +0 -1
- package/dist/src/deploy/TestRecipientDeployer.js +0 -36
- package/dist/src/deploy/TestRecipientDeployer.js.map +0 -1
- package/dist/src/deploy/types.d.ts +0 -21
- package/dist/src/deploy/types.d.ts.map +0 -1
- package/examples/anvil-chains.yaml +0 -22
- package/examples/hook-config.yaml +0 -18
- package/examples/warp-tokens.yaml +0 -26
- /package/dist/src/{deploy → context}/types.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../src/config/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../src/config/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAiB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,gBAAgB,CAAC,QAAgB;IAC/C,GAAG,CAAC,2BAA2B,QAAQ,EAAE,CAAC,CAAC;IAC3C,MAAM,aAAa,GAAG,cAAc,CAAgB,QAAQ,CAAC,CAAC;IAE9D,IACE,CAAC,aAAa;QACd,OAAO,aAAa,KAAK,QAAQ;QACjC,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,EAClC,CAAC;QACD,QAAQ,CAAC,uBAAuB,QAAQ,EAAE,CAAC,CAAC;QAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,iEAAiE;IACjE,MAAM,WAAW,GAAG,mBAAmB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IACjE,IAAI,CAAC,WA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,mBAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5D,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;QACxB,QAAQ,CAAC,4CAA4C,CAAC,CAAC;QACvD,MAAM,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC7E,CAAC;SAAM,CAAC;QACN,QAAQ,CACN,4JAA4J,CAC7J,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC"}
|
|
@@ -3,11 +3,7 @@ import { readChainConfigs } from './chain.js';
|
|
|
3
3
|
describe('readChainConfigs', () => {
|
|
4
4
|
const chainToMetadata = readChainConfigs('./examples/chain-config.yaml');
|
|
5
5
|
it('parses and validates correctly', () => {
|
|
6
|
-
expect(chainToMetadata.
|
|
7
|
-
});
|
|
8
|
-
it('merges core configs', () => {
|
|
9
|
-
expect(chainToMetadata.sepolia.chainId).to.equal(11155111);
|
|
10
|
-
expect(chainToMetadata.sepolia.rpcUrls[0].http).to.equal('https://mycustomrpc.com');
|
|
6
|
+
expect(chainToMetadata.chainId).to.equal(1234567890);
|
|
11
7
|
});
|
|
12
8
|
});
|
|
13
9
|
//# sourceMappingURL=chain.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.test.js","sourceRoot":"","sources":["../../../src/config/chain.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,MAAM,eAAe,GAAG,gBAAgB,CAAC,8BAA8B,CAAC,CAAC;IAEzE,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"chain.test.js","sourceRoot":"","sources":["../../../src/config/chain.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,MAAM,eAAe,GAAG,gBAAgB,CAAC,8BAA8B,CAAC,CAAC;IAEzE,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,55 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ChainMap, ChainName,
|
|
2
|
+
import { ChainMap, ChainName, GasOracleContractType, HookType, HooksConfig } from '@hyperlane-xyz/sdk';
|
|
3
3
|
import { Address } from '@hyperlane-xyz/utils';
|
|
4
|
-
import {
|
|
5
|
-
declare const
|
|
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<{
|
|
6
53
|
required: z.ZodUnion<[z.ZodObject<{
|
|
7
54
|
type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
|
|
8
55
|
owner: z.ZodString;
|
|
@@ -27,96 +74,28 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
27
74
|
type: HookType.MERKLE_TREE;
|
|
28
75
|
}, {
|
|
29
76
|
type: HookType.MERKLE_TREE;
|
|
30
|
-
}>]>;
|
|
31
|
-
default: z.ZodUnion<[z.ZodObject<{
|
|
32
|
-
type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
|
|
33
|
-
owner: z.ZodString;
|
|
34
|
-
beneficiary: z.ZodString;
|
|
35
|
-
maxProtocolFee: z.ZodString;
|
|
36
|
-
protocolFee: z.ZodString;
|
|
37
|
-
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
type: HookType.PROTOCOL_FEE;
|
|
39
|
-
owner: string;
|
|
40
|
-
beneficiary: string;
|
|
41
|
-
maxProtocolFee: string;
|
|
42
|
-
protocolFee: string;
|
|
43
|
-
}, {
|
|
44
|
-
type: HookType.PROTOCOL_FEE;
|
|
45
|
-
owner: string;
|
|
46
|
-
beneficiary: string;
|
|
47
|
-
maxProtocolFee: string;
|
|
48
|
-
protocolFee: string;
|
|
49
77
|
}>, z.ZodObject<{
|
|
50
|
-
type: z.ZodLiteral<HookType.
|
|
51
|
-
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
type: HookType.MERKLE_TREE;
|
|
53
|
-
}, {
|
|
54
|
-
type: HookType.MERKLE_TREE;
|
|
55
|
-
}>]>;
|
|
56
|
-
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
required: {
|
|
58
|
-
type: HookType.PROTOCOL_FEE;
|
|
59
|
-
owner: string;
|
|
60
|
-
beneficiary: string;
|
|
61
|
-
maxProtocolFee: string;
|
|
62
|
-
protocolFee: string;
|
|
63
|
-
} | {
|
|
64
|
-
type: HookType.MERKLE_TREE;
|
|
65
|
-
};
|
|
66
|
-
default: {
|
|
67
|
-
type: HookType.PROTOCOL_FEE;
|
|
68
|
-
owner: string;
|
|
69
|
-
beneficiary: string;
|
|
70
|
-
maxProtocolFee: string;
|
|
71
|
-
protocolFee: string;
|
|
72
|
-
} | {
|
|
73
|
-
type: HookType.MERKLE_TREE;
|
|
74
|
-
};
|
|
75
|
-
}, {
|
|
76
|
-
required: {
|
|
77
|
-
type: HookType.PROTOCOL_FEE;
|
|
78
|
-
owner: string;
|
|
79
|
-
beneficiary: string;
|
|
80
|
-
maxProtocolFee: string;
|
|
81
|
-
protocolFee: string;
|
|
82
|
-
} | {
|
|
83
|
-
type: HookType.MERKLE_TREE;
|
|
84
|
-
};
|
|
85
|
-
default: {
|
|
86
|
-
type: HookType.PROTOCOL_FEE;
|
|
87
|
-
owner: string;
|
|
88
|
-
beneficiary: string;
|
|
89
|
-
maxProtocolFee: string;
|
|
90
|
-
protocolFee: string;
|
|
91
|
-
} | {
|
|
92
|
-
type: HookType.MERKLE_TREE;
|
|
93
|
-
};
|
|
94
|
-
}>, z.objectOutputType<{}, z.ZodObject<{
|
|
95
|
-
required: z.ZodUnion<[z.ZodObject<{
|
|
96
|
-
type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
|
|
78
|
+
type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
|
|
97
79
|
owner: z.ZodString;
|
|
98
80
|
beneficiary: z.ZodString;
|
|
99
|
-
|
|
100
|
-
|
|
81
|
+
overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
82
|
+
gasOracleType: z.ZodRecord<z.ZodString, z.ZodLiteral<GasOracleContractType>>;
|
|
83
|
+
oracleKey: z.ZodString;
|
|
101
84
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
type: HookType.
|
|
85
|
+
type: HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
103
86
|
owner: string;
|
|
104
87
|
beneficiary: string;
|
|
105
|
-
|
|
106
|
-
|
|
88
|
+
overhead: Record<string, number>;
|
|
89
|
+
gasOracleType: Record<string, GasOracleContractType>;
|
|
90
|
+
oracleKey: string;
|
|
107
91
|
}, {
|
|
108
|
-
type: HookType.
|
|
92
|
+
type: HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
109
93
|
owner: string;
|
|
110
94
|
beneficiary: string;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
type: HookType.MERKLE_TREE;
|
|
117
|
-
}, {
|
|
118
|
-
type: HookType.MERKLE_TREE;
|
|
119
|
-
}>]>;
|
|
95
|
+
overhead: Record<string, number>;
|
|
96
|
+
gasOracleType: Record<string, GasOracleContractType>;
|
|
97
|
+
oracleKey: string;
|
|
98
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>]>;
|
|
120
99
|
default: z.ZodUnion<[z.ZodObject<{
|
|
121
100
|
type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
|
|
122
101
|
owner: z.ZodString;
|
|
@@ -141,149 +120,47 @@ declare const HookConfigMapSchema: z.ZodObject<{}, "strip", z.ZodObject<{
|
|
|
141
120
|
type: HookType.MERKLE_TREE;
|
|
142
121
|
}, {
|
|
143
122
|
type: HookType.MERKLE_TREE;
|
|
144
|
-
}>]>;
|
|
145
|
-
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
required: {
|
|
147
|
-
type: HookType.PROTOCOL_FEE;
|
|
148
|
-
owner: string;
|
|
149
|
-
beneficiary: string;
|
|
150
|
-
maxProtocolFee: string;
|
|
151
|
-
protocolFee: string;
|
|
152
|
-
} | {
|
|
153
|
-
type: HookType.MERKLE_TREE;
|
|
154
|
-
};
|
|
155
|
-
default: {
|
|
156
|
-
type: HookType.PROTOCOL_FEE;
|
|
157
|
-
owner: string;
|
|
158
|
-
beneficiary: string;
|
|
159
|
-
maxProtocolFee: string;
|
|
160
|
-
protocolFee: string;
|
|
161
|
-
} | {
|
|
162
|
-
type: HookType.MERKLE_TREE;
|
|
163
|
-
};
|
|
164
|
-
}, {
|
|
165
|
-
required: {
|
|
166
|
-
type: HookType.PROTOCOL_FEE;
|
|
167
|
-
owner: string;
|
|
168
|
-
beneficiary: string;
|
|
169
|
-
maxProtocolFee: string;
|
|
170
|
-
protocolFee: string;
|
|
171
|
-
} | {
|
|
172
|
-
type: HookType.MERKLE_TREE;
|
|
173
|
-
};
|
|
174
|
-
default: {
|
|
175
|
-
type: HookType.PROTOCOL_FEE;
|
|
176
|
-
owner: string;
|
|
177
|
-
beneficiary: string;
|
|
178
|
-
maxProtocolFee: string;
|
|
179
|
-
protocolFee: string;
|
|
180
|
-
} | {
|
|
181
|
-
type: HookType.MERKLE_TREE;
|
|
182
|
-
};
|
|
183
|
-
}>, "strip">, z.objectInputType<{}, z.ZodObject<{
|
|
184
|
-
required: z.ZodUnion<[z.ZodObject<{
|
|
185
|
-
type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
|
|
186
|
-
owner: z.ZodString;
|
|
187
|
-
beneficiary: z.ZodString;
|
|
188
|
-
maxProtocolFee: z.ZodString;
|
|
189
|
-
protocolFee: z.ZodString;
|
|
190
|
-
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
type: HookType.PROTOCOL_FEE;
|
|
192
|
-
owner: string;
|
|
193
|
-
beneficiary: string;
|
|
194
|
-
maxProtocolFee: string;
|
|
195
|
-
protocolFee: string;
|
|
196
|
-
}, {
|
|
197
|
-
type: HookType.PROTOCOL_FEE;
|
|
198
|
-
owner: string;
|
|
199
|
-
beneficiary: string;
|
|
200
|
-
maxProtocolFee: string;
|
|
201
|
-
protocolFee: string;
|
|
202
123
|
}>, z.ZodObject<{
|
|
203
|
-
type: z.ZodLiteral<HookType.
|
|
204
|
-
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
type: HookType.MERKLE_TREE;
|
|
206
|
-
}, {
|
|
207
|
-
type: HookType.MERKLE_TREE;
|
|
208
|
-
}>]>;
|
|
209
|
-
default: z.ZodUnion<[z.ZodObject<{
|
|
210
|
-
type: z.ZodLiteral<HookType.PROTOCOL_FEE>;
|
|
124
|
+
type: z.ZodLiteral<HookType.INTERCHAIN_GAS_PAYMASTER>;
|
|
211
125
|
owner: z.ZodString;
|
|
212
126
|
beneficiary: z.ZodString;
|
|
213
|
-
|
|
214
|
-
|
|
127
|
+
overhead: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
128
|
+
gasOracleType: z.ZodRecord<z.ZodString, z.ZodLiteral<GasOracleContractType>>;
|
|
129
|
+
oracleKey: z.ZodString;
|
|
215
130
|
}, "strip", z.ZodTypeAny, {
|
|
216
|
-
type: HookType.
|
|
131
|
+
type: HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
217
132
|
owner: string;
|
|
218
133
|
beneficiary: string;
|
|
219
|
-
|
|
220
|
-
|
|
134
|
+
overhead: Record<string, number>;
|
|
135
|
+
gasOracleType: Record<string, GasOracleContractType>;
|
|
136
|
+
oracleKey: string;
|
|
221
137
|
}, {
|
|
222
|
-
type: HookType.
|
|
138
|
+
type: HookType.INTERCHAIN_GAS_PAYMASTER;
|
|
223
139
|
owner: string;
|
|
224
140
|
beneficiary: string;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}, "strip", z.ZodTypeAny, {
|
|
230
|
-
type: HookType.MERKLE_TREE;
|
|
231
|
-
}, {
|
|
232
|
-
type: HookType.MERKLE_TREE;
|
|
233
|
-
}>]>;
|
|
141
|
+
overhead: Record<string, number>;
|
|
142
|
+
gasOracleType: Record<string, GasOracleContractType>;
|
|
143
|
+
oracleKey: string;
|
|
144
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>]>;
|
|
234
145
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
required
|
|
236
|
-
|
|
237
|
-
owner: string;
|
|
238
|
-
beneficiary: string;
|
|
239
|
-
maxProtocolFee: string;
|
|
240
|
-
protocolFee: string;
|
|
241
|
-
} | {
|
|
242
|
-
type: HookType.MERKLE_TREE;
|
|
243
|
-
};
|
|
244
|
-
default: {
|
|
245
|
-
type: HookType.PROTOCOL_FEE;
|
|
246
|
-
owner: string;
|
|
247
|
-
beneficiary: string;
|
|
248
|
-
maxProtocolFee: string;
|
|
249
|
-
protocolFee: string;
|
|
250
|
-
} | {
|
|
251
|
-
type: HookType.MERKLE_TREE;
|
|
252
|
-
};
|
|
146
|
+
required?: any;
|
|
147
|
+
default?: any;
|
|
253
148
|
}, {
|
|
254
|
-
required
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
maxProtocolFee: string;
|
|
259
|
-
protocolFee: string;
|
|
260
|
-
} | {
|
|
261
|
-
type: HookType.MERKLE_TREE;
|
|
262
|
-
};
|
|
263
|
-
default: {
|
|
264
|
-
type: HookType.PROTOCOL_FEE;
|
|
265
|
-
owner: string;
|
|
266
|
-
beneficiary: string;
|
|
267
|
-
maxProtocolFee: string;
|
|
268
|
-
protocolFee: string;
|
|
269
|
-
} | {
|
|
270
|
-
type: HookType.MERKLE_TREE;
|
|
271
|
-
};
|
|
272
|
-
}>, "strip">>;
|
|
273
|
-
export type HookConfigMap = z.infer<typeof HookConfigMapSchema>;
|
|
149
|
+
required?: any;
|
|
150
|
+
default?: any;
|
|
151
|
+
}>>;
|
|
152
|
+
export type HooksConfigMap = z.infer<typeof HooksConfigMapSchema>;
|
|
274
153
|
export declare function isValidHookConfigMap(config: any): boolean;
|
|
275
|
-
export declare function presetHookConfigs(owner: Address
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
hooks: (MerkleTreeHookConfig | IgpHookConfig)[];
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
export declare function readHookConfig(filePath: string): ChainMap<HookConfig> | undefined;
|
|
283
|
-
export declare function createHookConfig({ format, outPath, chainConfigPath, }: {
|
|
284
|
-
format: FileFormat;
|
|
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;
|
|
285
158
|
outPath: string;
|
|
286
|
-
chainConfigPath: string;
|
|
287
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>;
|
|
162
|
+
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>;
|
|
288
165
|
export {};
|
|
289
166
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/config/hooks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,QAAQ,EACR,SAAS,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/config/hooks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,QAAQ,EACR,SAAS,EACT,qBAAqB,EACrB,QAAQ,EACR,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,OAAO,EAIR,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAyCrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAMpB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAA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