From dfe115894182c15637fec3e7bea7fe3e2222d4f9 Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Fri, 9 Aug 2024 00:35:51 +0800 Subject: [PATCH] chore: add explorer block type --- layer/types/explorer.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layer/types/explorer.ts b/layer/types/explorer.ts index b48d6ed..992fb4f 100644 --- a/layer/types/explorer.ts +++ b/layer/types/explorer.ts @@ -1,4 +1,4 @@ -import { Coin, ExplorerTransaction } from '@injectivelabs/sdk-ts' +import { Coin, BlockWithTxs, ExplorerTransaction } from '@injectivelabs/sdk-ts' export interface UiExplorerTransaction extends ExplorerTransaction { types: string[] @@ -6,6 +6,10 @@ export interface UiExplorerTransaction extends ExplorerTransaction { coinSpent: Coin[] } +export interface UiExplorerBlockWithTxs extends Omit { + txs: UiExplorerTransaction[] +} + export type SharedEventAttribute = { key: string value: string