From e49ec250ae112f228ab579370b1b18182dce8d70 Mon Sep 17 00:00:00 2001 From: Le Yu <6251863+ltyu@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:52:46 -0400 Subject: [PATCH 1/3] Up latest versions --- package.json | 8 +++---- yarn.lock | 66 ++++++++++++++++++++++++++-------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index b83043aa..9545f939 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,10 @@ "@emotion/react": "^11.13.0", "@emotion/styled": "^11.13.0", "@headlessui/react": "^1.7.14", - "@hyperlane-xyz/registry": "4.3.3", - "@hyperlane-xyz/sdk": "5.2.0", - "@hyperlane-xyz/utils": "5.2.0", - "@hyperlane-xyz/widgets": "5.2.0", + "@hyperlane-xyz/registry": "4.3.6", + "@hyperlane-xyz/sdk": "5.2.1", + "@hyperlane-xyz/utils": "5.2.1", + "@hyperlane-xyz/widgets": "5.2.1", "@interchain-ui/react": "^1.23.28", "@metamask/jazzicon": "https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6", "@metamask/post-message-stream": "6.1.2", diff --git a/yarn.lock b/yarn.lock index b2079097..49d648c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3939,13 +3939,13 @@ __metadata: languageName: node linkType: hard -"@hyperlane-xyz/core@npm:5.2.0": - version: 5.2.0 - resolution: "@hyperlane-xyz/core@npm:5.2.0" +"@hyperlane-xyz/core@npm:5.2.1": + version: 5.2.1 + resolution: "@hyperlane-xyz/core@npm:5.2.1" dependencies: "@arbitrum/nitro-contracts": "npm:^1.2.1" "@eth-optimism/contracts": "npm:^0.6.0" - "@hyperlane-xyz/utils": "npm:5.2.0" + "@hyperlane-xyz/utils": "npm:5.2.1" "@layerzerolabs/lz-evm-oapp-v2": "npm:2.0.2" "@openzeppelin/contracts": "npm:^4.9.3" "@openzeppelin/contracts-upgradeable": "npm:^v4.9.3" @@ -3954,40 +3954,40 @@ __metadata: "@ethersproject/abi": "*" "@ethersproject/providers": "*" "@types/sinon-chai": "*" - checksum: 1872769da9d11814671fce662407b8823fb5ed265c952ed396671486ff8faff52f2a24903ba1f8d412eb72d23d9ac9663c77f0e8dd2fada470ada96e5f3d2caf + checksum: df515d545c3a174dbadef13132a63874f0fc1e2c9cf891bf9c874ab2d4b31cc1d2cb33d660f9e99d547cc6d508f527d4dd5e1e758fc8d141de56401f4616010d languageName: node linkType: hard -"@hyperlane-xyz/registry@npm:4.1.0": - version: 4.1.0 - resolution: "@hyperlane-xyz/registry@npm:4.1.0" +"@hyperlane-xyz/registry@npm:4.3.2": + version: 4.3.2 + resolution: "@hyperlane-xyz/registry@npm:4.3.2" dependencies: yaml: "npm:2.4.5" zod: "npm:^3.21.2" - checksum: 5de3ef5539abfaadbfefb82e6e69fdb2413f404d8321456c91810fb50a5a70e9f93b38789495efce6ab5963682536e95a2abe636c7d0ad91ee158cc0ce6b063a + checksum: 7b1ff07074e4499f74a4c75dbbf0b7e641b3610bfc2a67785db724748d887d7b03c9dc9738b790cb56e008d6453789432c863f3b251498f77c931f196b9dab86 languageName: node linkType: hard -"@hyperlane-xyz/registry@npm:4.3.3": - version: 4.3.3 - resolution: "@hyperlane-xyz/registry@npm:4.3.3" +"@hyperlane-xyz/registry@npm:4.3.6": + version: 4.3.6 + resolution: "@hyperlane-xyz/registry@npm:4.3.6" dependencies: yaml: "npm:2.4.5" zod: "npm:^3.21.2" - checksum: 09cf9242fd9b5dd4274ae1a3ce877d157db74fe85378dcf726e40dd3fa2ce8fc97523657c4008bc866daee0ac3aa569de706a31194eef4702182ea148091e180 + checksum: 7cc42813f4f8b8ef09266be249f3dcec0584832166419df2f48eec3cc43ba766e58845ecc16673bf6465a711f08ff6c4fc5216da2f704bc31ef8ade52af4b6e5 languageName: node linkType: hard -"@hyperlane-xyz/sdk@npm:5.2.0": - version: 5.2.0 - resolution: "@hyperlane-xyz/sdk@npm:5.2.0" +"@hyperlane-xyz/sdk@npm:5.2.1": + version: 5.2.1 + resolution: "@hyperlane-xyz/sdk@npm:5.2.1" dependencies: "@arbitrum/sdk": "npm:^4.0.0" "@aws-sdk/client-s3": "npm:^3.74.0" "@cosmjs/cosmwasm-stargate": "npm:^0.32.4" "@cosmjs/stargate": "npm:^0.32.4" - "@hyperlane-xyz/core": "npm:5.2.0" - "@hyperlane-xyz/utils": "npm:5.2.0" + "@hyperlane-xyz/core": "npm:5.2.1" + "@hyperlane-xyz/utils": "npm:5.2.1" "@safe-global/api-kit": "npm:1.3.0" "@safe-global/protocol-kit": "npm:1.3.0" "@safe-global/safe-deployments": "npm:1.37.8" @@ -4006,13 +4006,13 @@ __metadata: peerDependencies: "@ethersproject/abi": "*" "@ethersproject/providers": "*" - checksum: 2217671125e884e0133c321516beab1b0384fff438a6e9ae07703de507d8f613c74b9b4c6f0f83548d082f5bca5d20696337a0a22518afa2757a33e127f1468e + checksum: 94912ab970d911d77590709f78f43139717abf2d1d1ffd4f97137d2b739a0de785517a38108e2c47e4a6090c8c7e2c63f5665aa77333ca243e5ab610b0ce2585 languageName: node linkType: hard -"@hyperlane-xyz/utils@npm:5.2.0": - version: 5.2.0 - resolution: "@hyperlane-xyz/utils@npm:5.2.0" +"@hyperlane-xyz/utils@npm:5.2.1": + version: 5.2.1 + resolution: "@hyperlane-xyz/utils@npm:5.2.1" dependencies: "@cosmjs/encoding": "npm:^0.32.4" "@solana/web3.js": "npm:^1.78.0" @@ -4021,7 +4021,7 @@ __metadata: lodash-es: "npm:^4.17.21" pino: "npm:^8.19.0" yaml: "npm:2.4.5" - checksum: fbc7b5c4061d81f588c4272bfe35aeeb90a6fd2edc0e6be8d4cc5ab11dc438c8955593559a88ed4e816306e8ea37893bb22eedc0c12ffa5bede74de29671e976 + checksum: 67c725cbb0581f6a8b42723974986b9c7beee69a51dcc3261efc9c4961f27493eb10108407b1d54329eb95c19c5595ca6cc581137f925773ec600eb72c761fe1 languageName: node linkType: hard @@ -4042,10 +4042,10 @@ __metadata: "@emotion/react": "npm:^11.13.0" "@emotion/styled": "npm:^11.13.0" "@headlessui/react": "npm:^1.7.14" - "@hyperlane-xyz/registry": "npm:4.3.3" - "@hyperlane-xyz/sdk": "npm:5.2.0" - "@hyperlane-xyz/utils": "npm:5.2.0" - "@hyperlane-xyz/widgets": "npm:5.2.0" + "@hyperlane-xyz/registry": "npm:4.3.6" + "@hyperlane-xyz/sdk": "npm:5.2.1" + "@hyperlane-xyz/utils": "npm:5.2.1" + "@hyperlane-xyz/widgets": "npm:5.2.1" "@interchain-ui/react": "npm:^1.23.28" "@metamask/jazzicon": "https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6" "@metamask/post-message-stream": "npm:6.1.2" @@ -4097,16 +4097,16 @@ __metadata: languageName: unknown linkType: soft -"@hyperlane-xyz/widgets@npm:5.2.0": - version: 5.2.0 - resolution: "@hyperlane-xyz/widgets@npm:5.2.0" +"@hyperlane-xyz/widgets@npm:5.2.1": + version: 5.2.1 + resolution: "@hyperlane-xyz/widgets@npm:5.2.1" dependencies: - "@hyperlane-xyz/registry": "npm:4.1.0" - "@hyperlane-xyz/sdk": "npm:5.2.0" + "@hyperlane-xyz/registry": "npm:4.3.2" + "@hyperlane-xyz/sdk": "npm:5.2.1" peerDependencies: react: ^18 react-dom: ^18 - checksum: 85259297bc68c205e5aa52d8fed79ac4d2b3d01949b8e0322f51e96115ff4eb7084adc5b1c4e674fdf805eb7a6d2a49ce31e7fcdb0340be843d265c188624f01 + checksum: 9ee820be26d51cf59285ca370c88867c02b828473a6ffb136590d9d7987a109b9b956620833945ca32df2345fda3d5b1a4352d2a3e94a519b633fb2fd6f1342f languageName: node linkType: hard From ec48c8b5184832c9842aa6b10bbae591447e4c4b Mon Sep 17 00:00:00 2001 From: Le Yu <6251863+ltyu@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:53:04 -0400 Subject: [PATCH 2/3] Add proxy url --- src/consts/app.ts | 1 + src/context/chains.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/consts/app.ts b/src/consts/app.ts index e8037a00..22fb46e8 100644 --- a/src/consts/app.ts +++ b/src/consts/app.ts @@ -2,3 +2,4 @@ export const APP_NAME = 'Hyperlane Warp UI Template'; export const APP_DESCRIPTION = 'A DApp for Hyperlane Warp Route transfers'; export const APP_URL = 'hyperlane-warp-template.vercel.app'; export const APP_BRAND_COLOR = '#025aa1'; +export const PROXY_DEPLOYED_URL = 'https://proxy.hyperlane.xyz'; \ No newline at end of file diff --git a/src/context/chains.ts b/src/context/chains.ts index 3c404a6b..a0100447 100644 --- a/src/context/chains.ts +++ b/src/context/chains.ts @@ -3,6 +3,7 @@ import { z } from 'zod'; import { GithubRegistry, chainMetadata } from '@hyperlane-xyz/registry'; import { ChainMap, ChainMetadata, ChainMetadataSchema } from '@hyperlane-xyz/sdk'; +import { PROXY_DEPLOYED_URL } from '../consts/app.ts'; import { chains as ChainsTS } from '../consts/chains.ts'; import ChainsYaml from '../consts/chains.yaml'; import { config } from '../consts/config.ts'; @@ -22,7 +23,10 @@ export async function assembleChainMetadata() { } const customChainMetadata = result.data as ChainMap; - const registry = new GithubRegistry({ uri: config.registryUrl }); + const registry = new GithubRegistry({ + uri: config.registryUrl, + proxyUrl: PROXY_DEPLOYED_URL, + }); let defaultChainMetadata = chainMetadata; if (config.registryUrl) { logger.debug('Using custom registry', config.registryUrl); From 5da7efef7061e82cdd69044d452640534b92304d Mon Sep 17 00:00:00 2001 From: Le Yu <6251863+ltyu@users.noreply.github.com> Date: Fri, 20 Sep 2024 09:07:00 -0400 Subject: [PATCH 3/3] prettier --- src/consts/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/consts/app.ts b/src/consts/app.ts index 22fb46e8..4be8d5c7 100644 --- a/src/consts/app.ts +++ b/src/consts/app.ts @@ -2,4 +2,4 @@ export const APP_NAME = 'Hyperlane Warp UI Template'; export const APP_DESCRIPTION = 'A DApp for Hyperlane Warp Route transfers'; export const APP_URL = 'hyperlane-warp-template.vercel.app'; export const APP_BRAND_COLOR = '#025aa1'; -export const PROXY_DEPLOYED_URL = 'https://proxy.hyperlane.xyz'; \ No newline at end of file +export const PROXY_DEPLOYED_URL = 'https://proxy.hyperlane.xyz';