@hyperlane-xyz/cli 1.4.2-beta0
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 +57 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +38 -0
- package/dist/cli.js.map +1 -0
- package/dist/src/commands/chains.d.ts +6 -0
- package/dist/src/commands/chains.d.ts.map +1 -0
- package/dist/src/commands/chains.js +59 -0
- package/dist/src/commands/chains.js.map +1 -0
- package/dist/src/commands/config.d.ts +6 -0
- package/dist/src/commands/config.d.ts.map +1 -0
- package/dist/src/commands/config.js +94 -0
- package/dist/src/commands/config.js.map +1 -0
- package/dist/src/commands/deploy.d.ts +6 -0
- package/dist/src/commands/deploy.d.ts.map +1 -0
- package/dist/src/commands/deploy.js +72 -0
- package/dist/src/commands/deploy.js.map +1 -0
- package/dist/src/commands/options.d.ts +6 -0
- package/dist/src/commands/options.d.ts.map +1 -0
- package/dist/src/commands/options.js +19 -0
- package/dist/src/commands/options.js.map +1 -0
- package/dist/src/commands/send.d.ts +6 -0
- package/dist/src/commands/send.d.ts.map +1 -0
- package/dist/src/commands/send.js +110 -0
- package/dist/src/commands/send.js.map +1 -0
- package/dist/src/configs.d.ts +284 -0
- package/dist/src/configs.d.ts.map +1 -0
- package/dist/src/configs.js +110 -0
- package/dist/src/configs.js.map +1 -0
- package/dist/src/consts.d.ts +4 -0
- package/dist/src/consts.d.ts.map +1 -0
- package/dist/src/consts.js +4 -0
- package/dist/src/consts.js.map +1 -0
- package/dist/src/context.d.ts +373 -0
- package/dist/src/context.d.ts.map +1 -0
- package/dist/src/context.js +24 -0
- package/dist/src/context.js.map +1 -0
- package/dist/src/deploy/TestRecipientDeployer.d.ts +20 -0
- package/dist/src/deploy/TestRecipientDeployer.d.ts.map +1 -0
- package/dist/src/deploy/TestRecipientDeployer.js +35 -0
- package/dist/src/deploy/TestRecipientDeployer.js.map +1 -0
- package/dist/src/deploy/core.d.ts +6 -0
- package/dist/src/deploy/core.d.ts.map +1 -0
- package/dist/src/deploy/core.js +264 -0
- package/dist/src/deploy/core.js.map +1 -0
- package/dist/src/deploy/types.d.ts +21 -0
- package/dist/src/deploy/types.d.ts.map +1 -0
- package/dist/src/deploy/types.js +2 -0
- package/dist/src/deploy/types.js.map +1 -0
- package/dist/src/deploy/utils.d.ts +10 -0
- package/dist/src/deploy/utils.d.ts.map +1 -0
- package/dist/src/deploy/utils.js +24 -0
- package/dist/src/deploy/utils.js.map +1 -0
- package/dist/src/deploy/warp.d.ts +8 -0
- package/dist/src/deploy/warp.d.ts.map +1 -0
- package/dist/src/deploy/warp.js +230 -0
- package/dist/src/deploy/warp.js.map +1 -0
- package/dist/src/logger.d.ts +12 -0
- package/dist/src/logger.d.ts.map +1 -0
- package/dist/src/logger.js +25 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/send/message.d.ts +10 -0
- package/dist/src/send/message.d.ts.map +1 -0
- package/dist/src/send/message.js +66 -0
- package/dist/src/send/message.js.map +1 -0
- package/dist/src/send/transfer.d.ts +14 -0
- package/dist/src/send/transfer.d.ts.map +1 -0
- package/dist/src/send/transfer.js +95 -0
- package/dist/src/send/transfer.js.map +1 -0
- package/dist/src/utils/balances.d.ts +6 -0
- package/dist/src/utils/balances.d.ts.map +1 -0
- package/dist/src/utils/balances.js +23 -0
- package/dist/src/utils/balances.js.map +1 -0
- package/dist/src/utils/files.d.ts +19 -0
- package/dist/src/utils/files.d.ts.map +1 -0
- package/dist/src/utils/files.js +100 -0
- package/dist/src/utils/files.js.map +1 -0
- package/dist/src/utils/keys.d.ts +4 -0
- package/dist/src/utils/keys.d.ts.map +1 -0
- package/dist/src/utils/keys.js +17 -0
- package/dist/src/utils/keys.js.map +1 -0
- package/dist/src/utils/time.d.ts +2 -0
- package/dist/src/utils/time.d.ts.map +1 -0
- package/dist/src/utils/time.js +5 -0
- package/dist/src/utils/time.js.map +1 -0
- package/examples/chain-config.yaml +44 -0
- package/examples/contract-artifacts.yaml +20 -0
- package/examples/multisig-ism.yaml +20 -0
- package/examples/warp-tokens.yaml +23 -0
- package/package.json +57 -0
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { ethers } from 'ethers';
|
|
2
|
+
import { ChainMap, ChainMetadata, HyperlaneContractsMap, MultiProvider } from '@hyperlane-xyz/sdk';
|
|
3
|
+
export declare const sdkContractAddressesMap: {
|
|
4
|
+
celo: {
|
|
5
|
+
storageGasOracle: string;
|
|
6
|
+
validatorAnnounce: string;
|
|
7
|
+
proxyAdmin: string;
|
|
8
|
+
mailbox: string;
|
|
9
|
+
interchainGasPaymaster: string;
|
|
10
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
11
|
+
multisigIsm: string;
|
|
12
|
+
testRecipient: string;
|
|
13
|
+
interchainAccountIsm: string;
|
|
14
|
+
aggregationIsmFactory: string;
|
|
15
|
+
routingIsmFactory: string;
|
|
16
|
+
interchainQueryRouter: string;
|
|
17
|
+
interchainAccountRouter: string;
|
|
18
|
+
merkleRootMultisigIsmFactory: string;
|
|
19
|
+
messageIdMultisigIsmFactory: string;
|
|
20
|
+
};
|
|
21
|
+
ethereum: {
|
|
22
|
+
storageGasOracle: string;
|
|
23
|
+
validatorAnnounce: string;
|
|
24
|
+
proxyAdmin: string;
|
|
25
|
+
mailbox: string;
|
|
26
|
+
interchainGasPaymaster: string;
|
|
27
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
28
|
+
multisigIsm: string;
|
|
29
|
+
testRecipient: string;
|
|
30
|
+
interchainAccountIsm: string;
|
|
31
|
+
aggregationIsmFactory: string;
|
|
32
|
+
routingIsmFactory: string;
|
|
33
|
+
interchainQueryRouter: string;
|
|
34
|
+
interchainAccountRouter: string;
|
|
35
|
+
merkleRootMultisigIsmFactory: string;
|
|
36
|
+
messageIdMultisigIsmFactory: string;
|
|
37
|
+
};
|
|
38
|
+
avalanche: {
|
|
39
|
+
storageGasOracle: string;
|
|
40
|
+
validatorAnnounce: string;
|
|
41
|
+
proxyAdmin: string;
|
|
42
|
+
mailbox: string;
|
|
43
|
+
interchainGasPaymaster: string;
|
|
44
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
45
|
+
multisigIsm: string;
|
|
46
|
+
testRecipient: string;
|
|
47
|
+
interchainAccountIsm: string;
|
|
48
|
+
aggregationIsmFactory: string;
|
|
49
|
+
routingIsmFactory: string;
|
|
50
|
+
interchainQueryRouter: string;
|
|
51
|
+
interchainAccountRouter: string;
|
|
52
|
+
merkleRootMultisigIsmFactory: string;
|
|
53
|
+
messageIdMultisigIsmFactory: string;
|
|
54
|
+
};
|
|
55
|
+
polygon: {
|
|
56
|
+
storageGasOracle: string;
|
|
57
|
+
validatorAnnounce: string;
|
|
58
|
+
proxyAdmin: string;
|
|
59
|
+
mailbox: string;
|
|
60
|
+
interchainGasPaymaster: string;
|
|
61
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
62
|
+
multisigIsm: string;
|
|
63
|
+
testRecipient: string;
|
|
64
|
+
interchainAccountIsm: string;
|
|
65
|
+
aggregationIsmFactory: string;
|
|
66
|
+
routingIsmFactory: string;
|
|
67
|
+
interchainQueryRouter: string;
|
|
68
|
+
interchainAccountRouter: string;
|
|
69
|
+
merkleRootMultisigIsmFactory: string;
|
|
70
|
+
messageIdMultisigIsmFactory: string;
|
|
71
|
+
};
|
|
72
|
+
bsc: {
|
|
73
|
+
storageGasOracle: string;
|
|
74
|
+
validatorAnnounce: string;
|
|
75
|
+
proxyAdmin: string;
|
|
76
|
+
mailbox: string;
|
|
77
|
+
interchainGasPaymaster: string;
|
|
78
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
79
|
+
multisigIsm: string;
|
|
80
|
+
testRecipient: string;
|
|
81
|
+
interchainAccountIsm: string;
|
|
82
|
+
aggregationIsmFactory: string;
|
|
83
|
+
routingIsmFactory: string;
|
|
84
|
+
interchainQueryRouter: string;
|
|
85
|
+
interchainAccountRouter: string;
|
|
86
|
+
merkleRootMultisigIsmFactory: string;
|
|
87
|
+
messageIdMultisigIsmFactory: string;
|
|
88
|
+
};
|
|
89
|
+
arbitrum: {
|
|
90
|
+
storageGasOracle: string;
|
|
91
|
+
validatorAnnounce: string;
|
|
92
|
+
proxyAdmin: string;
|
|
93
|
+
mailbox: string;
|
|
94
|
+
interchainGasPaymaster: string;
|
|
95
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
96
|
+
multisigIsm: string;
|
|
97
|
+
testRecipient: string;
|
|
98
|
+
interchainAccountIsm: string;
|
|
99
|
+
aggregationIsmFactory: string;
|
|
100
|
+
routingIsmFactory: string;
|
|
101
|
+
interchainQueryRouter: string;
|
|
102
|
+
interchainAccountRouter: string;
|
|
103
|
+
timelockController: string;
|
|
104
|
+
merkleRootMultisigIsmFactory: string;
|
|
105
|
+
messageIdMultisigIsmFactory: string;
|
|
106
|
+
};
|
|
107
|
+
optimism: {
|
|
108
|
+
storageGasOracle: string;
|
|
109
|
+
validatorAnnounce: string;
|
|
110
|
+
proxyAdmin: string;
|
|
111
|
+
mailbox: string;
|
|
112
|
+
interchainGasPaymaster: string;
|
|
113
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
114
|
+
multisigIsm: string;
|
|
115
|
+
testRecipient: string;
|
|
116
|
+
interchainAccountIsm: string;
|
|
117
|
+
aggregationIsmFactory: string;
|
|
118
|
+
routingIsmFactory: string;
|
|
119
|
+
interchainQueryRouter: string;
|
|
120
|
+
interchainAccountRouter: string;
|
|
121
|
+
merkleRootMultisigIsmFactory: string;
|
|
122
|
+
messageIdMultisigIsmFactory: string;
|
|
123
|
+
};
|
|
124
|
+
moonbeam: {
|
|
125
|
+
storageGasOracle: string;
|
|
126
|
+
validatorAnnounce: string;
|
|
127
|
+
proxyAdmin: string;
|
|
128
|
+
mailbox: string;
|
|
129
|
+
interchainGasPaymaster: string;
|
|
130
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
131
|
+
multisigIsm: string;
|
|
132
|
+
testRecipient: string;
|
|
133
|
+
interchainAccountIsm: string;
|
|
134
|
+
aggregationIsmFactory: string;
|
|
135
|
+
routingIsmFactory: string;
|
|
136
|
+
interchainQueryRouter: string;
|
|
137
|
+
interchainAccountRouter: string;
|
|
138
|
+
merkleRootMultisigIsmFactory: string;
|
|
139
|
+
messageIdMultisigIsmFactory: string;
|
|
140
|
+
};
|
|
141
|
+
gnosis: {
|
|
142
|
+
storageGasOracle: string;
|
|
143
|
+
validatorAnnounce: string;
|
|
144
|
+
proxyAdmin: string;
|
|
145
|
+
mailbox: string;
|
|
146
|
+
interchainGasPaymaster: string;
|
|
147
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
148
|
+
multisigIsm: string;
|
|
149
|
+
create2Factory: string;
|
|
150
|
+
testRecipient: string;
|
|
151
|
+
interchainAccountIsm: string;
|
|
152
|
+
aggregationIsmFactory: string;
|
|
153
|
+
routingIsmFactory: string;
|
|
154
|
+
interchainQueryRouter: string;
|
|
155
|
+
interchainAccountRouter: string;
|
|
156
|
+
merkleRootMultisigIsmFactory: string;
|
|
157
|
+
messageIdMultisigIsmFactory: string;
|
|
158
|
+
};
|
|
159
|
+
alfajores: {
|
|
160
|
+
storageGasOracle: string;
|
|
161
|
+
validatorAnnounce: string;
|
|
162
|
+
proxyAdmin: string;
|
|
163
|
+
mailbox: string;
|
|
164
|
+
interchainGasPaymaster: string;
|
|
165
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
166
|
+
multisigIsm: string;
|
|
167
|
+
testRecipient: string;
|
|
168
|
+
interchainAccountIsm: string;
|
|
169
|
+
aggregationIsmFactory: string;
|
|
170
|
+
routingIsmFactory: string;
|
|
171
|
+
interchainQueryRouter: string;
|
|
172
|
+
interchainAccountRouter: string;
|
|
173
|
+
merkleRootMultisigIsmFactory: string;
|
|
174
|
+
messageIdMultisigIsmFactory: string;
|
|
175
|
+
};
|
|
176
|
+
fuji: {
|
|
177
|
+
storageGasOracle: string;
|
|
178
|
+
validatorAnnounce: string;
|
|
179
|
+
proxyAdmin: string;
|
|
180
|
+
mailbox: string;
|
|
181
|
+
interchainGasPaymaster: string;
|
|
182
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
183
|
+
multisigIsm: string;
|
|
184
|
+
testRecipient: string;
|
|
185
|
+
interchainAccountIsm: string;
|
|
186
|
+
aggregationIsmFactory: string;
|
|
187
|
+
routingIsmFactory: string;
|
|
188
|
+
interchainQueryRouter: string;
|
|
189
|
+
interchainAccountRouter: string;
|
|
190
|
+
merkleRootMultisigIsmFactory: string;
|
|
191
|
+
messageIdMultisigIsmFactory: string;
|
|
192
|
+
};
|
|
193
|
+
mumbai: {
|
|
194
|
+
storageGasOracle: string;
|
|
195
|
+
validatorAnnounce: string;
|
|
196
|
+
proxyAdmin: string;
|
|
197
|
+
mailbox: string;
|
|
198
|
+
interchainGasPaymaster: string;
|
|
199
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
200
|
+
multisigIsm: string;
|
|
201
|
+
testRecipient: string;
|
|
202
|
+
interchainAccountIsm: string;
|
|
203
|
+
aggregationIsmFactory: string;
|
|
204
|
+
routingIsmFactory: string;
|
|
205
|
+
interchainQueryRouter: string;
|
|
206
|
+
interchainAccountRouter: string;
|
|
207
|
+
merkleRootMultisigIsmFactory: string;
|
|
208
|
+
messageIdMultisigIsmFactory: string;
|
|
209
|
+
};
|
|
210
|
+
bsctestnet: {
|
|
211
|
+
storageGasOracle: string;
|
|
212
|
+
validatorAnnounce: string;
|
|
213
|
+
proxyAdmin: string;
|
|
214
|
+
mailbox: string;
|
|
215
|
+
interchainGasPaymaster: string;
|
|
216
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
217
|
+
multisigIsm: string;
|
|
218
|
+
testRecipient: string;
|
|
219
|
+
interchainAccountIsm: string;
|
|
220
|
+
aggregationIsmFactory: string;
|
|
221
|
+
routingIsmFactory: string;
|
|
222
|
+
interchainQueryRouter: string;
|
|
223
|
+
interchainAccountRouter: string;
|
|
224
|
+
merkleRootMultisigIsmFactory: string;
|
|
225
|
+
messageIdMultisigIsmFactory: string;
|
|
226
|
+
};
|
|
227
|
+
goerli: {
|
|
228
|
+
storageGasOracle: string;
|
|
229
|
+
validatorAnnounce: string;
|
|
230
|
+
proxyAdmin: string;
|
|
231
|
+
mailbox: string;
|
|
232
|
+
interchainGasPaymaster: string;
|
|
233
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
234
|
+
multisigIsm: string;
|
|
235
|
+
testRecipient: string;
|
|
236
|
+
interchainAccountIsm: string;
|
|
237
|
+
aggregationIsmFactory: string;
|
|
238
|
+
routingIsmFactory: string;
|
|
239
|
+
interchainQueryRouter: string;
|
|
240
|
+
interchainAccountRouter: string;
|
|
241
|
+
merkleRootMultisigIsmFactory: string;
|
|
242
|
+
messageIdMultisigIsmFactory: string;
|
|
243
|
+
};
|
|
244
|
+
moonbasealpha: {
|
|
245
|
+
storageGasOracle: string;
|
|
246
|
+
validatorAnnounce: string;
|
|
247
|
+
proxyAdmin: string;
|
|
248
|
+
mailbox: string;
|
|
249
|
+
interchainGasPaymaster: string;
|
|
250
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
251
|
+
multisigIsm: string;
|
|
252
|
+
testRecipient: string;
|
|
253
|
+
aggregationIsmFactory: string;
|
|
254
|
+
routingIsmFactory: string;
|
|
255
|
+
interchainAccountIsm: string;
|
|
256
|
+
interchainAccountRouter: string;
|
|
257
|
+
merkleRootMultisigIsmFactory: string;
|
|
258
|
+
messageIdMultisigIsmFactory: string;
|
|
259
|
+
};
|
|
260
|
+
optimismgoerli: {
|
|
261
|
+
storageGasOracle: string;
|
|
262
|
+
validatorAnnounce: string;
|
|
263
|
+
proxyAdmin: string;
|
|
264
|
+
mailbox: string;
|
|
265
|
+
interchainGasPaymaster: string;
|
|
266
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
267
|
+
multisigIsm: string;
|
|
268
|
+
testRecipient: string;
|
|
269
|
+
interchainAccountIsm: string;
|
|
270
|
+
aggregationIsmFactory: string;
|
|
271
|
+
routingIsmFactory: string;
|
|
272
|
+
interchainQueryRouter: string;
|
|
273
|
+
interchainAccountRouter: string;
|
|
274
|
+
merkleRootMultisigIsmFactory: string;
|
|
275
|
+
messageIdMultisigIsmFactory: string;
|
|
276
|
+
};
|
|
277
|
+
arbitrumgoerli: {
|
|
278
|
+
storageGasOracle: string;
|
|
279
|
+
validatorAnnounce: string;
|
|
280
|
+
proxyAdmin: string;
|
|
281
|
+
mailbox: string;
|
|
282
|
+
interchainGasPaymaster: string;
|
|
283
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
284
|
+
multisigIsm: string;
|
|
285
|
+
testRecipient: string;
|
|
286
|
+
interchainAccountIsm: string;
|
|
287
|
+
aggregationIsmFactory: string;
|
|
288
|
+
routingIsmFactory: string;
|
|
289
|
+
interchainQueryRouter: string;
|
|
290
|
+
interchainAccountRouter: string;
|
|
291
|
+
merkleRootMultisigIsmFactory: string;
|
|
292
|
+
messageIdMultisigIsmFactory: string;
|
|
293
|
+
};
|
|
294
|
+
sepolia: {
|
|
295
|
+
storageGasOracle: string;
|
|
296
|
+
validatorAnnounce: string;
|
|
297
|
+
proxyAdmin: string;
|
|
298
|
+
mailbox: string;
|
|
299
|
+
interchainGasPaymaster: string;
|
|
300
|
+
defaultIsmInterchainGasPaymaster: string;
|
|
301
|
+
multisigIsm: string;
|
|
302
|
+
testRecipient: string;
|
|
303
|
+
interchainAccountIsm: string;
|
|
304
|
+
aggregationIsmFactory: string;
|
|
305
|
+
routingIsmFactory: string;
|
|
306
|
+
interchainQueryRouter: string;
|
|
307
|
+
interchainAccountRouter: string;
|
|
308
|
+
merkleRootMultisigIsmFactory: string;
|
|
309
|
+
messageIdMultisigIsmFactory: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
export declare function getMergedContractAddresses(artifacts?: HyperlaneContractsMap<any>): HyperlaneContractsMap<any>;
|
|
313
|
+
export declare function getDeployerContext(key: string, chainConfigPath: string): {
|
|
314
|
+
signer: ethers.Wallet;
|
|
315
|
+
customChains: ChainMap<{
|
|
316
|
+
name: string;
|
|
317
|
+
chainId: number;
|
|
318
|
+
protocol: import("@hyperlane-xyz/sdk").ProtocolType;
|
|
319
|
+
rpcUrls: [{
|
|
320
|
+
http: string;
|
|
321
|
+
webSocket?: string | undefined;
|
|
322
|
+
pagination?: {
|
|
323
|
+
maxBlockRange?: number | undefined;
|
|
324
|
+
minBlockNumber?: number | undefined;
|
|
325
|
+
maxBlockAge?: number | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
retry?: {
|
|
328
|
+
maxRequests: number;
|
|
329
|
+
baseRetryMs: number;
|
|
330
|
+
} | undefined;
|
|
331
|
+
}, ...{
|
|
332
|
+
http: string;
|
|
333
|
+
webSocket?: string | undefined;
|
|
334
|
+
pagination?: {
|
|
335
|
+
maxBlockRange?: number | undefined;
|
|
336
|
+
minBlockNumber?: number | undefined;
|
|
337
|
+
maxBlockAge?: number | undefined;
|
|
338
|
+
} | undefined;
|
|
339
|
+
retry?: {
|
|
340
|
+
maxRequests: number;
|
|
341
|
+
baseRetryMs: number;
|
|
342
|
+
} | undefined;
|
|
343
|
+
}[]];
|
|
344
|
+
domainId?: number | undefined;
|
|
345
|
+
displayName?: string | undefined;
|
|
346
|
+
displayNameShort?: string | undefined;
|
|
347
|
+
logoURI?: string | undefined;
|
|
348
|
+
nativeToken?: {
|
|
349
|
+
symbol: string;
|
|
350
|
+
name: string;
|
|
351
|
+
decimals: number;
|
|
352
|
+
} | undefined;
|
|
353
|
+
blockExplorers?: {
|
|
354
|
+
url: string;
|
|
355
|
+
name: string;
|
|
356
|
+
apiUrl: string;
|
|
357
|
+
apiKey?: string | undefined;
|
|
358
|
+
family?: import("@hyperlane-xyz/sdk").ExplorerFamily | undefined;
|
|
359
|
+
}[] | undefined;
|
|
360
|
+
blocks?: {
|
|
361
|
+
confirmations: number;
|
|
362
|
+
reorgPeriod?: number | undefined;
|
|
363
|
+
estimateBlockTime?: number | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
transactionOverrides?: {} | undefined;
|
|
366
|
+
gasCurrencyCoinGeckoId?: string | undefined;
|
|
367
|
+
gnosisSafeTransactionServiceUrl?: string | undefined;
|
|
368
|
+
isTestnet?: boolean | undefined;
|
|
369
|
+
}>;
|
|
370
|
+
multiProvider: MultiProvider;
|
|
371
|
+
};
|
|
372
|
+
export declare function getMultiProvider(customChains: ChainMap<ChainMetadata>, signer?: ethers.Signer): MultiProvider;
|
|
373
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,EAId,MAAM,oBAAoB,CAAC;AAK5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnC,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,SAAS,CAAC,EAAE,qBAAqB,CAAC,GAAG,CAAC,8BAMvC;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtE;AAED,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,QAAQ,CAAC,aAAa,CAAC,EACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,iBAMvB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MultiProvider, chainMetadata, hyperlaneEnvironments, objMerge, } from '@hyperlane-xyz/sdk';
|
|
2
|
+
import { readChainConfigIfExists } from './configs.js';
|
|
3
|
+
import { keyToSigner } from './utils/keys.js';
|
|
4
|
+
export const sdkContractAddressesMap = {
|
|
5
|
+
...hyperlaneEnvironments.testnet,
|
|
6
|
+
...hyperlaneEnvironments.mainnet,
|
|
7
|
+
};
|
|
8
|
+
export function getMergedContractAddresses(artifacts) {
|
|
9
|
+
return objMerge(sdkContractAddressesMap, artifacts || {});
|
|
10
|
+
}
|
|
11
|
+
export function getDeployerContext(key, chainConfigPath) {
|
|
12
|
+
const signer = keyToSigner(key);
|
|
13
|
+
const customChains = readChainConfigIfExists(chainConfigPath);
|
|
14
|
+
const multiProvider = getMultiProvider(customChains, signer);
|
|
15
|
+
return { signer, customChains, multiProvider };
|
|
16
|
+
}
|
|
17
|
+
export function getMultiProvider(customChains, signer) {
|
|
18
|
+
const chainConfigs = { ...chainMetadata, ...customChains };
|
|
19
|
+
const mp = new MultiProvider(chainConfigs);
|
|
20
|
+
if (signer)
|
|
21
|
+
mp.setSharedSigner(signer);
|
|
22
|
+
return mp;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,QAAQ,GACT,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,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,kBAAkB,CAAC,GAAW,EAAE,eAAuB;IACrE,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,YAAY,GAAG,uBAAuB,CAAC,eAAe,CAAC,CAAC;IAC9D,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TestRecipient, TestRecipient__factory } from '@hyperlane-xyz/core';
|
|
2
|
+
import { ChainName, HyperlaneDeployer, MultiProvider } from '@hyperlane-xyz/sdk';
|
|
3
|
+
import { types } from '@hyperlane-xyz/utils';
|
|
4
|
+
export type TestRecipientConfig = {
|
|
5
|
+
interchainSecurityModule: types.Address;
|
|
6
|
+
};
|
|
7
|
+
export type TestRecipientContracts = {
|
|
8
|
+
testRecipient: TestRecipient;
|
|
9
|
+
};
|
|
10
|
+
export type TestRecipientAddresses = {
|
|
11
|
+
testRecipient: types.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
|
|
@@ -0,0 +1 @@
|
|
|
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,KAAK,EAAS,MAAM,sBAAsB,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,wBAAwB,EAAE,KAAK,CAAC,OAAO,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;CAElC,CAAC;AAEF,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;CAqBnC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import debug from 'debug';
|
|
2
|
+
import { TestRecipient__factory } from '@hyperlane-xyz/core';
|
|
3
|
+
import { HyperlaneDeployer, } from '@hyperlane-xyz/sdk';
|
|
4
|
+
import { utils } from '@hyperlane-xyz/utils';
|
|
5
|
+
export const testRecipientFactories = {
|
|
6
|
+
testRecipient: new TestRecipient__factory(),
|
|
7
|
+
};
|
|
8
|
+
export class TestRecipientDeployer extends HyperlaneDeployer {
|
|
9
|
+
constructor(multiProvider) {
|
|
10
|
+
super(multiProvider, testRecipientFactories, {
|
|
11
|
+
logger: debug('hyperlane:TestRecipientDeployer'),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
async deployContracts(chain, config) {
|
|
15
|
+
const testRecipient = await this.deployContract(chain, 'testRecipient', []);
|
|
16
|
+
try {
|
|
17
|
+
this.logger(`Checking ISM ${chain}`);
|
|
18
|
+
const ism = await testRecipient.interchainSecurityModule();
|
|
19
|
+
this.logger(`Found ISM for on ${chain}: ${ism}`);
|
|
20
|
+
if (!utils.eqAddress(ism, config.interchainSecurityModule)) {
|
|
21
|
+
this.logger(`Current ISM does not match config. Updating.`);
|
|
22
|
+
const tx = testRecipient.setInterchainSecurityModule(config.interchainSecurityModule);
|
|
23
|
+
await this.multiProvider.handleTx(chain, tx);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
this.logger(`Failed to check/update ISM for ${chain}: ${error}`);
|
|
28
|
+
this.logger('Leaving ISM as is and continuing.');
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
testRecipient,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=TestRecipientDeployer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,EAAS,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAcpD,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,aAAa,EAAE,IAAI,sBAAsB,EAAE;CAC5C,CAAC;AAEF,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,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAAE;gBAC1D,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC;gBAC5D,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/deploy/core.ts"],"names":[],"mappings":"AAqDA,wBAAsB,aAAa,CAAC,EAClC,GAAG,EACH,eAAe,EACf,OAAO,GACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB,iBA4BA"}
|