Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

Repository files navigation

Typed Contracts

Typed Contracts is a TypeScript type library, to create contract types based on ABI data, without any code generation.

Supports: ethers6

Install

jsr.io/@nomadshiba/typed-contracts

Usage

import { TypedContract } from "typed-contracts/types/ethers6"
import { Contract } from "ethers"

export type ERC20Contract = TypedContract<typeof ERC20_abi> & {}
export const ERC20_connect = (address: string, runner: ContractRunner) =>
	new Contract(address, ERC20_abi, runner) as ERC20Contract

export const ERC20_abi = [
	// ...
] as const

License

LGPL v2.1

Releases

Used by

Contributors

Languages