From 20049b67840873d7565b85996f4167dc9945a511 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Wed, 19 Jun 2024 18:24:50 +0200 Subject: [PATCH] Add traces type --- types/chainRegistry.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/types/chainRegistry.ts b/types/chainRegistry.ts index 831498a..37a6e4e 100644 --- a/types/chainRegistry.ts +++ b/types/chainRegistry.ts @@ -79,6 +79,19 @@ export interface RegistryAssetDenomUnit { readonly aliases?: readonly string[]; } +export interface AssetTrace { + readonly type?: "string"; + readonly chain?: { + readonly channel_id?: string; + readonly path?: string; + }; + readonly counterparty?: { + readonly chain_name?: string; + readonly base_denom?: string; + readonly channel_id?: string; + }; +} + /** * See https://github.com/cosmos/chain-registry/blob/1e9ecde770951cab90f0853a624411d79af90b83/provenance/assetlist.json#L5-L28 */ @@ -94,4 +107,5 @@ export interface RegistryAsset { readonly svg: string; }; readonly coingecko_id?: string; + readonly traces?: readonly AssetTrace[]; }