UNPKG

opstack-kit-chains

Version:
10 lines (6 loc) 325 B
import type { Address } from 'abitype' import { version } from './version.js' export type ErrorType<name extends string = 'Error'> = Error & { name: name } export const getContractAddress = (address: Address) => address export const getUrl = (url: string) => url export const getVersion = () => `viem@${version}`