@hyperlane-xyz/cli 3.1.9 → 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 -3
- 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 -64
- package/dist/src/config/chain.js.map +1 -1
- package/dist/src/config/chain.test.d.ts +2 -0
- package/dist/src/config/chain.test.d.ts.map +1 -0
- package/dist/src/config/chain.test.js +9 -0
- package/dist/src/config/chain.test.js.map +1 -0
- 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 +131 -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 +42 -23
- 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 +7 -4
- package/dist/src/utils/files.d.ts.map +1 -1
- package/dist/src/utils/files.js +52 -29
- 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/time.d.ts.map +1 -1
- package/dist/src/utils/time.js +8 -1
- package/dist/src/utils/time.js.map +1 -1
- package/dist/src/utils/time.test.d.ts +2 -0
- package/dist/src/utils/time.test.d.ts.map +1 -0
- package/dist/src/utils/time.test.js +9 -0
- package/dist/src/utils/time.test.js.map +1 -0
- 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 -40
- 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 +27 -14
- package/dist/logger.d.ts +0 -13
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -44
- 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
package/dist/src/context.d.ts
DELETED
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
import { ethers } from 'ethers';
|
|
2
|
-
import { ChainMap, ChainMetadata, HyperlaneContractsMap, MultiProvider } from '@hyperlane-xyz/sdk';
|
|
3
|
-
export declare const sdkContractAddressesMap: {
|
|
4
|
-
polygon: {
|
|
5
|
-
storageGasOracle: string;
|
|
6
|
-
proxyAdmin: string;
|
|
7
|
-
merkleRootMultisigIsmFactory: string;
|
|
8
|
-
messageIdMultisigIsmFactory: string;
|
|
9
|
-
aggregationIsmFactory: string;
|
|
10
|
-
aggregationHookFactory: string;
|
|
11
|
-
routingIsmFactory: string;
|
|
12
|
-
mailbox: string;
|
|
13
|
-
merkleTreeHook: string;
|
|
14
|
-
interchainGasPaymaster: string;
|
|
15
|
-
aggregationHook: string;
|
|
16
|
-
protocolFee: string;
|
|
17
|
-
validatorAnnounce: string;
|
|
18
|
-
};
|
|
19
|
-
bsc: {
|
|
20
|
-
storageGasOracle: string;
|
|
21
|
-
proxyAdmin: string;
|
|
22
|
-
merkleRootMultisigIsmFactory: string;
|
|
23
|
-
messageIdMultisigIsmFactory: string;
|
|
24
|
-
aggregationIsmFactory: string;
|
|
25
|
-
aggregationHookFactory: string;
|
|
26
|
-
routingIsmFactory: string;
|
|
27
|
-
mailbox: string;
|
|
28
|
-
merkleTreeHook: string;
|
|
29
|
-
interchainGasPaymaster: string;
|
|
30
|
-
aggregationHook: string;
|
|
31
|
-
protocolFee: string;
|
|
32
|
-
validatorAnnounce: string;
|
|
33
|
-
};
|
|
34
|
-
arbitrum: {
|
|
35
|
-
storageGasOracle: string;
|
|
36
|
-
proxyAdmin: string;
|
|
37
|
-
merkleRootMultisigIsmFactory: string;
|
|
38
|
-
messageIdMultisigIsmFactory: string;
|
|
39
|
-
aggregationIsmFactory: string;
|
|
40
|
-
aggregationHookFactory: string;
|
|
41
|
-
routingIsmFactory: string;
|
|
42
|
-
merkleTreeHook: string;
|
|
43
|
-
interchainGasPaymaster: string;
|
|
44
|
-
aggregationHook: string;
|
|
45
|
-
protocolFee: string;
|
|
46
|
-
mailbox: string;
|
|
47
|
-
validatorAnnounce: string;
|
|
48
|
-
};
|
|
49
|
-
optimism: {
|
|
50
|
-
storageGasOracle: string;
|
|
51
|
-
proxyAdmin: string;
|
|
52
|
-
merkleRootMultisigIsmFactory: string;
|
|
53
|
-
messageIdMultisigIsmFactory: string;
|
|
54
|
-
aggregationIsmFactory: string;
|
|
55
|
-
aggregationHookFactory: string;
|
|
56
|
-
routingIsmFactory: string;
|
|
57
|
-
merkleTreeHook: string;
|
|
58
|
-
interchainGasPaymaster: string;
|
|
59
|
-
aggregationHook: string;
|
|
60
|
-
protocolFee: string;
|
|
61
|
-
mailbox: string;
|
|
62
|
-
validatorAnnounce: string;
|
|
63
|
-
};
|
|
64
|
-
moonbeam: {
|
|
65
|
-
storageGasOracle: string;
|
|
66
|
-
proxyAdmin: string;
|
|
67
|
-
merkleRootMultisigIsmFactory: string;
|
|
68
|
-
messageIdMultisigIsmFactory: string;
|
|
69
|
-
aggregationIsmFactory: string;
|
|
70
|
-
aggregationHookFactory: string;
|
|
71
|
-
routingIsmFactory: string;
|
|
72
|
-
mailbox: string;
|
|
73
|
-
merkleTreeHook: string;
|
|
74
|
-
interchainGasPaymaster: string;
|
|
75
|
-
aggregationHook: string;
|
|
76
|
-
protocolFee: string;
|
|
77
|
-
validatorAnnounce: string;
|
|
78
|
-
};
|
|
79
|
-
gnosis: {
|
|
80
|
-
storageGasOracle: string;
|
|
81
|
-
proxyAdmin: string;
|
|
82
|
-
merkleRootMultisigIsmFactory: string;
|
|
83
|
-
messageIdMultisigIsmFactory: string;
|
|
84
|
-
aggregationIsmFactory: string;
|
|
85
|
-
aggregationHookFactory: string;
|
|
86
|
-
mailbox: string;
|
|
87
|
-
routingIsmFactory: string;
|
|
88
|
-
merkleTreeHook: string;
|
|
89
|
-
interchainGasPaymaster: string;
|
|
90
|
-
aggregationHook: string;
|
|
91
|
-
protocolFee: string;
|
|
92
|
-
validatorAnnounce: string;
|
|
93
|
-
};
|
|
94
|
-
base: {
|
|
95
|
-
merkleRootMultisigIsmFactory: string;
|
|
96
|
-
messageIdMultisigIsmFactory: string;
|
|
97
|
-
aggregationIsmFactory: string;
|
|
98
|
-
aggregationHookFactory: string;
|
|
99
|
-
routingIsmFactory: string;
|
|
100
|
-
proxyAdmin: string;
|
|
101
|
-
mailbox: string;
|
|
102
|
-
merkleTreeHook: string;
|
|
103
|
-
storageGasOracle: string;
|
|
104
|
-
interchainGasPaymaster: string;
|
|
105
|
-
aggregationHook: string;
|
|
106
|
-
protocolFee: string;
|
|
107
|
-
validatorAnnounce: string;
|
|
108
|
-
};
|
|
109
|
-
scroll: {
|
|
110
|
-
merkleRootMultisigIsmFactory: string;
|
|
111
|
-
messageIdMultisigIsmFactory: string;
|
|
112
|
-
aggregationIsmFactory: string;
|
|
113
|
-
aggregationHookFactory: string;
|
|
114
|
-
routingIsmFactory: string;
|
|
115
|
-
merkleTreeHook: string;
|
|
116
|
-
proxyAdmin: string;
|
|
117
|
-
storageGasOracle: string;
|
|
118
|
-
interchainGasPaymaster: string;
|
|
119
|
-
aggregationHook: string;
|
|
120
|
-
protocolFee: string;
|
|
121
|
-
mailbox: string;
|
|
122
|
-
validatorAnnounce: string;
|
|
123
|
-
};
|
|
124
|
-
polygonzkevm: {
|
|
125
|
-
merkleRootMultisigIsmFactory: string;
|
|
126
|
-
messageIdMultisigIsmFactory: string;
|
|
127
|
-
aggregationIsmFactory: string;
|
|
128
|
-
aggregationHookFactory: string;
|
|
129
|
-
routingIsmFactory: string;
|
|
130
|
-
merkleTreeHook: string;
|
|
131
|
-
proxyAdmin: string;
|
|
132
|
-
storageGasOracle: string;
|
|
133
|
-
interchainGasPaymaster: string;
|
|
134
|
-
aggregationHook: string;
|
|
135
|
-
protocolFee: string;
|
|
136
|
-
mailbox: string;
|
|
137
|
-
validatorAnnounce: string;
|
|
138
|
-
};
|
|
139
|
-
celo: {
|
|
140
|
-
storageGasOracle: string;
|
|
141
|
-
proxyAdmin: string;
|
|
142
|
-
merkleRootMultisigIsmFactory: string;
|
|
143
|
-
messageIdMultisigIsmFactory: string;
|
|
144
|
-
aggregationIsmFactory: string;
|
|
145
|
-
aggregationHookFactory: string;
|
|
146
|
-
routingIsmFactory: string;
|
|
147
|
-
merkleTreeHook: string;
|
|
148
|
-
interchainGasPaymaster: string;
|
|
149
|
-
aggregationHook: string;
|
|
150
|
-
protocolFee: string;
|
|
151
|
-
mailbox: string;
|
|
152
|
-
validatorAnnounce: string;
|
|
153
|
-
};
|
|
154
|
-
ethereum: {
|
|
155
|
-
storageGasOracle: string;
|
|
156
|
-
proxyAdmin: string;
|
|
157
|
-
merkleRootMultisigIsmFactory: string;
|
|
158
|
-
messageIdMultisigIsmFactory: string;
|
|
159
|
-
aggregationIsmFactory: string;
|
|
160
|
-
aggregationHookFactory: string;
|
|
161
|
-
routingIsmFactory: string;
|
|
162
|
-
merkleTreeHook: string;
|
|
163
|
-
interchainGasPaymaster: string;
|
|
164
|
-
aggregationHook: string;
|
|
165
|
-
protocolFee: string;
|
|
166
|
-
mailbox: string;
|
|
167
|
-
validatorAnnounce: string;
|
|
168
|
-
};
|
|
169
|
-
avalanche: {
|
|
170
|
-
storageGasOracle: string;
|
|
171
|
-
proxyAdmin: string;
|
|
172
|
-
merkleRootMultisigIsmFactory: string;
|
|
173
|
-
messageIdMultisigIsmFactory: string;
|
|
174
|
-
aggregationIsmFactory: string;
|
|
175
|
-
aggregationHookFactory: string;
|
|
176
|
-
routingIsmFactory: string;
|
|
177
|
-
merkleTreeHook: string;
|
|
178
|
-
interchainGasPaymaster: string;
|
|
179
|
-
aggregationHook: string;
|
|
180
|
-
protocolFee: string;
|
|
181
|
-
mailbox: string;
|
|
182
|
-
validatorAnnounce: string;
|
|
183
|
-
};
|
|
184
|
-
basegoerli: {
|
|
185
|
-
merkleRootMultisigIsmFactory: string;
|
|
186
|
-
messageIdMultisigIsmFactory: string;
|
|
187
|
-
aggregationIsmFactory: string;
|
|
188
|
-
aggregationHookFactory: string;
|
|
189
|
-
routingIsmFactory: string;
|
|
190
|
-
proxyAdmin: string;
|
|
191
|
-
mailbox: string;
|
|
192
|
-
validatorAnnounce: string;
|
|
193
|
-
merkleTreeHook: string;
|
|
194
|
-
storageGasOracle: string;
|
|
195
|
-
interchainGasPaymaster: string;
|
|
196
|
-
aggregationHook: string;
|
|
197
|
-
protocolFee: string;
|
|
198
|
-
fallbackRoutingHook: string;
|
|
199
|
-
};
|
|
200
|
-
arbitrumgoerli: {
|
|
201
|
-
merkleRootMultisigIsmFactory: string;
|
|
202
|
-
messageIdMultisigIsmFactory: string;
|
|
203
|
-
aggregationIsmFactory: string;
|
|
204
|
-
aggregationHookFactory: string;
|
|
205
|
-
routingIsmFactory: string;
|
|
206
|
-
proxyAdmin: string;
|
|
207
|
-
mailbox: string;
|
|
208
|
-
validatorAnnounce: string;
|
|
209
|
-
merkleTreeHook: string;
|
|
210
|
-
storageGasOracle: string;
|
|
211
|
-
interchainGasPaymaster: string;
|
|
212
|
-
aggregationHook: string;
|
|
213
|
-
protocolFee: string;
|
|
214
|
-
fallbackRoutingHook: string;
|
|
215
|
-
};
|
|
216
|
-
optimismgoerli: {
|
|
217
|
-
merkleRootMultisigIsmFactory: string;
|
|
218
|
-
messageIdMultisigIsmFactory: string;
|
|
219
|
-
aggregationIsmFactory: string;
|
|
220
|
-
aggregationHookFactory: string;
|
|
221
|
-
routingIsmFactory: string;
|
|
222
|
-
proxyAdmin: string;
|
|
223
|
-
mailbox: string;
|
|
224
|
-
validatorAnnounce: string;
|
|
225
|
-
merkleTreeHook: string;
|
|
226
|
-
storageGasOracle: string;
|
|
227
|
-
interchainGasPaymaster: string;
|
|
228
|
-
aggregationHook: string;
|
|
229
|
-
protocolFee: string;
|
|
230
|
-
fallbackRoutingHook: string;
|
|
231
|
-
};
|
|
232
|
-
scrollsepolia: {
|
|
233
|
-
merkleRootMultisigIsmFactory: string;
|
|
234
|
-
messageIdMultisigIsmFactory: string;
|
|
235
|
-
aggregationIsmFactory: string;
|
|
236
|
-
aggregationHookFactory: string;
|
|
237
|
-
routingIsmFactory: string;
|
|
238
|
-
proxyAdmin: string;
|
|
239
|
-
mailbox: string;
|
|
240
|
-
validatorAnnounce: string;
|
|
241
|
-
merkleTreeHook: string;
|
|
242
|
-
storageGasOracle: string;
|
|
243
|
-
interchainGasPaymaster: string;
|
|
244
|
-
aggregationHook: string;
|
|
245
|
-
protocolFee: string;
|
|
246
|
-
fallbackRoutingHook: string;
|
|
247
|
-
};
|
|
248
|
-
alfajores: {
|
|
249
|
-
merkleRootMultisigIsmFactory: string;
|
|
250
|
-
messageIdMultisigIsmFactory: string;
|
|
251
|
-
aggregationIsmFactory: string;
|
|
252
|
-
aggregationHookFactory: string;
|
|
253
|
-
routingIsmFactory: string;
|
|
254
|
-
proxyAdmin: string;
|
|
255
|
-
mailbox: string;
|
|
256
|
-
validatorAnnounce: string;
|
|
257
|
-
merkleTreeHook: string;
|
|
258
|
-
storageGasOracle: string;
|
|
259
|
-
interchainGasPaymaster: string;
|
|
260
|
-
aggregationHook: string;
|
|
261
|
-
protocolFee: string;
|
|
262
|
-
fallbackRoutingHook: string;
|
|
263
|
-
};
|
|
264
|
-
polygonzkevmtestnet: {
|
|
265
|
-
merkleRootMultisigIsmFactory: string;
|
|
266
|
-
messageIdMultisigIsmFactory: string;
|
|
267
|
-
aggregationIsmFactory: string;
|
|
268
|
-
aggregationHookFactory: string;
|
|
269
|
-
routingIsmFactory: string;
|
|
270
|
-
proxyAdmin: string;
|
|
271
|
-
mailbox: string;
|
|
272
|
-
validatorAnnounce: string;
|
|
273
|
-
merkleTreeHook: string;
|
|
274
|
-
storageGasOracle: string;
|
|
275
|
-
interchainGasPaymaster: string;
|
|
276
|
-
aggregationHook: string;
|
|
277
|
-
protocolFee: string;
|
|
278
|
-
fallbackRoutingHook: string;
|
|
279
|
-
};
|
|
280
|
-
sepolia: {
|
|
281
|
-
merkleRootMultisigIsmFactory: string;
|
|
282
|
-
messageIdMultisigIsmFactory: string;
|
|
283
|
-
aggregationIsmFactory: string;
|
|
284
|
-
aggregationHookFactory: string;
|
|
285
|
-
routingIsmFactory: string;
|
|
286
|
-
proxyAdmin: string;
|
|
287
|
-
storageGasOracle: string;
|
|
288
|
-
interchainGasPaymaster: string;
|
|
289
|
-
aggregationHook: string;
|
|
290
|
-
protocolFee: string;
|
|
291
|
-
mailbox: string;
|
|
292
|
-
merkleTreeHook: string;
|
|
293
|
-
validatorAnnounce: string;
|
|
294
|
-
fallbackRoutingHook: string;
|
|
295
|
-
};
|
|
296
|
-
fuji: {
|
|
297
|
-
merkleRootMultisigIsmFactory: string;
|
|
298
|
-
messageIdMultisigIsmFactory: string;
|
|
299
|
-
aggregationIsmFactory: string;
|
|
300
|
-
aggregationHookFactory: string;
|
|
301
|
-
routingIsmFactory: string;
|
|
302
|
-
proxyAdmin: string;
|
|
303
|
-
mailbox: string;
|
|
304
|
-
validatorAnnounce: string;
|
|
305
|
-
merkleTreeHook: string;
|
|
306
|
-
storageGasOracle: string;
|
|
307
|
-
interchainGasPaymaster: string;
|
|
308
|
-
aggregationHook: string;
|
|
309
|
-
protocolFee: string;
|
|
310
|
-
fallbackRoutingHook: string;
|
|
311
|
-
};
|
|
312
|
-
bsctestnet: {
|
|
313
|
-
merkleRootMultisigIsmFactory: string;
|
|
314
|
-
messageIdMultisigIsmFactory: string;
|
|
315
|
-
aggregationIsmFactory: string;
|
|
316
|
-
aggregationHookFactory: string;
|
|
317
|
-
routingIsmFactory: string;
|
|
318
|
-
proxyAdmin: string;
|
|
319
|
-
storageGasOracle: string;
|
|
320
|
-
interchainGasPaymaster: string;
|
|
321
|
-
aggregationHook: string;
|
|
322
|
-
protocolFee: string;
|
|
323
|
-
mailbox: string;
|
|
324
|
-
merkleTreeHook: string;
|
|
325
|
-
validatorAnnounce: string;
|
|
326
|
-
fallbackRoutingHook: string;
|
|
327
|
-
};
|
|
328
|
-
goerli: {
|
|
329
|
-
merkleRootMultisigIsmFactory: string;
|
|
330
|
-
messageIdMultisigIsmFactory: string;
|
|
331
|
-
aggregationIsmFactory: string;
|
|
332
|
-
aggregationHookFactory: string;
|
|
333
|
-
routingIsmFactory: string;
|
|
334
|
-
proxyAdmin: string;
|
|
335
|
-
storageGasOracle: string;
|
|
336
|
-
interchainGasPaymaster: string;
|
|
337
|
-
aggregationHook: string;
|
|
338
|
-
protocolFee: string;
|
|
339
|
-
merkleTreeHook: string;
|
|
340
|
-
mailbox: string;
|
|
341
|
-
validatorAnnounce: string;
|
|
342
|
-
fallbackRoutingHook: string;
|
|
343
|
-
};
|
|
344
|
-
moonbasealpha: {
|
|
345
|
-
merkleRootMultisigIsmFactory: string;
|
|
346
|
-
messageIdMultisigIsmFactory: string;
|
|
347
|
-
aggregationIsmFactory: string;
|
|
348
|
-
aggregationHookFactory: string;
|
|
349
|
-
routingIsmFactory: string;
|
|
350
|
-
proxyAdmin: string;
|
|
351
|
-
mailbox: string;
|
|
352
|
-
merkleTreeHook: string;
|
|
353
|
-
storageGasOracle: string;
|
|
354
|
-
interchainGasPaymaster: string;
|
|
355
|
-
aggregationHook: string;
|
|
356
|
-
protocolFee: string;
|
|
357
|
-
validatorAnnounce: string;
|
|
358
|
-
fallbackRoutingHook: string;
|
|
359
|
-
};
|
|
360
|
-
mumbai: {
|
|
361
|
-
merkleRootMultisigIsmFactory: string;
|
|
362
|
-
messageIdMultisigIsmFactory: string;
|
|
363
|
-
aggregationIsmFactory: string;
|
|
364
|
-
aggregationHookFactory: string;
|
|
365
|
-
routingIsmFactory: string;
|
|
366
|
-
merkleTreeHook: string;
|
|
367
|
-
proxyAdmin: string;
|
|
368
|
-
storageGasOracle: string;
|
|
369
|
-
interchainGasPaymaster: string;
|
|
370
|
-
aggregationHook: string;
|
|
371
|
-
protocolFee: string;
|
|
372
|
-
mailbox: string;
|
|
373
|
-
validatorAnnounce: string;
|
|
374
|
-
fallbackRoutingHook: string;
|
|
375
|
-
};
|
|
376
|
-
};
|
|
377
|
-
export declare function getMergedContractAddresses(artifacts?: HyperlaneContractsMap<any>): HyperlaneContractsMap<any>;
|
|
378
|
-
export declare function getContext(chainConfigPath: string): {
|
|
379
|
-
customChains: ChainMap<ChainMetadata>;
|
|
380
|
-
multiProvider: MultiProvider<object>;
|
|
381
|
-
};
|
|
382
|
-
export declare function getContextWithSigner(key: string, chainConfigPath: string): {
|
|
383
|
-
signer: ethers.Wallet;
|
|
384
|
-
customChains: ChainMap<ChainMetadata>;
|
|
385
|
-
multiProvider: MultiProvider<object>;
|
|
386
|
-
};
|
|
387
|
-
export declare function getMultiProvider(customChains: ChainMap<ChainMetadata>, signer?: ethers.Signer): MultiProvider<object>;
|
|
388
|
-
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnC,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,SAAS,CAAC,EAAE,qBAAqB,CAAC,GAAG,CAAC,8BAMvC;AAED,wBAAgB,UAAU,CAAC,eAAe,EAAE,MAAM;;;EAIjD;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;;;;EAKxE;AAED,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,QAAQ,CAAC,aAAa,CAAC,EACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,yBAMvB"}
|
package/dist/src/context.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { MultiProvider, chainMetadata, hyperlaneEnvironments, } from '@hyperlane-xyz/sdk';
|
|
2
|
-
import { objMerge } from '@hyperlane-xyz/utils';
|
|
3
|
-
import { readChainConfigsIfExists } from './config/chain.js';
|
|
4
|
-
import { keyToSigner } from './utils/keys.js';
|
|
5
|
-
export const sdkContractAddressesMap = {
|
|
6
|
-
...hyperlaneEnvironments.testnet,
|
|
7
|
-
...hyperlaneEnvironments.mainnet,
|
|
8
|
-
};
|
|
9
|
-
export function getMergedContractAddresses(artifacts) {
|
|
10
|
-
return objMerge(sdkContractAddressesMap, artifacts || {});
|
|
11
|
-
}
|
|
12
|
-
export function getContext(chainConfigPath) {
|
|
13
|
-
const customChains = readChainConfigsIfExists(chainConfigPath);
|
|
14
|
-
const multiProvider = getMultiProvider(customChains);
|
|
15
|
-
return { customChains, multiProvider };
|
|
16
|
-
}
|
|
17
|
-
export function getContextWithSigner(key, chainConfigPath) {
|
|
18
|
-
const signer = keyToSigner(key);
|
|
19
|
-
const customChains = readChainConfigsIfExists(chainConfigPath);
|
|
20
|
-
const multiProvider = getMultiProvider(customChains, signer);
|
|
21
|
-
return { signer, customChains, multiProvider };
|
|
22
|
-
}
|
|
23
|
-
export function getMultiProvider(customChains, signer) {
|
|
24
|
-
const chainConfigs = { ...chainMetadata, ...customChains };
|
|
25
|
-
const mp = new MultiProvider(chainConfigs);
|
|
26
|
-
if (signer)
|
|
27
|
-
mp.setSharedSigner(signer);
|
|
28
|
-
return mp;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=context.js.map
|
package/dist/src/context.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,aAAa,EACb,aAAa,EACb,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,GAAG,qBAAqB,CAAC,OAAO;IAChC,GAAG,qBAAqB,CAAC,OAAO;CACjC,CAAC;AAEF,MAAM,UAAU,0BAA0B,CACxC,SAAsC;IAEtC,OAAO,QAAQ,CACb,uBAAuB,EACvB,SAAS,IAAI,EAAE,CACc,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,eAAuB;IAChD,MAAM,YAAY,GAAG,wBAAwB,CAAC,eAAe,CAAC,CAAC;IAC/D,MAAM,aAAa,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACrD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,GAAW,EAAE,eAAuB;IACvE,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,YAAY,GAAG,wBAAwB,CAAC,eAAe,CAAC,CAAC;IAC/D,MAAM,aAAa,GAAG,gBAAgB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC7D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,YAAqC,EACrC,MAAsB;IAEtB,MAAM,YAAY,GAAG,EAAE,GAAG,aAAa,EAAE,GAAG,YAAY,EAAE,CAAC;IAC3D,MAAM,EAAE,GAAG,IAAI,aAAa,CAAC,YAAY,CAAC,CAAC;IAC3C,IAAI,MAAM;QAAE,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TestRecipient, TestRecipient__factory } from '@hyperlane-xyz/core';
|
|
2
|
-
import { ChainName, HyperlaneDeployer, MultiProvider } from '@hyperlane-xyz/sdk';
|
|
3
|
-
import { Address } from '@hyperlane-xyz/utils';
|
|
4
|
-
export type TestRecipientConfig = {
|
|
5
|
-
interchainSecurityModule: Address;
|
|
6
|
-
};
|
|
7
|
-
export type TestRecipientContracts = {
|
|
8
|
-
testRecipient: TestRecipient;
|
|
9
|
-
};
|
|
10
|
-
export type TestRecipientAddresses = {
|
|
11
|
-
testRecipient: Address;
|
|
12
|
-
};
|
|
13
|
-
export declare const testRecipientFactories: {
|
|
14
|
-
testRecipient: TestRecipient__factory;
|
|
15
|
-
};
|
|
16
|
-
export declare class TestRecipientDeployer extends HyperlaneDeployer<TestRecipientConfig, typeof testRecipientFactories> {
|
|
17
|
-
constructor(multiProvider: MultiProvider);
|
|
18
|
-
deployContracts(chain: ChainName, config: TestRecipientConfig): Promise<TestRecipientContracts>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=TestRecipientDeployer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestRecipientDeployer.d.ts","sourceRoot":"","sources":["../../../src/deploy/TestRecipientDeployer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAa,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG;IAChC,wBAAwB,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;CAElC,CAAC;AAGF,qBAAa,qBAAsB,SAAQ,iBAAiB,CAC1D,mBAAmB,EACnB,OAAO,sBAAsB,CAC9B;gBACa,aAAa,EAAE,aAAa;IAMlC,eAAe,CACnB,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,sBAAsB,CAAC;CAuBnC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import debug from 'debug';
|
|
2
|
-
import { TestRecipient__factory } from '@hyperlane-xyz/core';
|
|
3
|
-
import { HyperlaneDeployer, } from '@hyperlane-xyz/sdk';
|
|
4
|
-
import { eqAddress } from '@hyperlane-xyz/utils';
|
|
5
|
-
export const testRecipientFactories = {
|
|
6
|
-
testRecipient: new TestRecipient__factory(),
|
|
7
|
-
};
|
|
8
|
-
// TODO move this and related configs to the SDK
|
|
9
|
-
export class TestRecipientDeployer extends HyperlaneDeployer {
|
|
10
|
-
constructor(multiProvider) {
|
|
11
|
-
super(multiProvider, testRecipientFactories, {
|
|
12
|
-
logger: debug('hyperlane:TestRecipientDeployer'),
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
async deployContracts(chain, config) {
|
|
16
|
-
const testRecipient = await this.deployContract(chain, 'testRecipient', []);
|
|
17
|
-
try {
|
|
18
|
-
this.logger(`Checking ISM ${chain}`);
|
|
19
|
-
const ism = await testRecipient.interchainSecurityModule();
|
|
20
|
-
this.logger(`Found ISM for on ${chain}: ${ism}`);
|
|
21
|
-
if (!eqAddress(ism, config.interchainSecurityModule)) {
|
|
22
|
-
this.logger(`Current ISM does not match config. Updating to ${config.interchainSecurityModule}`);
|
|
23
|
-
const tx = testRecipient.setInterchainSecurityModule(config.interchainSecurityModule);
|
|
24
|
-
await this.multiProvider.handleTx(chain, tx);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (error) {
|
|
28
|
-
this.logger(`Failed to check/update ISM for ${chain}: ${error}`);
|
|
29
|
-
this.logger('Leaving ISM as is and continuing.');
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
testRecipient,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=TestRecipientDeployer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestRecipientDeployer.js","sourceRoot":"","sources":["../../../src/deploy/TestRecipientDeployer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAiB,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAEL,iBAAiB,GAElB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAW,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAc1D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,aAAa,EAAE,IAAI,sBAAsB,EAAE;CAC5C,CAAC;AAEF,gDAAgD;AAChD,MAAM,OAAO,qBAAsB,SAAQ,iBAG1C;IACC,YAAY,aAA4B;QACtC,KAAK,CAAC,aAAa,EAAE,sBAAsB,EAAE;YAC3C,MAAM,EAAE,KAAK,CAAC,iCAAiC,CAAC;SACjD,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,KAAgB,EAChB,MAA2B;QAE3B,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,CAAC,CAAC;QAC5E,IAAI;YACF,IAAI,CAAC,MAAM,CAAC,gBAAgB,KAAK,EAAE,CAAC,CAAC;YACrC,MAAM,GAAG,GAAG,MAAM,aAAa,CAAC,wBAAwB,EAAE,CAAC;YAC3D,IAAI,CAAC,MAAM,CAAC,oBAAoB,KAAK,KAAK,GAAG,EAAE,CAAC,CAAC;YACjD,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAAE;gBACpD,IAAI,CAAC,MAAM,CACT,kDAAkD,MAAM,CAAC,wBAAwB,EAAE,CACpF,CAAC;gBACF,MAAM,EAAE,GAAG,aAAa,CAAC,2BAA2B,CAClD,MAAM,CAAC,wBAAwB,CAChC,CAAC;gBACF,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;aAC9C;SACF;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,CAAC,MAAM,CAAC,kCAAkC,KAAK,KAAK,KAAK,EAAE,CAAC,CAAC;YACjE,IAAI,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC;SAClD;QACD,OAAO;YACL,aAAa;SACd,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ERC20Metadata, TokenType } from '@hyperlane-xyz/sdk';
|
|
2
|
-
import type { Address } from '@hyperlane-xyz/utils';
|
|
3
|
-
export type MinimalTokenMetadata = Omit<ERC20Metadata, 'totalSupply'>;
|
|
4
|
-
interface BaseWarpUITokenConfig extends MinimalTokenMetadata {
|
|
5
|
-
type: TokenType.collateral | TokenType.native;
|
|
6
|
-
chainId: number;
|
|
7
|
-
logoURI?: string;
|
|
8
|
-
isNft?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface CollateralTokenConfig extends BaseWarpUITokenConfig {
|
|
11
|
-
type: TokenType.collateral;
|
|
12
|
-
address: Address;
|
|
13
|
-
hypCollateralAddress: Address;
|
|
14
|
-
}
|
|
15
|
-
interface NativeTokenConfig extends BaseWarpUITokenConfig {
|
|
16
|
-
type: TokenType.native;
|
|
17
|
-
hypNativeAddress: Address;
|
|
18
|
-
}
|
|
19
|
-
export type WarpUITokenConfig = CollateralTokenConfig | NativeTokenConfig;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/deploy/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;AAKtE,UAAU,qBAAsB,SAAQ,oBAAoB;IAC1D,IAAI,EAAE,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,qBAAsB,SAAQ,qBAAqB;IAC3D,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,UAAU,iBAAkB,SAAQ,qBAAqB;IACvD,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Configs for describing chain metadata for use in Hyperlane deployments or apps
|
|
2
|
-
# Consists of a map of chain names to metadata
|
|
3
|
-
# Schema here: https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/metadata/chainMetadataTypes.ts
|
|
4
|
-
---
|
|
5
|
-
anvil1:
|
|
6
|
-
chainId: 31337
|
|
7
|
-
domainId: 31337
|
|
8
|
-
name: anvil1
|
|
9
|
-
protocol: ethereum
|
|
10
|
-
rpcUrls:
|
|
11
|
-
- http: http://127.0.0.1:8545
|
|
12
|
-
nativeToken:
|
|
13
|
-
name: Ether
|
|
14
|
-
symbol: ETH
|
|
15
|
-
decimals: 18
|
|
16
|
-
anvil2:
|
|
17
|
-
chainId: 31338
|
|
18
|
-
domainId: 31338
|
|
19
|
-
name: anvil2
|
|
20
|
-
protocol: ethereum
|
|
21
|
-
rpcUrls:
|
|
22
|
-
- http: http://127.0.0.1:8555
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
anvil1:
|
|
2
|
-
required:
|
|
3
|
-
type: protocolFee
|
|
4
|
-
maxProtocolFee: '10000000000000000'
|
|
5
|
-
protocolFee: '10000000000'
|
|
6
|
-
beneficiary: '0xb1b4e269dD0D19d9D49f3a95bF6c2c15f13E7943'
|
|
7
|
-
owner: '0xb1b4e269dD0D19d9D49f3a95bF6c2c15f13E7943'
|
|
8
|
-
default:
|
|
9
|
-
type: merkleTreeHook
|
|
10
|
-
anvil2:
|
|
11
|
-
required:
|
|
12
|
-
type: protocolFee
|
|
13
|
-
maxProtocolFee: '10000000000000000'
|
|
14
|
-
protocolFee: '10000000000'
|
|
15
|
-
beneficiary: '0xb1b4e269dD0D19d9D49f3a95bF6c2c15f13E7943'
|
|
16
|
-
owner: '0xb1b4e269dD0D19d9D49f3a95bF6c2c15f13E7943'
|
|
17
|
-
default:
|
|
18
|
-
type: merkleTreeHook
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# A config for a Warp Route deployment
|
|
2
|
-
# Typically used with the 'hyperlane deploy warp' command
|
|
3
|
-
#
|
|
4
|
-
# Token Types:
|
|
5
|
-
# native
|
|
6
|
-
# collateral
|
|
7
|
-
# synthetic
|
|
8
|
-
# collateralUri
|
|
9
|
-
# syntheticUri
|
|
10
|
-
# fastCollateral
|
|
11
|
-
# fastSynthetic
|
|
12
|
-
---
|
|
13
|
-
base:
|
|
14
|
-
chainName: anvil1
|
|
15
|
-
type: native
|
|
16
|
-
# address: 0x123... # Required for collateral types
|
|
17
|
-
# isNft: true # If the token is an NFT (ERC721), set to true
|
|
18
|
-
# owner: 0x123 # Optional owner address for synthetic token
|
|
19
|
-
# mailbox: 0x123 # Optional mailbox address route
|
|
20
|
-
# interchainGasPaymaster: 0x123 # Optional interchainGasPaymaster address
|
|
21
|
-
synthetics:
|
|
22
|
-
- chainName: anvil2
|
|
23
|
-
# You can optionally set the token metadata, otherwise the base token's will be used
|
|
24
|
-
# name: "MySyntheticToken"
|
|
25
|
-
# symbol: "MST"
|
|
26
|
-
# totalSupply: 10000000
|
|
File without changes
|