UNPKG

viem

Version:

TypeScript Interface for Ethereum

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