pull/2435/head
Yorke Rhodes 2 years ago committed by GitHub
parent 6b36d7f196
commit e0277cf27b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      package.json
  2. 10
      src/deploy/deploy.ts
  3. 4
      src/scripts/deploy.ts
  4. 9
      src/test/deploy.test.ts
  5. 4
      src/test/helloworld.test.ts
  6. 57
      yarn.lock

@ -1,9 +1,9 @@
{
"name": "@hyperlane-xyz/helloworld",
"description": "A basic skeleton of an Hyperlane app",
"version": "1.3.0",
"version": "1.3.1",
"dependencies": {
"@hyperlane-xyz/sdk": "1.3.0",
"@hyperlane-xyz/sdk": "1.3.1",
"@openzeppelin/contracts-upgradeable": "^4.8.0",
"ethers": "^5.7.2"
},

@ -1,8 +1,6 @@
import {
ChainMap,
ChainName,
HyperlaneContracts,
HyperlaneCore,
HyperlaneRouterDeployer,
MultiProvider,
} from '@hyperlane-xyz/sdk';
@ -16,12 +14,8 @@ export class HelloWorldDeployer extends HyperlaneRouterDeployer<
HelloWorldConfig,
HelloWorldFactories
> {
constructor(
multiProvider: MultiProvider,
configMap: ChainMap<HelloWorldConfig>,
protected core: HyperlaneCore,
) {
super(multiProvider, configMap, helloWorldFactories, {});
constructor(multiProvider: MultiProvider) {
super(multiProvider, helloWorldFactories, {});
}
router(contracts: HyperlaneContracts<HelloWorldFactories>): HelloWorld {

@ -27,8 +27,8 @@ async function main() {
igp.contractsMap,
);
const deployer = new HelloWorldDeployer(multiProvider, config, core);
const chainToContracts = await deployer.deploy();
const deployer = new HelloWorldDeployer(multiProvider);
const chainToContracts = await deployer.deploy(config);
const addresses = serializeContractsMap(chainToContracts);
console.info('===Contract Addresses===');
console.info(JSON.stringify(addresses));

@ -29,22 +29,21 @@ describe('deploy', async () => {
multiProvider = MultiProvider.createTestMultiProvider({ signer });
const coreDeployer = new TestCoreDeployer(multiProvider);
const coreContractsMaps = await coreDeployer.deploy();
core = new TestCoreApp(coreContractsMaps, multiProvider);
core = await coreDeployer.deployApp();
config = await deployTestIgpsAndGetRouterConfig(
multiProvider,
signer.address,
core.contractsMap,
);
deployer = new HelloWorldDeployer(multiProvider, config, core);
deployer = new HelloWorldDeployer(multiProvider);
});
it('deploys', async () => {
contracts = await deployer.deploy();
contracts = await deployer.deploy(config);
});
it('builds app', async () => {
contracts = await deployer.deploy();
contracts = await deployer.deploy(config);
app = new HelloWorldApp(core, contracts, multiProvider);
});

@ -51,8 +51,8 @@ describe('HelloWorld', async () => {
});
beforeEach(async () => {
const helloWorld = new HelloWorldDeployer(multiProvider, config, coreApp);
const contracts = await helloWorld.deploy();
const helloWorld = new HelloWorldDeployer(multiProvider);
const contracts = await helloWorld.deploy(config);
local = contracts[localChain].router;
remote = contracts[remoteChain].router;

@ -1350,14 +1350,14 @@ __metadata:
languageName: node
linkType: hard
"@hyperlane-xyz/core@npm:1.3.0":
version: 1.3.0
resolution: "@hyperlane-xyz/core@npm:1.3.0"
"@hyperlane-xyz/core@npm:1.3.1":
version: 1.3.1
resolution: "@hyperlane-xyz/core@npm:1.3.1"
dependencies:
"@hyperlane-xyz/utils": 1.3.0
"@hyperlane-xyz/utils": 1.3.1
"@openzeppelin/contracts": ^4.8.0
"@openzeppelin/contracts-upgradeable": ^4.8.0
checksum: 8e4c8e72dee2ff2705697f802de06d29fcbdb8789883f051977bbb82748d842647d6274691d918edafa03fa18e9e2fb0359c6af4d8d7f7f99cbe2167a2aef1f4
checksum: bb341b6ab2f7bbde057082ec277d48df5918b5a4c676887af9b49a54f9dc2d349c34cf74de7b1df20bddbadbdc7467628d3689182c01702cb21e0ac0e4e71981
languageName: node
linkType: hard
@ -1365,7 +1365,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@hyperlane-xyz/helloworld@workspace:."
dependencies:
"@hyperlane-xyz/sdk": 1.3.0
"@hyperlane-xyz/sdk": 1.3.1
"@nomiclabs/hardhat-ethers": ^2.2.1
"@nomiclabs/hardhat-waffle": ^2.0.3
"@openzeppelin/contracts-upgradeable": ^4.8.0
@ -1393,28 +1393,30 @@ __metadata:
languageName: unknown
linkType: soft
"@hyperlane-xyz/sdk@npm:1.3.0":
version: 1.3.0
resolution: "@hyperlane-xyz/sdk@npm:1.3.0"
"@hyperlane-xyz/sdk@npm:1.3.1":
version: 1.3.1
resolution: "@hyperlane-xyz/sdk@npm:1.3.1"
dependencies:
"@hyperlane-xyz/core": 1.3.0
"@hyperlane-xyz/utils": 1.3.0
"@hyperlane-xyz/core": 1.3.1
"@hyperlane-xyz/utils": 1.3.1
"@types/coingecko-api": ^1.0.10
"@types/debug": ^4.1.7
"@wagmi/chains": ^0.2.6
coingecko-api: ^1.0.10
cross-fetch: ^3.1.5
debug: ^4.3.4
ethers: ^5.7.2
zod: ^3.21.2
checksum: ef8f964b58cf16bd514ed09b8f22c484dcd08385510aa67bbcb896b7a95c103b7f029d66ef676807b07a9be1aaf816d937fce7d5848f9f38529373d2f276be3d
checksum: 3b1339dafb9ea8ba7c91ac3a51fd86638808bc60a06abd36e94fdc86316a7d591b395e5c94f9646d63331bde258f5013ee434e014ddf4d1db3d20a9b6b81f5dc
languageName: node
linkType: hard
"@hyperlane-xyz/utils@npm:1.3.0":
version: 1.3.0
resolution: "@hyperlane-xyz/utils@npm:1.3.0"
"@hyperlane-xyz/utils@npm:1.3.1":
version: 1.3.1
resolution: "@hyperlane-xyz/utils@npm:1.3.1"
dependencies:
ethers: ^5.7.2
checksum: 22008ac00bc37f23387b5988fa22c9066796dfa5bcc115a1cd51087b160115279cb3fa57061545fa3053de660750a27bbdb94ef8daa47abbfdf0cef8013dc787
checksum: 960c972211618ea9b637bf98cdaf052f6175aa535ba6402617b84110731fe2657f8cdb387cc2be24c8250e87d46a99320f7d609067ee8e42b5d98644d0db4f95
languageName: node
linkType: hard
@ -1940,6 +1942,13 @@ __metadata:
languageName: node
linkType: hard
"@types/coingecko-api@npm:^1.0.10":
version: 1.0.10
resolution: "@types/coingecko-api@npm:1.0.10"
checksum: e9683f9ea9ce2f855f6565089981dd3fceb6c4674365438f3fc3877d089a2fb82cdea011b59d59c7baa1635dc610860cd29a10a4b7a650ff96521ead46f22a50
languageName: node
linkType: hard
"@types/concat-stream@npm:^1.6.0":
version: 1.6.1
resolution: "@types/concat-stream@npm:1.6.1"
@ -1949,6 +1958,15 @@ __metadata:
languageName: node
linkType: hard
"@types/debug@npm:^4.1.7":
version: 4.1.7
resolution: "@types/debug@npm:4.1.7"
dependencies:
"@types/ms": "*"
checksum: 0a7b89d8ed72526858f0b61c6fd81f477853e8c4415bb97f48b1b5545248d2ae389931680b94b393b993a7cfe893537a200647d93defe6d87159b96812305adc
languageName: node
linkType: hard
"@types/form-data@npm:0.0.33":
version: 0.0.33
resolution: "@types/form-data@npm:0.0.33"
@ -2032,6 +2050,13 @@ __metadata:
languageName: node
linkType: hard
"@types/ms@npm:*":
version: 0.7.31
resolution: "@types/ms@npm:0.7.31"
checksum: daadd354aedde024cce6f5aa873fefe7b71b22cd0e28632a69e8b677aeb48ae8caa1c60e5919bb781df040d116b01cb4316335167a3fc0ef6a63fa3614c0f6da
languageName: node
linkType: hard
"@types/node-fetch@npm:^2.5.5":
version: 2.6.1
resolution: "@types/node-fetch@npm:2.6.1"

Loading…
Cancel
Save