From 17f55f33d89127f44a69639dfeedb57d671f9418 Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Mon, 4 Sep 2023 16:39:50 -0400 Subject: [PATCH] chore: export types --- src/index.ts | 5 ++++- src/types/chain.ts | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 6f55253a44..182767d394 100644 --- a/src/index.ts +++ b/src/index.ts @@ -268,9 +268,13 @@ export type { } from './actions/wallet/writeContract.js' export type { Chain, + ChainConfig, ChainContract, ChainFees, + ChainFeesFnParameters, ChainFormatter, + ChainEstimateFeesPerGasFnParameters, + GetChain, /** @deprecated use `ChainFormatter` instead. */ ChainFormatter as Formatter, ChainFormatters, @@ -619,7 +623,6 @@ export type { Signature, SignableMessage, } from './types/misc.js' -export type { GetChain } from './types/chain.js' export type { AddEthereumChainParameter, EIP1193EventMap, diff --git a/src/types/chain.ts b/src/types/chain.ts index c4fbd77042..35878568e5 100644 --- a/src/types/chain.ts +++ b/src/types/chain.ts @@ -21,12 +21,12 @@ export type Chain< ///////////////////////////////////////////////////////////////////// // Constants -export type ChainBlockExplorer = { +type ChainBlockExplorer = { name: string url: string } -export type ChainConstants = { +type ChainConstants = { /** Collection of block explorers */ blockExplorers?: | { @@ -80,14 +80,14 @@ export type ChainContract = { blockCreated?: number | undefined } -export type ChainNativeCurrency = { +type ChainNativeCurrency = { name: string /** 2-6 characters long */ symbol: string decimals: number } -export type ChainRpcUrls = { +type ChainRpcUrls = { http: readonly string[] webSocket?: readonly string[] | undefined }