diff --git a/_packages/initia-registry/package.json b/_packages/initia-registry/package.json index 5c030da..cc2cc86 100644 --- a/_packages/initia-registry/package.json +++ b/_packages/initia-registry/package.json @@ -1,6 +1,6 @@ { "name": "@initia/initia-registry", - "version": "0.1.10", + "version": "0.1.11", "description": "Initia chain registry", "main": "main/index.js", "module": "esm/index.js", diff --git a/_packages/initia-registry/scripts/build.js b/_packages/initia-registry/scripts/build.js index be63d2c..3d66339 100644 --- a/_packages/initia-registry/scripts/build.js +++ b/_packages/initia-registry/scripts/build.js @@ -407,6 +407,11 @@ const chainPaths = glob(`${__dirname}/../../../*/*/chain.json`).filter((a) => { const index = a.indexOf(spliter); const splitedDirs = [a.slice(0, index), a.slice(index + spliter.length)]; let dir = splitedDirs.pop(); + + if (dir.includes("devnets")) { + return false; + } + dir = path.basename(path.dirname(dir)); return !NON_INFO_DIRS.includes(dir); }); @@ -417,6 +422,9 @@ const paths = glob(`${__dirname}/../../../*/*/*.json`).filter((a) => { const splitedDirs = [a.slice(0, index), a.slice(index + spliter.length)]; console.log(splitedDirs); const filePath = splitedDirs.pop(); + if (filePath.includes("devnets")) { + return false; + } const dir = path.basename(path.dirname(filePath)); return ( !NON_INFO_DIRS.includes(dir) && path.basename(filePath) !== "chain.json" diff --git a/_packages/initia-registry/src/testnet/blackwing/chain.ts b/_packages/initia-registry/src/testnet/blackwing/chain.ts index 928ace8..b095fd5 100644 --- a/_packages/initia-registry/src/testnet/blackwing/chain.ts +++ b/_packages/initia-registry/src/testnet/blackwing/chain.ts @@ -44,13 +44,13 @@ const info: Chain = { rpc: [ { address: - "https://maze-rpc-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ue1-prod.newmetric.xyz", + "https://maze-rpc-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ase1-prod.newmetric.xyz", }, ], rest: [ { address: - "https://maze-rest-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ue1-prod.newmetric.xyz", + "https://maze-rest-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ase1-prod.newmetric.xyz", }, ], grpc: [ diff --git a/_packages/initia-registry/src/testnet/civitia/chain.ts b/_packages/initia-registry/src/testnet/civitia/chain.ts index 0faefbc..55e73a0 100644 --- a/_packages/initia-registry/src/testnet/civitia/chain.ts +++ b/_packages/initia-registry/src/testnet/civitia/chain.ts @@ -3,7 +3,7 @@ const info: Chain = { $schema: "../../chain.schema.json", chain_name: "civitia", chain_id: "landlord-1", - website: "https://www.civitia.xyz/", + website: "https://civitia.org/", pretty_name: "Civitia", status: "live", network_type: "testnet", diff --git a/_packages/initia-registry/src/testnet/initia/chain.ts b/_packages/initia-registry/src/testnet/initia/chain.ts index fe36f06..fa5c945 100644 --- a/_packages/initia-registry/src/testnet/initia/chain.ts +++ b/_packages/initia-registry/src/testnet/initia/chain.ts @@ -68,7 +68,7 @@ const info: Chain = { ], grpc: [ { - address: "grpc://35.247.153.122:9090", + address: "grpc.initiation-1.initia.xyz:9090", provider: "Foundation", }, ], diff --git a/_packages/types/package.json b/_packages/types/package.json index b95e207..76502fb 100644 --- a/_packages/types/package.json +++ b/_packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@initia/initia-registry-types", - "version": "0.0.17", + "version": "0.0.18", "description": "The package provides TypeScript type definitions and Zod integration for initia-registry.", "types": "./dist/types/index.d.ts", "exports": { diff --git a/_packages/types/src/types/Chain.ts b/_packages/types/src/types/Chain.ts index 71df382..93e4ff7 100644 --- a/_packages/types/src/types/Chain.ts +++ b/_packages/types/src/types/Chain.ts @@ -20,11 +20,11 @@ export interface Chain { website?: string; update_link?: string; status?: "live" | "upcoming" | "killed"; - network_type?: "mainnet" | "testnet" | "devnet"; + network_type: "mainnet" | "testnet" | "devnet"; /** - * The default prefix for the human-readable part of addresses that identifies the coin type. Must be registered with SLIP-0173. E.g., 'cosmos' + * The default prefix for the human-readable part of addresses that identifies the coin type. */ - bech32_prefix: string; + bech32_prefix: "init"; /** * Used to override the bech32_prefix for specific uses. */ diff --git a/_packages/types/src/zods/Chain.ts b/_packages/types/src/zods/Chain.ts index b90a498..c0d08b5 100644 --- a/_packages/types/src/zods/Chain.ts +++ b/_packages/types/src/zods/Chain.ts @@ -13,11 +13,11 @@ export const ChainSchema = z website: z.string().url().optional(), update_link: z.string().url().optional(), status: z.enum(["live", "upcoming", "killed"]).optional(), - network_type: z.enum(["mainnet", "testnet", "devnet"]).optional(), + network_type: z.enum(["mainnet", "testnet", "devnet"]), bech32_prefix: z - .string() + .literal("init") .describe( - "The default prefix for the human-readable part of addresses that identifies the coin type. Must be registered with SLIP-0173. E.g., 'cosmos'" + "The default prefix for the human-readable part of addresses that identifies the coin type." ), bech32_config: z .object({ diff --git a/chain.schema.json b/chain.schema.json index 5ed218a..9b1c0e5 100644 --- a/chain.schema.json +++ b/chain.schema.json @@ -39,8 +39,8 @@ "enum": ["mainnet", "testnet", "devnet"] }, "bech32_prefix": { - "type": "string", - "description": "The default prefix for the human-readable part of addresses that identifies the coin type. Must be registered with SLIP-0173. E.g., 'cosmos'" + "const": "init", + "description": "The default prefix for the human-readable part of addresses that identifies the coin type." }, "bech32_config": { "type": "object",