@hyperlane-xyz/helloworld 1.4.3-beta0 → 1.4.3-beta1
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/src/app/app.d.ts +1 -1
- package/dist/src/app/app.d.ts.map +1 -1
- package/dist/src/app/app.js +53 -35
- package/dist/src/app/app.js.map +1 -1
- package/dist/src/app/contracts.d.ts +1 -1
- package/dist/src/app/contracts.d.ts.map +1 -1
- package/dist/src/deploy/config.d.ts +2 -2
- package/dist/src/deploy/config.d.ts.map +1 -1
- package/dist/src/deploy/deploy.js +19 -8
- package/dist/src/deploy/deploy.js.map +1 -1
- package/dist/src/scripts/check.js +23 -12
- package/dist/src/scripts/check.js.map +1 -1
- package/dist/src/scripts/deploy.js +25 -14
- package/dist/src/scripts/deploy.js.map +1 -1
- package/dist/src/test/deploy.test.js +25 -16
- package/dist/src/test/deploy.test.js.map +1 -1
- package/dist/src/test/helloworld.test.js +46 -35
- package/dist/src/test/helloworld.test.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/HyperlaneConnectionClient.d.ts +12 -12
- package/dist/src/types/@hyperlane-xyz/core/contracts/HyperlaneConnectionClient.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/HyperlaneConnectionClient.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/HyperlaneConnectionClient.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/Router.d.ts +14 -14
- package/dist/src/types/@hyperlane-xyz/core/contracts/Router.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/Router.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/Router.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/index.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/index.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/index.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IHyperlaneConnectionClient.d.ts +2 -2
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IHyperlaneConnectionClient.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IHyperlaneConnectionClient.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IHyperlaneConnectionClient.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainGasPaymaster.d.ts +4 -4
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainGasPaymaster.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainGasPaymaster.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainGasPaymaster.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts +2 -2
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts +2 -2
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IMailbox.d.ts +10 -10
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IMailbox.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IMailbox.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IMailbox.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IMessageRecipient.d.ts +2 -2
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IMessageRecipient.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IMessageRecipient.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/IMessageRecipient.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/index.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/index.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/contracts/interfaces/index.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/index.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/core/index.js +1 -0
- package/dist/src/types/@hyperlane-xyz/core/index.js.map +1 -1
- package/dist/src/types/@hyperlane-xyz/index.d.ts.map +1 -1
- package/dist/src/types/@hyperlane-xyz/index.js +1 -0
- package/dist/src/types/@hyperlane-xyz/index.js.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.d.ts +6 -6
- package/dist/src/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.d.ts.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.js +1 -0
- package/dist/src/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.js.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/index.d.ts +2 -2
- package/dist/src/types/@openzeppelin/contracts-upgradeable/index.d.ts.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/index.js +1 -0
- package/dist/src/types/@openzeppelin/contracts-upgradeable/index.js.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/proxy/index.d.ts.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/proxy/index.js +1 -0
- package/dist/src/types/@openzeppelin/contracts-upgradeable/proxy/index.js.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts +4 -4
- package/dist/src/types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.js +1 -0
- package/dist/src/types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.js.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts +4 -4
- package/dist/src/types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts.map +1 -1
- package/dist/src/types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.js +1 -0
- package/dist/src/types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.js.map +1 -1
- package/dist/src/types/@openzeppelin/index.d.ts.map +1 -1
- package/dist/src/types/@openzeppelin/index.js +1 -0
- package/dist/src/types/@openzeppelin/index.js.map +1 -1
- package/dist/src/types/common.d.ts +4 -4
- package/dist/src/types/common.d.ts.map +1 -1
- package/dist/src/types/common.js +1 -0
- package/dist/src/types/common.js.map +1 -1
- package/dist/src/types/contracts/HelloWorld.d.ts +20 -20
- package/dist/src/types/contracts/HelloWorld.d.ts.map +1 -1
- package/dist/src/types/contracts/HelloWorld.js +1 -0
- package/dist/src/types/contracts/HelloWorld.js.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/HyperlaneConnectionClient__factory.d.ts +2 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/HyperlaneConnectionClient__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/HyperlaneConnectionClient__factory.js +0 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/HyperlaneConnectionClient__factory.js.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/Router__factory.d.ts +2 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/Router__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/Router__factory.js +0 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/Router__factory.js.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IHyperlaneConnectionClient__factory.d.ts +2 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IHyperlaneConnectionClient__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IHyperlaneConnectionClient__factory.js +0 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IHyperlaneConnectionClient__factory.js.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainGasPaymaster__factory.d.ts +2 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainGasPaymaster__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainGasPaymaster__factory.js +0 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainGasPaymaster__factory.js.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts +2 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js +0 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts +2 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js +0 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IMailbox__factory.d.ts +2 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IMailbox__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IMailbox__factory.js +0 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IMailbox__factory.js.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IMessageRecipient__factory.d.ts +2 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IMessageRecipient__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IMessageRecipient__factory.js +0 -2
- package/dist/src/types/factories/@hyperlane-xyz/core/contracts/interfaces/IMessageRecipient__factory.js.map +1 -1
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.d.ts +2 -2
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.js +0 -2
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.js.map +1 -1
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts +2 -2
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.js +0 -2
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.js.map +1 -1
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts +2 -2
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts.map +1 -1
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.js +0 -2
- package/dist/src/types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.js.map +1 -1
- package/dist/src/types/factories/contracts/HelloWorld__factory.d.ts +3 -3
- package/dist/src/types/factories/contracts/HelloWorld__factory.d.ts.map +1 -1
- package/dist/src/types/factories/contracts/HelloWorld__factory.js +1 -3
- package/dist/src/types/factories/contracts/HelloWorld__factory.js.map +1 -1
- package/dist/src/types/index.d.ts +2 -2
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js +1 -0
- package/dist/src/types/index.js.map +1 -1
- package/package.json +12 -12
package/dist/src/app/app.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BigNumber, ethers } from 'ethers';
|
|
|
2
2
|
import { ChainMap, ChainName, HyperlaneContracts, HyperlaneContractsMap, HyperlaneCore, MultiProvider, RouterApp } from '@hyperlane-xyz/sdk';
|
|
3
3
|
import { HelloWorld } from '../types';
|
|
4
4
|
import { HelloWorldFactories } from './contracts';
|
|
5
|
-
type Counts = {
|
|
5
|
+
declare type Counts = {
|
|
6
6
|
sent: number;
|
|
7
7
|
received: number;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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AI9B,uBAAuB,CAC3B,OAAO,EAAE,MAAM,CAAC,eAAe,GAC9B,OAAO,CAAC,IAAI,CAAC;IAIV,YAAY,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAW7D,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;CAcnD"}
|
package/dist/src/app/app.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.HelloWorldApp = void 0;
|
|
4
13
|
const sdk_1 = require("@hyperlane-xyz/sdk");
|
|
@@ -11,46 +20,55 @@ class HelloWorldApp extends sdk_1.RouterApp {
|
|
|
11
20
|
router(contracts) {
|
|
12
21
|
return contracts.router;
|
|
13
22
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
sendHelloWorld(from, to, message, value) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const sender = this.getContracts(from).router;
|
|
26
|
+
const toDomain = this.multiProvider.getDomainId(to);
|
|
27
|
+
const { blocks, transactionOverrides } = this.multiProvider.getChainMetadata(from);
|
|
28
|
+
// apply gas buffer due to https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/634
|
|
29
|
+
const estimated = yield sender.estimateGas.sendHelloWorld(toDomain, message, Object.assign(Object.assign({}, transactionOverrides), { value }));
|
|
30
|
+
const gasLimit = estimated.mul(12).div(10);
|
|
31
|
+
const tx = yield sender.sendHelloWorld(toDomain, message, Object.assign(Object.assign({}, transactionOverrides), { gasLimit,
|
|
32
|
+
value }));
|
|
33
|
+
(0, utils_1.debug)('Sending hello message', {
|
|
34
|
+
from,
|
|
35
|
+
to,
|
|
36
|
+
message,
|
|
37
|
+
tx,
|
|
38
|
+
});
|
|
39
|
+
return tx.wait((blocks === null || blocks === void 0 ? void 0 : blocks.confirmations) || 1);
|
|
25
40
|
});
|
|
26
|
-
(0, utils_1.debug)('Sending hello message', {
|
|
27
|
-
from,
|
|
28
|
-
to,
|
|
29
|
-
message,
|
|
30
|
-
tx,
|
|
31
|
-
});
|
|
32
|
-
return tx.wait(blocks?.confirmations || 1);
|
|
33
41
|
}
|
|
34
|
-
|
|
35
|
-
return this
|
|
42
|
+
waitForMessageReceipt(receipt) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return this.core.waitForMessageProcessing(receipt);
|
|
45
|
+
});
|
|
36
46
|
}
|
|
37
|
-
|
|
38
|
-
return this
|
|
47
|
+
waitForMessageProcessed(receipt) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
return this.core.waitForMessageProcessed(receipt);
|
|
50
|
+
});
|
|
39
51
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
52
|
+
channelStats(from, to) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const sent = yield this.getContracts(from).router.sentTo(this.multiProvider.getDomainId(to));
|
|
55
|
+
const received = yield this.getContracts(to).router.receivedFrom(this.multiProvider.getDomainId(from));
|
|
56
|
+
return { sent: sent.toNumber(), received: received.toNumber() };
|
|
57
|
+
});
|
|
44
58
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
destination,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
59
|
+
stats() {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const entries = yield Promise.all(this.chains().map((source) => __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const destinationEntries = yield Promise.all(this.remoteChains(source).map((destination) => __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
return [
|
|
64
|
+
destination,
|
|
65
|
+
yield this.channelStats(source, destination),
|
|
66
|
+
];
|
|
67
|
+
})));
|
|
68
|
+
return [source, Object.fromEntries(destinationEntries)];
|
|
69
|
+
})));
|
|
70
|
+
return Object.fromEntries(entries);
|
|
71
|
+
});
|
|
54
72
|
}
|
|
55
73
|
}
|
|
56
74
|
exports.HelloWorldApp = HelloWorldApp;
|
package/dist/src/app/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/app/app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/app/app.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,4CAQ4B;AAC5B,gDAA6C;AAW7C,MAAa,aAAc,SAAQ,eAA8B;IAC/D,YACkB,IAAmB,EACnC,YAAwD,EACxD,aAA4B;QAE5B,KAAK,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;QAJnB,SAAI,GAAJ,IAAI,CAAe;IAKrC,CAAC;IAED,MAAM,CAAC,SAAkD;QACvD,OAAO,SAAS,CAAC,MAAM,CAAC;IAC1B,CAAC;IAEK,cAAc,CAClB,IAAe,EACf,EAAa,EACb,OAAe,EACf,KAAgB;;YAEhB,MAA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aAAa,CAAC,WAAW,CAAC,EAAE,CAAC,CACnC,CAAC;YACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAC9D,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CACrC,CAAC;YAEF,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAC;QAClE,CAAC;KAAA;IAEK,KAAK;;YACT,MAAM,OAAO,GAAyC,MAAM,OAAO,CAAC,GAAG,CACrE,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAO,MAAM,EAAE,EAAE;gBACjC,MAAM,kBAAkB,GAAG,MAAM,OAAO,CAAC,GAAG,CAC1C,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAO,WAAW,EAAE,EAAE;oBAAC,OAAA;wBACnD,WAAW;wBACX,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC;qBAC7C,CAAA;kBAAA,CAAC,CACH,CAAC;gBACF,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC;YAC1D,CAAC,CAAA,CAAC,CACH,CAAC;YACF,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;KAAA;CACF;AAnFD,sCAmFC"}
|
|
@@ -2,5 +2,5 @@ import { HelloWorld__factory } from '../types';
|
|
|
2
2
|
export declare const helloWorldFactories: {
|
|
3
3
|
router: HelloWorld__factory;
|
|
4
4
|
};
|
|
5
|
-
export type HelloWorldFactories = typeof helloWorldFactories;
|
|
5
|
+
export declare type HelloWorldFactories = typeof helloWorldFactories;
|
|
6
6
|
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/app/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,mBAAmB;;CAE/B,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/app/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,mBAAmB;;CAE/B,CAAC;AAEF,oBAAY,mBAAmB,GAAG,OAAO,mBAAmB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RouterConfig } from '@hyperlane-xyz/sdk';
|
|
2
|
-
export type HelloWorldConfig = RouterConfig;
|
|
2
|
+
export declare type HelloWorldConfig = RouterConfig;
|
|
3
3
|
export declare const prodConfigs: {
|
|
4
4
|
alfajores: {
|
|
5
5
|
name: string;
|
|
6
6
|
chainId: number;
|
|
7
|
-
protocol: import("@hyperlane-xyz/
|
|
7
|
+
protocol: import("@hyperlane-xyz/utils").ProtocolType;
|
|
8
8
|
rpcUrls: [{
|
|
9
9
|
http: string;
|
|
10
10
|
webSocket?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/deploy/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiB,MAAM,oBAAoB,CAAC;AAEjE,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/deploy/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiB,MAAM,oBAAoB,CAAC;AAEjE,oBAAY,gBAAgB,GAAG,YAAY,CAAC;AAG5C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEvB,CAAC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.HelloWorldDeployer = void 0;
|
|
4
13
|
const sdk_1 = require("@hyperlane-xyz/sdk");
|
|
@@ -13,14 +22,16 @@ class HelloWorldDeployer extends sdk_1.HyperlaneRouterDeployer {
|
|
|
13
22
|
}
|
|
14
23
|
// Custom contract deployment logic can go here
|
|
15
24
|
// If no custom logic is needed, call deployContract for the router
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
deployContracts(chain, config) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
const router = yield this.deployContract(chain, 'router', [
|
|
28
|
+
config.mailbox,
|
|
29
|
+
config.interchainGasPaymaster,
|
|
30
|
+
]);
|
|
31
|
+
return {
|
|
32
|
+
router,
|
|
33
|
+
};
|
|
34
|
+
});
|
|
24
35
|
}
|
|
25
36
|
}
|
|
26
37
|
exports.HelloWorldDeployer = HelloWorldDeployer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../src/deploy/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../src/deploy/deploy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAM4B;AAE5B,gDAA4E;AAK5E,MAAa,kBAAmB,SAAQ,6BAGvC;IACC,YACE,aAA4B,EACnB,UAAgC;QAEzC,KAAK,CAAC,aAAa,EAAE,+BAAmB,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;QAFjD,eAAU,GAAV,UAAU,CAAsB;IAG3C,CAAC;IAED,MAAM,CAAC,SAAkD;QACvD,OAAO,SAAS,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,+CAA+C;IAC/C,mEAAmE;IAC7D,eAAe,CAAC,KAAgB,EAAE,MAAwB;;YAC9D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE;gBACxD,MAAM,CAAC,OAAO;gBACd,MAAM,CAAC,sBAAsB;aAC9B,CAAC,CAAC;YACH,OAAO;gBACL,MAAM;aACP,CAAC;QACJ,CAAC;KAAA;CACF;AA1BD,gDA0BC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const sdk_1 = require("@hyperlane-xyz/sdk");
|
|
4
13
|
const app_1 = require("../app/app");
|
|
@@ -9,18 +18,20 @@ const config_1 = require("../deploy/config");
|
|
|
9
18
|
const deploymentAddresses = {};
|
|
10
19
|
// SET CONTRACT OWNER ADDRESS HERE
|
|
11
20
|
const ownerAddress = '0x123...';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
function check() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
console.info('Preparing utilities');
|
|
24
|
+
const multiProvider = new sdk_1.MultiProvider(config_1.prodConfigs);
|
|
25
|
+
const contractsMap = (0, sdk_1.attachContractsMap)(deploymentAddresses, contracts_1.helloWorldFactories);
|
|
26
|
+
const core = sdk_1.HyperlaneCore.fromEnvironment('testnet', multiProvider);
|
|
27
|
+
const igp = sdk_1.HyperlaneIgp.fromEnvironment('testnet', multiProvider);
|
|
28
|
+
const app = new app_1.HelloWorldApp(core, contractsMap, multiProvider);
|
|
29
|
+
const config = (0, sdk_1.createRouterConfigMap)(ownerAddress, core.contractsMap, igp.contractsMap);
|
|
30
|
+
console.info('Starting check');
|
|
31
|
+
const helloWorldChecker = new check_1.HelloWorldChecker(multiProvider, app, config);
|
|
32
|
+
yield helloWorldChecker.check();
|
|
33
|
+
helloWorldChecker.expectEmpty();
|
|
34
|
+
});
|
|
24
35
|
}
|
|
25
36
|
check()
|
|
26
37
|
.then(() => console.info('Check complete'))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../../src/scripts/check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../../src/scripts/check.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4CAM4B;AAE5B,oCAA2C;AAC3C,gDAAuD;AACvD,2CAAoD;AACpD,6CAA+C;AAE/C,iEAAiE;AACjE,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B,kCAAkC;AAClC,MAAM,YAAY,GAAG,UAAU,CAAC;AAEhC,SAAe,KAAK;;QAClB,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACpC,MAAM,aAAa,GAAG,IAAI,mBAAa,CAAC,oBAAW,CAAC,CAAC;QAErD,MAAM,YAAY,GAAG,IAAA,wBAAkB,EACrC,mBAAmB,EACnB,+BAAmB,CACpB,CAAC;QAEF,MAAM,IAAI,GAAG,mBAAa,CAAC,eAAe,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACrE,MAAM,GAAG,GAAG,kBAAY,CAAC,eAAe,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACnE,MAAM,GAAG,GAAG,IAAI,mBAAa,CAAC,IAAI,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,IAAA,2BAAqB,EAClC,YAAY,EACZ,IAAI,CAAC,YAAY,EACjB,GAAG,CAAC,YAAY,CACjB,CAAC;QAEF,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC/B,MAAM,iBAAiB,GAAG,IAAI,yBAAiB,CAAC,aAAa,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QAC5E,MAAM,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAChC,iBAAiB,CAAC,WAAW,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,KAAK,EAAE;KACJ,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;KAC1C,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const ethers_1 = require("ethers");
|
|
4
13
|
const sdk_1 = require("@hyperlane-xyz/sdk");
|
|
5
14
|
const config_1 = require("../deploy/config");
|
|
6
15
|
const deploy_1 = require("../deploy/deploy");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
function main() {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
console.info('Getting signer');
|
|
19
|
+
const signer = new ethers_1.Wallet('SET KEY HERE OR CREATE YOUR OWN SIGNER');
|
|
20
|
+
console.info('Preparing utilities');
|
|
21
|
+
const multiProvider = new sdk_1.MultiProvider(config_1.prodConfigs);
|
|
22
|
+
multiProvider.setSharedSigner(signer);
|
|
23
|
+
const core = sdk_1.HyperlaneCore.fromEnvironment('testnet', multiProvider);
|
|
24
|
+
const igp = sdk_1.HyperlaneIgp.fromEnvironment('testnet', multiProvider);
|
|
25
|
+
const config = (0, sdk_1.createRouterConfigMap)(signer.address, core.contractsMap, igp.contractsMap);
|
|
26
|
+
const deployer = new deploy_1.HelloWorldDeployer(multiProvider);
|
|
27
|
+
const chainToContracts = yield deployer.deploy(config);
|
|
28
|
+
const addresses = (0, sdk_1.serializeContractsMap)(chainToContracts);
|
|
29
|
+
console.info('===Contract Addresses===');
|
|
30
|
+
console.info(JSON.stringify(addresses));
|
|
31
|
+
});
|
|
21
32
|
}
|
|
22
33
|
main()
|
|
23
34
|
.then(() => console.info('Deploy complete'))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../src/scripts/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../src/scripts/deploy.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAgC;AAEhC,4CAM4B;AAE5B,6CAA+C;AAC/C,6CAAsD;AAEtD,SAAe,IAAI;;QACjB,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC/B,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,wCAAwC,CAAC,CAAC;QAEpE,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACpC,MAAM,aAAa,GAAG,IAAI,mBAAa,CAAC,oBAAW,CAAC,CAAC;QACrD,aAAa,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAEtC,MAAM,IAAI,GAAG,mBAAa,CAAC,eAAe,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACrE,MAAM,GAAG,GAAG,kBAAY,CAAC,eAAe,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,IAAA,2BAAqB,EAClC,MAAM,CAAC,OAAO,EACd,IAAI,CAAC,YAAY,EACjB,GAAG,CAAC,YAAY,CACjB,CAAC;QAEF,MAAM,QAAQ,GAAG,IAAI,2BAAkB,CAAC,aAAa,CAAC,CAAC;QACvD,MAAM,gBAAgB,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACvD,MAAM,SAAS,GAAG,IAAA,2BAAqB,EAAC,gBAAgB,CAAC,CAAC;QAC1D,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QACzC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1C,CAAC;CAAA;AAED,IAAI,EAAE;KACH,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;KAC3C,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
require("@nomiclabs/hardhat-waffle");
|
|
4
13
|
const hardhat_1 = require("hardhat");
|
|
@@ -6,32 +15,32 @@ const sdk_1 = require("@hyperlane-xyz/sdk");
|
|
|
6
15
|
const app_1 = require("../app/app");
|
|
7
16
|
const check_1 = require("../deploy/check");
|
|
8
17
|
const deploy_1 = require("../deploy/deploy");
|
|
9
|
-
describe('deploy',
|
|
18
|
+
describe('deploy', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
10
19
|
let multiProvider;
|
|
11
20
|
let core;
|
|
12
21
|
let config;
|
|
13
22
|
let deployer;
|
|
14
23
|
let contracts;
|
|
15
24
|
let app;
|
|
16
|
-
before(
|
|
17
|
-
const [signer] =
|
|
25
|
+
before(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
26
|
+
const [signer] = yield hardhat_1.ethers.getSigners();
|
|
18
27
|
multiProvider = sdk_1.MultiProvider.createTestMultiProvider({ signer });
|
|
19
28
|
const coreDeployer = new sdk_1.TestCoreDeployer(multiProvider);
|
|
20
|
-
core =
|
|
21
|
-
config =
|
|
29
|
+
core = yield coreDeployer.deployApp();
|
|
30
|
+
config = yield (0, sdk_1.deployTestIgpsAndGetRouterConfig)(multiProvider, signer.address, core.contractsMap);
|
|
22
31
|
deployer = new deploy_1.HelloWorldDeployer(multiProvider);
|
|
23
|
-
});
|
|
24
|
-
it('deploys',
|
|
25
|
-
contracts =
|
|
26
|
-
});
|
|
27
|
-
it('builds app',
|
|
28
|
-
contracts =
|
|
32
|
+
}));
|
|
33
|
+
it('deploys', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
34
|
+
contracts = yield deployer.deploy(config);
|
|
35
|
+
}));
|
|
36
|
+
it('builds app', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
37
|
+
contracts = yield deployer.deploy(config);
|
|
29
38
|
app = new app_1.HelloWorldApp(core, contracts, multiProvider);
|
|
30
|
-
});
|
|
31
|
-
it('checks',
|
|
39
|
+
}));
|
|
40
|
+
it('checks', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
32
41
|
const checker = new check_1.HelloWorldChecker(multiProvider, app, config);
|
|
33
|
-
|
|
42
|
+
yield checker.check();
|
|
34
43
|
checker.expectEmpty();
|
|
35
|
-
});
|
|
36
|
-
});
|
|
44
|
+
}));
|
|
45
|
+
}));
|
|
37
46
|
//# sourceMappingURL=deploy.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.test.js","sourceRoot":"","sources":["../../../src/test/deploy.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.test.js","sourceRoot":"","sources":["../../../src/test/deploy.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAAmC;AACnC,qCAAiC;AAEjC,4CAO4B;AAE5B,oCAA2C;AAE3C,2CAAoD;AAEpD,6CAAsD;AAEtD,QAAQ,CAAC,QAA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AE,CAAC;IACxB,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
const chai_1 = require("chai");
|
|
4
13
|
const hardhat_1 = require("hardhat");
|
|
5
14
|
const sdk_1 = require("@hyperlane-xyz/sdk");
|
|
6
15
|
const deploy_1 = require("../deploy/deploy");
|
|
7
16
|
const types_1 = require("../types");
|
|
8
|
-
describe('HelloWorld',
|
|
17
|
+
describe('HelloWorld', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
9
18
|
const localChain = sdk_1.Chains.test1;
|
|
10
19
|
const remoteChain = sdk_1.Chains.test2;
|
|
11
20
|
let localDomain;
|
|
@@ -17,58 +26,60 @@ describe('HelloWorld', async () => {
|
|
|
17
26
|
let multiProvider;
|
|
18
27
|
let coreApp;
|
|
19
28
|
let config;
|
|
20
|
-
before(
|
|
21
|
-
[signer] =
|
|
29
|
+
before(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
30
|
+
[signer] = yield hardhat_1.ethers.getSigners();
|
|
22
31
|
multiProvider = sdk_1.MultiProvider.createTestMultiProvider({ signer });
|
|
23
32
|
localDomain = multiProvider.getDomainId(localChain);
|
|
24
33
|
remoteDomain = multiProvider.getDomainId(remoteChain);
|
|
25
34
|
const coreDeployer = new sdk_1.TestCoreDeployer(multiProvider);
|
|
26
|
-
const coreContractsMaps =
|
|
35
|
+
const coreContractsMaps = yield coreDeployer.deploy();
|
|
27
36
|
coreApp = new sdk_1.TestCoreApp(coreContractsMaps, multiProvider);
|
|
28
|
-
config =
|
|
29
|
-
});
|
|
30
|
-
beforeEach(
|
|
37
|
+
config = yield (0, sdk_1.deployTestIgpsAndGetRouterConfig)(multiProvider, signer.address, coreContractsMaps);
|
|
38
|
+
}));
|
|
39
|
+
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
40
|
const helloWorld = new deploy_1.HelloWorldDeployer(multiProvider);
|
|
32
|
-
const contracts =
|
|
41
|
+
const contracts = yield helloWorld.deploy(config);
|
|
33
42
|
local = contracts[localChain].router;
|
|
34
43
|
remote = contracts[remoteChain].router;
|
|
35
44
|
localIgp = types_1.IInterchainGasPaymaster__factory.connect(config[localChain].interchainGasPaymaster, multiProvider.getProvider(localChain));
|
|
36
45
|
// The all counts start empty
|
|
37
|
-
(0, chai_1.expect)(
|
|
38
|
-
(0, chai_1.expect)(
|
|
39
|
-
(0, chai_1.expect)(
|
|
40
|
-
(0, chai_1.expect)(
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
(0, chai_1.expect)(yield local.sent()).to.equal(0);
|
|
47
|
+
(0, chai_1.expect)(yield local.received()).to.equal(0);
|
|
48
|
+
(0, chai_1.expect)(yield remote.sent()).to.equal(0);
|
|
49
|
+
(0, chai_1.expect)(yield remote.received()).to.equal(0);
|
|
50
|
+
}));
|
|
51
|
+
function quoteGasPayment(fromRouter, destinationDomain, igp) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const handleGasAmount = yield fromRouter.HANDLE_GAS_AMOUNT();
|
|
54
|
+
return igp.quoteGasPayment(destinationDomain, handleGasAmount);
|
|
55
|
+
});
|
|
45
56
|
}
|
|
46
|
-
it('sends a message',
|
|
47
|
-
|
|
48
|
-
value:
|
|
57
|
+
it('sends a message', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
58
|
+
yield (0, chai_1.expect)(local.sendHelloWorld(remoteDomain, 'Hello', {
|
|
59
|
+
value: yield quoteGasPayment(local, remoteDomain, localIgp),
|
|
49
60
|
})).to.emit(local, 'SentHelloWorld');
|
|
50
61
|
// The sent counts are correct
|
|
51
|
-
(0, chai_1.expect)(
|
|
52
|
-
(0, chai_1.expect)(
|
|
62
|
+
(0, chai_1.expect)(yield local.sent()).to.equal(1);
|
|
63
|
+
(0, chai_1.expect)(yield local.sentTo(remoteDomain)).to.equal(1);
|
|
53
64
|
// The received counts are correct
|
|
54
|
-
(0, chai_1.expect)(
|
|
55
|
-
});
|
|
56
|
-
it('reverts if there is insufficient payment',
|
|
57
|
-
|
|
65
|
+
(0, chai_1.expect)(yield local.received()).to.equal(0);
|
|
66
|
+
}));
|
|
67
|
+
it('reverts if there is insufficient payment', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
68
|
+
yield (0, chai_1.expect)(local.sendHelloWorld(remoteDomain, 'Hello', {
|
|
58
69
|
value: 0,
|
|
59
70
|
})).to.be.revertedWith('insufficient interchain gas payment');
|
|
60
|
-
});
|
|
61
|
-
it('handles a message',
|
|
62
|
-
|
|
63
|
-
value:
|
|
71
|
+
}));
|
|
72
|
+
it('handles a message', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
73
|
+
yield local.sendHelloWorld(remoteDomain, 'World', {
|
|
74
|
+
value: yield quoteGasPayment(local, remoteDomain, localIgp),
|
|
64
75
|
});
|
|
65
76
|
// Mock processing of the message by Hyperlane
|
|
66
|
-
|
|
77
|
+
yield coreApp.processOutboundMessages(localChain);
|
|
67
78
|
// The initial message has been dispatched.
|
|
68
|
-
(0, chai_1.expect)(
|
|
79
|
+
(0, chai_1.expect)(yield local.sent()).to.equal(1);
|
|
69
80
|
// The initial message has been processed.
|
|
70
|
-
(0, chai_1.expect)(
|
|
71
|
-
(0, chai_1.expect)(
|
|
72
|
-
});
|
|
73
|
-
});
|
|
81
|
+
(0, chai_1.expect)(yield remote.received()).to.equal(1);
|
|
82
|
+
(0, chai_1.expect)(yield remote.receivedFrom(localDomain)).to.equal(1);
|
|
83
|
+
}));
|
|
84
|
+
}));
|
|
74
85
|
//# sourceMappingURL=helloworld.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helloworld.test.js","sourceRoot":"","sources":["../../../src/test/helloworld.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helloworld.test.js","sourceRoot":"","sources":["../../../src/test/helloworld.test.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,+BAA8B;AAC9B,qCAAiC;AAEjC,4CAO4B;AAG5B,6CAAsD;AACtD,oCAIkB;AAElB,QAAQ,CAAC,YAAY,EAAE,GAAS,EAAE;IAChC,MAAM,UAAU,GAAG,YAAM,CAAC,KAAK,CAAC;IAChC,MAAM,WAAW,GAAG,YAAM,CAAC,KAAK,CAAC;IACjC,IAAI,WAAmB,CAAC;IACxB,IAAI,YAAoB,CAAC;IAEzB,IAAI,MAAyB,CAAC;IAC9B,IAAI,KAAiB,CAAC;IACtB,IAAI,MAAkB,CAAC;IACvB,IAAI,QAAiC,CAAC;IACtC,IAAI,aAA4B,CAAC;IACjC,IAAI,OAAoB,CAAC;IACzB,IAAI,MAAkC,CAAC;IAEvC,MAAM,CAAC,GAAS,EAAE;QAChB,CAAC,MAAM,CAAC,GAAG,MAAM,gBAAM,CAAC,UAAU,EAAE,CAAC;QAErC,aAAa,GAAG,mBAAa,CAAC,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QAClE,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QACpD,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAEtD,MAAM,YAAY,GAAG,IAAI,sBAAg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,MAAM,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC;SAC5D,CAAC,CAAC;QACH,8CAA8C;QAC9C,MAAM,OAAO,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAClD,2CAA2C;QAC3C,IAAA,aAAM,EAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvC,0CAA0C;QAC1C,IAAA,aAAM,EAAC,MAAM,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC5C,IAAA,aAAM,EAAC,MAAM,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../common";
|
|
2
2
|
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
-
import type {
|
|
4
|
+
import type { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
5
5
|
export interface HyperlaneConnectionClientInterface extends utils.Interface {
|
|
6
6
|
functions: {
|
|
7
7
|
"interchainGasPaymaster()": FunctionFragment;
|
|
@@ -49,36 +49,36 @@ export interface HyperlaneConnectionClientInterface extends utils.Interface {
|
|
|
49
49
|
export interface InitializedEventObject {
|
|
50
50
|
version: number;
|
|
51
51
|
}
|
|
52
|
-
export type InitializedEvent = TypedEvent<[number], InitializedEventObject>;
|
|
53
|
-
export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
|
|
52
|
+
export declare type InitializedEvent = TypedEvent<[number], InitializedEventObject>;
|
|
53
|
+
export declare type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
|
|
54
54
|
export interface InterchainGasPaymasterSetEventObject {
|
|
55
55
|
interchainGasPaymaster: string;
|
|
56
56
|
}
|
|
57
|
-
export type InterchainGasPaymasterSetEvent = TypedEvent<[
|
|
57
|
+
export declare type InterchainGasPaymasterSetEvent = TypedEvent<[
|
|
58
58
|
string
|
|
59
59
|
], InterchainGasPaymasterSetEventObject>;
|
|
60
|
-
export type InterchainGasPaymasterSetEventFilter = TypedEventFilter<InterchainGasPaymasterSetEvent>;
|
|
60
|
+
export declare type InterchainGasPaymasterSetEventFilter = TypedEventFilter<InterchainGasPaymasterSetEvent>;
|
|
61
61
|
export interface InterchainSecurityModuleSetEventObject {
|
|
62
62
|
module: string;
|
|
63
63
|
}
|
|
64
|
-
export type InterchainSecurityModuleSetEvent = TypedEvent<[
|
|
64
|
+
export declare type InterchainSecurityModuleSetEvent = TypedEvent<[
|
|
65
65
|
string
|
|
66
66
|
], InterchainSecurityModuleSetEventObject>;
|
|
67
|
-
export type InterchainSecurityModuleSetEventFilter = TypedEventFilter<InterchainSecurityModuleSetEvent>;
|
|
67
|
+
export declare type InterchainSecurityModuleSetEventFilter = TypedEventFilter<InterchainSecurityModuleSetEvent>;
|
|
68
68
|
export interface MailboxSetEventObject {
|
|
69
69
|
mailbox: string;
|
|
70
70
|
}
|
|
71
|
-
export type MailboxSetEvent = TypedEvent<[string], MailboxSetEventObject>;
|
|
72
|
-
export type MailboxSetEventFilter = TypedEventFilter<MailboxSetEvent>;
|
|
71
|
+
export declare type MailboxSetEvent = TypedEvent<[string], MailboxSetEventObject>;
|
|
72
|
+
export declare type MailboxSetEventFilter = TypedEventFilter<MailboxSetEvent>;
|
|
73
73
|
export interface OwnershipTransferredEventObject {
|
|
74
74
|
previousOwner: string;
|
|
75
75
|
newOwner: string;
|
|
76
76
|
}
|
|
77
|
-
export type OwnershipTransferredEvent = TypedEvent<[
|
|
77
|
+
export declare type OwnershipTransferredEvent = TypedEvent<[
|
|
78
78
|
string,
|
|
79
79
|
string
|
|
80
80
|
], OwnershipTransferredEventObject>;
|
|
81
|
-
export type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
81
|
+
export declare type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
82
82
|
export interface HyperlaneConnectionClient extends BaseContract {
|
|
83
83
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
84
84
|
attach(addressOrName: string): this;
|