Skip to main content

Built and signed on GitHub Actions

Strict TypeScript types for Ethereum ABIs

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
52%
Published
2 months ago (1.0.6)
T
AbiError

ABI "error" type

T
AbiEvent

ABI "event" type

T
AbiEventParameter
No documentation available
T
AbiInternalType
No documentation available
T
AbiItemType

"type" name for Abi items.

T
AbiParameter
No documentation available
T
AbiParameterKind

Kind of AbiParameter

T
AbiParametersToPrimitiveTypes

Converts array of AbiParameter to corresponding TypeScript primitive types.

T
AbiParameterToPrimitiveType

Converts AbiParameter to corresponding TypeScript primitive type.

T
T
AbiStateMutability

State mutability for AbiFunction

T
AbiType
No documentation available
T
AbiTypeToPrimitiveType

Converts AbiType to corresponding TypeScript primitive type.

T
Address
No documentation available
c
BaseError
No documentation available
c
CircularReferenceError
No documentation available
T
DefaultRegister
No documentation available
T
ExtractAbiError

Extracts AbiError with name from Abi.

T
ExtractAbiErrorNames

Extracts all AbiError names from Abi.

T
ExtractAbiErrors

Extracts all AbiError types from Abi.

T
ExtractAbiEvent

Extracts AbiEvent with name from Abi.

T
ExtractAbiEventNames

Extracts all AbiEvent names from Abi.

T
ExtractAbiEvents

Extracts all AbiEvent types from Abi.

T
ExtractAbiFunction

Extracts AbiFunction with name from Abi.

T
ExtractAbiFunctionNames

Extracts all AbiFunction names from Abi.

T
ExtractAbiFunctions

Extracts all AbiFunction types from Abi.

T
FormatAbi

Parses JSON ABI into human-readable ABI

f
formatAbi

Parses JSON ABI into human-readable ABI

T
FormatAbiItem

Formats ABI item (e.g. error, event, function) into human-readable ABI item

f
formatAbiItem

Formats ABI item (e.g. error, event, function) into human-readable ABI item

T
FormatAbiParameter

Formats AbiParameter to human-readable ABI parameter.

f
formatAbiParameter

Formats AbiParameter to human-readable ABI parameter.

T
FormatAbiParameters

Formats AbiParameters to human-readable ABI parameter.

f
formatAbiParameters

Formats AbiParameters to human-readable ABI parameters.

c
InvalidAbiItemError
No documentation available
c
InvalidAbiParameterError
No documentation available
c
InvalidAbiParametersError
No documentation available
c
InvalidAbiTypeParameterError
No documentation available
c
InvalidFunctionModifierError
No documentation available
c
InvalidModifierError
No documentation available
c
InvalidParameterError
No documentation available
c
InvalidParenthesisError
No documentation available
c
InvalidSignatureError
No documentation available
c
InvalidStructSignatureError
No documentation available
T
IsAbi

Checks if type is Abi.

T
IsTypedData

Checks if type is TypedData.

T
Narrow

Infers embedded primitive type of any type

f
narrow

Infers embedded primitive type of any typeSame as as const but without setting the object as readonly and without needing the user to use it.

T
ParseAbi

Parses human-readable ABI into JSON Abi

f
parseAbi

Parses human-readable ABI into JSON Abi

T
ParseAbiItem

Parses human-readable ABI item (e.g. error, event, function) into Abi item

f
parseAbiItem

Parses human-readable ABI item (e.g. error, event, function) into Abi item

T
ParseAbiParameter

Parses human-readable ABI parameter into AbiParameter

f
parseAbiParameter

Parses human-readable ABI parameter into AbiParameter

T
ParseAbiParameters

Parses human-readable ABI parameters into AbiParameters

f
parseAbiParameters

Parses human-readable ABI parameters into AbiParameters

I
Register
No documentation available
T
ResolvedRegister
No documentation available
T
SolidityAddress
No documentation available
T
SolidityArray
No documentation available
T
SolidityArrayWithoutTuple
No documentation available
T
SolidityArrayWithTuple
No documentation available
T
SolidityBool
No documentation available
T
SolidityBytes
No documentation available
T
SolidityFixedArrayRange
No documentation available
T
SolidityFixedArraySizeLookup
No documentation available
T
SolidityFunction
No documentation available
T
SolidityInt
No documentation available
c
SolidityProtectedKeywordError
No documentation available
T
SolidityString
No documentation available
T
SolidityTuple
No documentation available
T
TypedData

EIP-712 Typed Data Specification

T
TypedDataDomain
No documentation available
T
TypedDataParameter
No documentation available
T
TypedDataToPrimitiveTypes

Converts typedData to corresponding TypeScript primitive types.

T
TypedDataType
No documentation available
c
UnknownSignatureError
No documentation available
c
UnknownSolidityTypeError
No documentation available
c
UnknownTypeError
No documentation available
v
customSolidityErrorsAbi
No documentation available
v
customSolidityErrorsHumanReadableAbi
No documentation available
v
eip165HumanReadableAbi
No documentation available
v
nestedTupleArrayAbi
No documentation available
v
nestedTupleArrayHumanReadableAbi
No documentation available
v
Abi

Zod Schema for Contract ABI Specification

v
AbiConstructor
No documentation available
v
AbiError
No documentation available
v
AbiEvent
No documentation available
v
AbiEventParameter
No documentation available
v
AbiFallback
No documentation available
v
AbiFunction
No documentation available
v
AbiItemType
No documentation available
v
AbiParameter
No documentation available
v
AbiReceive
No documentation available
v
AbiStateMutability
No documentation available
v
Address
No documentation available
v
SolidityAddress
No documentation available
v
SolidityArray
No documentation available
v
SolidityArrayWithoutTuple
No documentation available
v
SolidityArrayWithTuple
No documentation available
v
SolidityBool
No documentation available
v
SolidityBytes
No documentation available
v
SolidityFunction
No documentation available
v
SolidityInt
No documentation available
v
SolidityString
No documentation available
v
SolidityTuple
No documentation available
v
TypedData
No documentation available
v
TypedDataDomain
No documentation available
v
TypedDataParameter
No documentation available
v
TypedDataType
No documentation available