UNPKG

viem

Version:

TypeScript Interface for Ethereum

11 lines (9 loc) 252 B
import type { Chain, ChainContract } from '../../types/chain.js' export type TargetChain< chain extends Chain = Chain, contractName extends string = string, > = { contracts: { [_ in contractName]: { [_ in chain['id']]: ChainContract } } }