From 0fe8f1287cb9d0ca9ca8f8df8c6ac88dcdcc2381 Mon Sep 17 00:00:00 2001 From: Griko Nibras Date: Thu, 14 Dec 2023 22:20:23 +0700 Subject: [PATCH] feat: update key algos https://github.com/cosmos/chain-registry/pull/3419/files#diff-9b02707c86085ca9490c443fad89463dcf8e04fcd4043a6a638f1cc95823b69eR104 --- src/chain.ts | 2 +- src/schemas/chain.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chain.ts b/src/chain.ts index 28db215..dd98ebc 100644 --- a/src/chain.ts +++ b/src/chain.ts @@ -6,7 +6,7 @@ import type { ImageType, Status } from "./shared"; export type NetworkType = "mainnet" | "testnet" | "devnet"; -export type KeyAlgos = "secp256k1" | "ethsecp256k1" | "ed25519" | "sr25519"; +export type KeyAlgos = "secp256k1" | "ethsecp256k1" | "ed25519" | "sr25519" | "bn254"; export type ConsensusType = "tendermint" | "cometbft" | "sei-tendermint"; diff --git a/src/schemas/chain.ts b/src/schemas/chain.ts index 6c5b14e..d35cf1f 100644 --- a/src/schemas/chain.ts +++ b/src/schemas/chain.ts @@ -14,6 +14,7 @@ export const keyAlgosSchema = /* @__PURE__ */ z.union([ z.literal("ethsecp256k1"), z.literal("ed25519"), z.literal("sr25519"), + z.literal("bn254"), ]); export const consensusTypeSchema = /* @__PURE__ */ z.union([