UNPKG

@xuxinlai2002/pns-js

Version:

A NPM package in Typescript for .Play Name Service

10 lines (6 loc) 316 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}`