Skip to content

Commit

Permalink
chore: export types
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Sep 4, 2023
1 parent 4770368 commit 17f55f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -619,7 +623,6 @@ export type {
Signature,
SignableMessage,
} from './types/misc.js'
export type { GetChain } from './types/chain.js'
export type {
AddEthereumChainParameter,
EIP1193EventMap,
Expand Down
8 changes: 4 additions & 4 deletions src/types/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?:
| {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 17f55f3

Please sign in to comment.