@hyperlane-xyz/registry 10.9.0 → 10.10.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.
@@ -4,6 +4,55 @@
4
4
  "hyperlaneChainMetadata": {
5
5
  "type": "object",
6
6
  "properties": {
7
+ "availability": {
8
+ "anyOf": [
9
+ {
10
+ "type": "object",
11
+ "properties": {
12
+ "status": {
13
+ "type": "string",
14
+ "const": "disabled",
15
+ "description": "The status that represents the chain availability. See ChainStatus for valid values."
16
+ },
17
+ "reasons": {
18
+ "type": "array",
19
+ "items": {
20
+ "type": "string",
21
+ "enum": [
22
+ "badrpc",
23
+ "deprecated",
24
+ "private",
25
+ "unavailable",
26
+ "other"
27
+ ]
28
+ },
29
+ "minItems": 1,
30
+ "description": "List of reasons explaining why the chain is disabled."
31
+ }
32
+ },
33
+ "required": [
34
+ "status",
35
+ "reasons"
36
+ ],
37
+ "additionalProperties": false
38
+ },
39
+ {
40
+ "type": "object",
41
+ "properties": {
42
+ "status": {
43
+ "type": "string",
44
+ "const": "live",
45
+ "description": "The status that represents the chain availability. See ChainStatus for valid values."
46
+ }
47
+ },
48
+ "required": [
49
+ "status"
50
+ ],
51
+ "additionalProperties": false
52
+ }
53
+ ],
54
+ "description": "Specifies if the chain is available and the reasons why it is disabled."
55
+ },
7
56
  "bech32Prefix": {
8
57
  "type": "string",
9
58
  "description": "The human readable address prefix for the chains using bech32."
@@ -1,3 +1,3 @@
1
1
  import type { Logger } from 'pino';
2
2
  import { IRegistry } from './IRegistry.js';
3
- export declare function getRegistry(registryUris: string[], enableProxy: boolean, logger?: Logger): IRegistry;
3
+ export declare function getRegistry(registryUris: string[], enableProxy: boolean, branch?: string, logger?: Logger): IRegistry;
@@ -16,7 +16,7 @@ const isHttpsUrl = (value) => {
16
16
  const isCanonicalRepoUrl = (url) => {
17
17
  return url === DEFAULT_GITHUB_REGISTRY;
18
18
  };
19
- export function getRegistry(registryUris, enableProxy, logger) {
19
+ export function getRegistry(registryUris, enableProxy, branch, logger) {
20
20
  const registryLogger = logger?.child({ module: 'MergedRegistry' });
21
21
  const registries = registryUris
22
22
  .map((uri) => uri.trim())
@@ -26,6 +26,7 @@ export function getRegistry(registryUris, enableProxy, logger) {
26
26
  if (isHttpsUrl(uri)) {
27
27
  return new GithubRegistry({
28
28
  uri,
29
+ branch,
29
30
  logger: childLogger,
30
31
  proxyUrl: enableProxy && isCanonicalRepoUrl(uri) ? PROXY_DEPLOYED_URL : undefined,
31
32
  });
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.9.0",
4
+ "version": "10.10.0",
5
5
  "dependencies": {
6
6
  "yaml": "2.4.5",
7
7
  "zod": "^3.21.2"
@@ -9,7 +9,7 @@
9
9
  "devDependencies": {
10
10
  "@changesets/cli": "^2.26.2",
11
11
  "@eslint/js": "^9.1.1",
12
- "@hyperlane-xyz/sdk": "7.0.0",
12
+ "@hyperlane-xyz/sdk": "8.8.1",
13
13
  "@types/mocha": "^10.0.1",
14
14
  "@types/node": "^16.9.1",
15
15
  "@typescript-eslint/parser": "^7.7.0",