@hyperlane-xyz/registry 10.8.1 → 10.9.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 +1 -0
- package/dist/consts.js +1 -0
- package/dist/deployments/warp_routes/REZ/base-ethereum-config.js +2 -2
- package/dist/deployments/warp_routes/REZ/base-ethereum-config.json +2 -2
- package/dist/deployments/warp_routes/REZ/base-ethereum-config.yaml +2 -2
- package/dist/index-fs.d.ts +1 -0
- package/dist/index-fs.js +1 -0
- package/dist/registry/registry-utils.d.ts +3 -0
- package/dist/registry/registry-utils.js +44 -0
- package/dist/warpRouteConfigs.js +2 -2
- package/package.json +1 -1
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';
|
|
@@ -10,7 +10,7 @@ export const warpRouteConfig = {
|
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"decimals": 18,
|
|
13
|
-
"logoURI": "/deployments/warp_routes/
|
|
13
|
+
"logoURI": "/deployments/warp_routes/REZ/REZ-logo.svg",
|
|
14
14
|
"name": "Renzo",
|
|
15
15
|
"standard": "EvmHypXERC20",
|
|
16
16
|
"symbol": "REZ"
|
|
@@ -26,7 +26,7 @@ export const warpRouteConfig = {
|
|
|
26
26
|
}
|
|
27
27
|
],
|
|
28
28
|
"decimals": 18,
|
|
29
|
-
"logoURI": "/deployments/warp_routes/
|
|
29
|
+
"logoURI": "/deployments/warp_routes/REZ/REZ-logo.svg",
|
|
30
30
|
"name": "Renzo",
|
|
31
31
|
"standard": "EvmHypXERC20Lockbox",
|
|
32
32
|
"symbol": "REZ"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"decimals": 18,
|
|
13
|
-
"logoURI": "/deployments/warp_routes/
|
|
13
|
+
"logoURI": "/deployments/warp_routes/REZ/REZ-logo.svg",
|
|
14
14
|
"name": "Renzo",
|
|
15
15
|
"standard": "EvmHypXERC20",
|
|
16
16
|
"symbol": "REZ"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
],
|
|
28
28
|
"decimals": 18,
|
|
29
|
-
"logoURI": "/deployments/warp_routes/
|
|
29
|
+
"logoURI": "/deployments/warp_routes/REZ/REZ-logo.svg",
|
|
30
30
|
"name": "Renzo",
|
|
31
31
|
"standard": "EvmHypXERC20Lockbox",
|
|
32
32
|
"symbol": "REZ"
|
|
@@ -6,7 +6,7 @@ tokens:
|
|
|
6
6
|
connections:
|
|
7
7
|
- token: ethereum|ethereum|0xc32848c38Dd5A5098Cd53d33e425c1013a4E06A8
|
|
8
8
|
decimals: 18
|
|
9
|
-
logoURI: /deployments/warp_routes/
|
|
9
|
+
logoURI: /deployments/warp_routes/REZ/REZ-logo.svg
|
|
10
10
|
name: Renzo
|
|
11
11
|
standard: EvmHypXERC20
|
|
12
12
|
symbol: REZ
|
|
@@ -17,7 +17,7 @@ tokens:
|
|
|
17
17
|
connections:
|
|
18
18
|
- token: ethereum|base|0xF4eae2f139D8032b8410Fef46f6873cD71A0FD76
|
|
19
19
|
decimals: 18
|
|
20
|
-
logoURI: /deployments/warp_routes/
|
|
20
|
+
logoURI: /deployments/warp_routes/REZ/REZ-logo.svg
|
|
21
21
|
name: Renzo
|
|
22
22
|
standard: EvmHypXERC20Lockbox
|
|
23
23
|
symbol: REZ
|
package/dist/index-fs.d.ts
CHANGED
package/dist/index-fs.js
CHANGED
|
@@ -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
|
+
}
|
package/dist/warpRouteConfigs.js
CHANGED
|
@@ -4404,7 +4404,7 @@ export const warpRouteConfigs = {
|
|
|
4404
4404
|
}
|
|
4405
4405
|
],
|
|
4406
4406
|
"decimals": 18,
|
|
4407
|
-
"logoURI": "/deployments/warp_routes/
|
|
4407
|
+
"logoURI": "/deployments/warp_routes/REZ/REZ-logo.svg",
|
|
4408
4408
|
"name": "Renzo",
|
|
4409
4409
|
"standard": "EvmHypXERC20",
|
|
4410
4410
|
"symbol": "REZ"
|
|
@@ -4420,7 +4420,7 @@ export const warpRouteConfigs = {
|
|
|
4420
4420
|
}
|
|
4421
4421
|
],
|
|
4422
4422
|
"decimals": 18,
|
|
4423
|
-
"logoURI": "/deployments/warp_routes/
|
|
4423
|
+
"logoURI": "/deployments/warp_routes/REZ/REZ-logo.svg",
|
|
4424
4424
|
"name": "Renzo",
|
|
4425
4425
|
"standard": "EvmHypXERC20Lockbox",
|
|
4426
4426
|
"symbol": "REZ"
|