From c2df695484704ff87fe2f37d7eaf2fc2185351f4 Mon Sep 17 00:00:00 2001 From: Marc-Aurele Besner <82244926+marc-aurele-besner@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:37:52 -0500 Subject: [PATCH] improve network types --- packages/auto-utils/src/types/network.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/auto-utils/src/types/network.ts b/packages/auto-utils/src/types/network.ts index f9bde31a..11509b57 100644 --- a/packages/auto-utils/src/types/network.ts +++ b/packages/auto-utils/src/types/network.ts @@ -1,5 +1,6 @@ // file: src/types/network.ts import type { ApiOptions } from '@polkadot/api/types' +import { NetworkId, NetworkName } from '../constants/network' import type { NetworkDomains } from './domain' import { Token } from './token' @@ -9,8 +10,8 @@ export type Explorer = { } export type Network = { - id: string - name: string + id: NetworkId + name: NetworkName rpcUrls: string[] explorer: Explorer[] domains: NetworkDomains[]