From 33ed6b4af27aba39a0138bcdbb1e7336985fe033 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Mon, 20 Nov 2023 14:24:34 +0100 Subject: [PATCH] Add and tweak Github registry types --- types/chainRegistry.ts | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/types/chainRegistry.ts b/types/chainRegistry.ts index f95acb4..14a6ef4 100644 --- a/types/chainRegistry.ts +++ b/types/chainRegistry.ts @@ -15,6 +15,19 @@ export interface GithubChainRegistryItem { }; } +export interface GithubTreeItem { + readonly path: string; + readonly mode: string; + readonly type: string; + readonly sha: string; + readonly size: number; + readonly url: string; +} + +export interface GithubTreesResponse { + readonly tree: readonly GithubTreeItem[]; +} + export interface RegistryChainApisRpc { readonly address: string; readonly provider: string; @@ -43,12 +56,17 @@ export interface RegistryChainFees { } export interface RegistryChain { - readonly apis: RegistryChainApis; + readonly apis?: RegistryChainApis; readonly bech32_prefix: string; readonly chain_id: string; + readonly chain_name: string; readonly explorers: readonly RegistryChainExplorer[]; - readonly fees: RegistryChainFees; + readonly fees?: RegistryChainFees; readonly pretty_name: string; + readonly logo_URIs?: { + readonly png?: string; + readonly svg?: string; + }; } /**