@hyperlane-xyz/registry 10.7.0 → 10.8.0

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/consts.d.ts CHANGED
@@ -6,3 +6,4 @@ export declare const WARP_ROUTE_SYMBOL_DIRECTORY_REGEX: RegExp;
6
6
  export declare const WARP_ROUTE_CONFIG_FILE_REGEX: RegExp;
7
7
  export declare const WARP_ROUTE_DEPLOY_FILE_REGEX: RegExp;
8
8
  export declare const ABACUS_WORKS_DEPLOYER_NAME = "Abacus Works";
9
+ export declare const PROXY_DEPLOYED_URL = "https://proxy.hyperlane.xyz";
package/dist/consts.js CHANGED
@@ -6,3 +6,4 @@ export const WARP_ROUTE_SYMBOL_DIRECTORY_REGEX = /warp_routes\/([a-zA-Z0-9]+)$/;
6
6
  export const WARP_ROUTE_CONFIG_FILE_REGEX = /warp_routes\/([a-zA-Z0-9]+)\/([a-z0-9-]+)-config.yaml/;
7
7
  export const WARP_ROUTE_DEPLOY_FILE_REGEX = /warp_routes\/([a-zA-Z0-9]+)\/([a-z0-9-]+)-deploy.yaml/;
8
8
  export const ABACUS_WORKS_DEPLOYER_NAME = 'Abacus Works';
9
+ export const PROXY_DEPLOYED_URL = 'https://proxy.hyperlane.xyz';
@@ -0,0 +1,2 @@
1
+ import type { WarpCoreConfig } from '@hyperlane-xyz/sdk';
2
+ export declare const warpRouteConfig: WarpCoreConfig;
@@ -0,0 +1,35 @@
1
+ export const warpRouteConfig = {
2
+ "tokens": [
3
+ {
4
+ "addressOrDenom": "0xF4eae2f139D8032b8410Fef46f6873cD71A0FD76",
5
+ "chainName": "base",
6
+ "collateralAddressOrDenom": "0xf757c9804cF2EE8d8Ed64e0A8936293Fe43a7252",
7
+ "connections": [
8
+ {
9
+ "token": "ethereum|ethereum|0xc32848c38Dd5A5098Cd53d33e425c1013a4E06A8"
10
+ }
11
+ ],
12
+ "decimals": 18,
13
+ "logoURI": "/deployments/warp_routes/pumpBTCsei/pumpBTCsei-logo.svg",
14
+ "name": "Renzo",
15
+ "standard": "EvmHypXERC20",
16
+ "symbol": "REZ"
17
+ },
18
+ {
19
+ "addressOrDenom": "0xc32848c38Dd5A5098Cd53d33e425c1013a4E06A8",
20
+ "chainName": "ethereum",
21
+ "coinGeckoId": "renzo",
22
+ "collateralAddressOrDenom": "0xd8B543fEac4EEcEF5a46a926e10D6f4a72de6fE0",
23
+ "connections": [
24
+ {
25
+ "token": "ethereum|base|0xF4eae2f139D8032b8410Fef46f6873cD71A0FD76"
26
+ }
27
+ ],
28
+ "decimals": 18,
29
+ "logoURI": "/deployments/warp_routes/pumpBTCsei/pumpBTCsei-logo.svg",
30
+ "name": "Renzo",
31
+ "standard": "EvmHypXERC20Lockbox",
32
+ "symbol": "REZ"
33
+ }
34
+ ]
35
+ };
@@ -0,0 +1,35 @@
1
+ {
2
+ "tokens": [
3
+ {
4
+ "addressOrDenom": "0xF4eae2f139D8032b8410Fef46f6873cD71A0FD76",
5
+ "chainName": "base",
6
+ "collateralAddressOrDenom": "0xf757c9804cF2EE8d8Ed64e0A8936293Fe43a7252",
7
+ "connections": [
8
+ {
9
+ "token": "ethereum|ethereum|0xc32848c38Dd5A5098Cd53d33e425c1013a4E06A8"
10
+ }
11
+ ],
12
+ "decimals": 18,
13
+ "logoURI": "/deployments/warp_routes/pumpBTCsei/pumpBTCsei-logo.svg",
14
+ "name": "Renzo",
15
+ "standard": "EvmHypXERC20",
16
+ "symbol": "REZ"
17
+ },
18
+ {
19
+ "addressOrDenom": "0xc32848c38Dd5A5098Cd53d33e425c1013a4E06A8",
20
+ "chainName": "ethereum",
21
+ "coinGeckoId": "renzo",
22
+ "collateralAddressOrDenom": "0xd8B543fEac4EEcEF5a46a926e10D6f4a72de6fE0",
23
+ "connections": [
24
+ {
25
+ "token": "ethereum|base|0xF4eae2f139D8032b8410Fef46f6873cD71A0FD76"
26
+ }
27
+ ],
28
+ "decimals": 18,
29
+ "logoURI": "/deployments/warp_routes/pumpBTCsei/pumpBTCsei-logo.svg",
30
+ "name": "Renzo",
31
+ "standard": "EvmHypXERC20Lockbox",
32
+ "symbol": "REZ"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,23 @@
1
+ # yaml-language-server: $schema=../schema.json
2
+ tokens:
3
+ - addressOrDenom: "0xF4eae2f139D8032b8410Fef46f6873cD71A0FD76"
4
+ chainName: base
5
+ collateralAddressOrDenom: "0xf757c9804cF2EE8d8Ed64e0A8936293Fe43a7252"
6
+ connections:
7
+ - token: ethereum|ethereum|0xc32848c38Dd5A5098Cd53d33e425c1013a4E06A8
8
+ decimals: 18
9
+ logoURI: /deployments/warp_routes/pumpBTCsei/pumpBTCsei-logo.svg
10
+ name: Renzo
11
+ standard: EvmHypXERC20
12
+ symbol: REZ
13
+ - addressOrDenom: "0xc32848c38Dd5A5098Cd53d33e425c1013a4E06A8"
14
+ chainName: ethereum
15
+ coinGeckoId: renzo
16
+ collateralAddressOrDenom: "0xd8B543fEac4EEcEF5a46a926e10D6f4a72de6fE0"
17
+ connections:
18
+ - token: ethereum|base|0xF4eae2f139D8032b8410Fef46f6873cD71A0FD76
19
+ decimals: 18
20
+ logoURI: /deployments/warp_routes/pumpBTCsei/pumpBTCsei-logo.svg
21
+ name: Renzo
22
+ standard: EvmHypXERC20Lockbox
23
+ symbol: REZ
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export { PartialRegistry, PartialRegistryOptions } from './registry/PartialRegis
7
7
  export { filterWarpRoutesIds, warpConfigToWarpAddresses, warpRouteConfigPathToId, warpRouteConfigToId, createWarpRouteConfigId, } from './registry/warp-utils.js';
8
8
  export { ChainAddresses, ChainAddressesSchema } from './types.js';
9
9
  export { isAbacusWorksChain } from './utils.js';
10
+ export { getRegistry } from './registry/registry-utils.js';
10
11
  export { chainMetadata } from './chainMetadata.js';
11
12
  export { chainAddresses } from './chainAddresses.js';
12
13
  export { metadata as abstract } from './chains/abstract/metadata.js';
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ export { PartialRegistry } from './registry/PartialRegistry.js';
7
7
  export { filterWarpRoutesIds, warpConfigToWarpAddresses, warpRouteConfigPathToId, warpRouteConfigToId, createWarpRouteConfigId, } from './registry/warp-utils.js';
8
8
  export { ChainAddressesSchema } from './types.js';
9
9
  export { isAbacusWorksChain } from './utils.js';
10
+ export { getRegistry } from './registry/registry-utils.js';
10
11
  export { chainMetadata } from './chainMetadata.js';
11
12
  export { chainAddresses } from './chainAddresses.js';
12
13
  export { metadata as abstract } from './chains/abstract/metadata.js';
@@ -0,0 +1,3 @@
1
+ import type { Logger } from 'pino';
2
+ import { IRegistry } from './IRegistry.js';
3
+ export declare function getRegistry(registryUris: string[], enableProxy: boolean, logger?: Logger): IRegistry;
@@ -0,0 +1,44 @@
1
+ import { GithubRegistry } from './GithubRegistry.js';
2
+ import { FileSystemRegistry } from './FileSystemRegistry.js';
3
+ import { DEFAULT_GITHUB_REGISTRY, PROXY_DEPLOYED_URL } from '../consts.js';
4
+ import { MergedRegistry } from './MergedRegistry.js';
5
+ const isHttpsUrl = (value) => {
6
+ try {
7
+ if (!value)
8
+ return false;
9
+ const url = new URL(value);
10
+ return url.protocol === 'https:';
11
+ }
12
+ catch {
13
+ return false;
14
+ }
15
+ };
16
+ const isCanonicalRepoUrl = (url) => {
17
+ return url === DEFAULT_GITHUB_REGISTRY;
18
+ };
19
+ export function getRegistry(registryUris, enableProxy, logger) {
20
+ const registryLogger = logger?.child({ module: 'MergedRegistry' });
21
+ const registries = registryUris
22
+ .map((uri) => uri.trim())
23
+ .filter((uri) => !!uri)
24
+ .map((uri, index) => {
25
+ const childLogger = registryLogger?.child({ uri, index });
26
+ if (isHttpsUrl(uri)) {
27
+ return new GithubRegistry({
28
+ uri,
29
+ logger: childLogger,
30
+ proxyUrl: enableProxy && isCanonicalRepoUrl(uri) ? PROXY_DEPLOYED_URL : undefined,
31
+ });
32
+ }
33
+ else {
34
+ return new FileSystemRegistry({
35
+ uri,
36
+ logger: childLogger,
37
+ });
38
+ }
39
+ });
40
+ return new MergedRegistry({
41
+ registries,
42
+ logger,
43
+ });
44
+ }
@@ -4392,6 +4392,41 @@ export const warpRouteConfigs = {
4392
4392
  }
4393
4393
  ]
4394
4394
  },
4395
+ "REZ/base-ethereum": {
4396
+ "tokens": [
4397
+ {
4398
+ "addressOrDenom": "0xF4eae2f139D8032b8410Fef46f6873cD71A0FD76",
4399
+ "chainName": "base",
4400
+ "collateralAddressOrDenom": "0xf757c9804cF2EE8d8Ed64e0A8936293Fe43a7252",
4401
+ "connections": [
4402
+ {
4403
+ "token": "ethereum|ethereum|0xc32848c38Dd5A5098Cd53d33e425c1013a4E06A8"
4404
+ }
4405
+ ],
4406
+ "decimals": 18,
4407
+ "logoURI": "/deployments/warp_routes/pumpBTCsei/pumpBTCsei-logo.svg",
4408
+ "name": "Renzo",
4409
+ "standard": "EvmHypXERC20",
4410
+ "symbol": "REZ"
4411
+ },
4412
+ {
4413
+ "addressOrDenom": "0xc32848c38Dd5A5098Cd53d33e425c1013a4E06A8",
4414
+ "chainName": "ethereum",
4415
+ "coinGeckoId": "renzo",
4416
+ "collateralAddressOrDenom": "0xd8B543fEac4EEcEF5a46a926e10D6f4a72de6fE0",
4417
+ "connections": [
4418
+ {
4419
+ "token": "ethereum|base|0xF4eae2f139D8032b8410Fef46f6873cD71A0FD76"
4420
+ }
4421
+ ],
4422
+ "decimals": 18,
4423
+ "logoURI": "/deployments/warp_routes/pumpBTCsei/pumpBTCsei-logo.svg",
4424
+ "name": "Renzo",
4425
+ "standard": "EvmHypXERC20Lockbox",
4426
+ "symbol": "REZ"
4427
+ }
4428
+ ]
4429
+ },
4395
4430
  "Re7LRT/ethereum-zircuit": {
4396
4431
  "tokens": [
4397
4432
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hyperlane-xyz/registry",
3
3
  "description": "A collection of configs, artifacts, and schemas for Hyperlane",
4
- "version": "10.7.0",
4
+ "version": "10.8.0",
5
5
  "dependencies": {
6
6
  "yaml": "2.4.5",
7
7
  "zod": "^3.21.2"