Skip to content

Types

Types covering the Contract ABI and EIP-712 Typed Data Specifications.

Abi

Type matching the Contract ABI Specification

ts
ts
import { Abi } from 'abitype'
ts
import { Abi } from 'abitype'

AbiConstructor

ABI Constructor type

ts
ts
import { AbiConstructor } from 'abitype'
ts
import { AbiConstructor } from 'abitype'

AbiError

ABI Error type

ts
ts
import { AbiError } from 'abitype'
ts
import { AbiError } from 'abitype'

AbiEvent

ABI Event type

ts
ts
import { AbiEvent } from 'abitype'
ts
import { AbiEvent } from 'abitype'

AbiFallback

ABI Fallback type

ts
ts
import { AbiFallback } from 'abitype'
ts
import { AbiFallback } from 'abitype'

AbiFunction

ABI Function type

ts
ts
import { AbiFunction } from 'abitype'
ts
import { AbiFunction } from 'abitype'

AbiInternalType

Representation used by Solidity compiler (e.g. 'string', 'int256', 'struct Foo')

ts
ts
import { AbiInternalType } from 'abitype'
ts
import { AbiInternalType } from 'abitype'

AbiItemType

"type" name for Abi items (e.g. 'type': 'function' for AbiFunction)

ts
ts
import { AbiInternalType } from 'abitype'
ts
import { AbiInternalType } from 'abitype'

AbiParameter

inputs and ouputs item for ABI functions, errors, and constructors

ts
ts
import { AbiParameter } from 'abitype'
ts
import { AbiParameter } from 'abitype'

AbiEventParameter

inputs for ABI events

ts
ts
import { AbiEventParameter } from 'abitype'
ts
import { AbiEventParameter } from 'abitype'

AbiParameterKind

Kind of ABI parameter: 'inputs' | 'outputs'

ts
ts
import { AbiParameterKind } from 'abitype'
ts
import { AbiParameterKind } from 'abitype'

AbiReceive

ABI Receive type

ts
ts
import { AbiReceive } from 'abitype'
ts
import { AbiReceive } from 'abitype'

AbiStateMutability

ABI Function behavior

ts
ts
import { AbiStateMutability } from 'abitype'
ts
import { AbiStateMutability } from 'abitype'

AbiType

ABI canonical types

ts
ts
import { AbiType } from 'abitype'
ts
import { AbiType } from 'abitype'

Solidity types

Solidity types as template strings

ts
ts
import {
SolidityAddress,
SolidityArray,
SolidityBool,
SolidityBytes,
SolidityFunction,
SolidityInt,
SolidityString,
SolidityTuple,
} from 'abitype'
ts
import {
SolidityAddress,
SolidityArray,
SolidityBool,
SolidityBytes,
SolidityFunction,
SolidityInt,
SolidityString,
SolidityTuple,
} from 'abitype'

TypedData

EIP-712 Typed Data Specification

ts
ts
import { TypedData } from 'abitype'
ts
import { TypedData } from 'abitype'

TypedDataDomain

EIP-712 Domain

ts
ts
import { TypedDataDomain } from 'abitype'
ts
import { TypedDataDomain } from 'abitype'

TypedDataParameter

Entry in TypedData type items

ts
ts
import { TypedDataParameter } from 'abitype'
ts
import { TypedDataParameter } from 'abitype'

TypedDataType

Subset of AbiType that excludes tuple and function

ts
ts
import { TypedDataType } from 'abitype'
ts
import { TypedDataType } from 'abitype'

Released under the MIT License.