Skip to content

Types

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

Abi

Type matching the Contract ABI Specification

import { Abi } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 20 - Cannot find module 'abitype' or its corresponding type declarations.

AbiConstructor

ABI Constructor type

import { AbiConstructor } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 31 - Cannot find module 'abitype' or its corresponding type declarations.

AbiError

ABI Error type

import { AbiError } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 25 - Cannot find module 'abitype' or its corresponding type declarations.

AbiEvent

ABI Event type

import { AbiEvent } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 25 - Cannot find module 'abitype' or its corresponding type declarations.

AbiFallback

ABI Fallback type

import { AbiFallback } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 28 - Cannot find module 'abitype' or its corresponding type declarations.

AbiFunction

ABI Function type

import { AbiFunction } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 28 - Cannot find module 'abitype' or its corresponding type declarations.

AbiInternalType

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

import { AbiInternalType } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 32 - Cannot find module 'abitype' or its corresponding type declarations.

AbiItemType

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

import { AbiInternalType } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 32 - Cannot find module 'abitype' or its corresponding type declarations.

AbiParameter

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

import { AbiParameter } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 29 - Cannot find module 'abitype' or its corresponding type declarations.

AbiEventParameter

inputs for ABI events

import { AbiEventParameter } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 34 - Cannot find module 'abitype' or its corresponding type declarations.

AbiParameterKind

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

import { AbiParameterKind } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 33 - Cannot find module 'abitype' or its corresponding type declarations.

AbiReceive

ABI Receive type

import { AbiReceive } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 27 - Cannot find module 'abitype' or its corresponding type declarations.

AbiStateMutability

ABI Function behavior

import { AbiStateMutability } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 35 - Cannot find module 'abitype' or its corresponding type declarations.

AbiType

ABI canonical types

import { AbiType } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 24 - Cannot find module 'abitype' or its corresponding type declarations.

Solidity types

Solidity types as template strings

import {
  SolidityAddress,
  SolidityArray,
  SolidityBool,
  SolidityBytes,
  SolidityFunction,
  SolidityInt,
  SolidityString,
  SolidityTuple,
} from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 155 - Cannot find module 'abitype' or its corresponding type declarations.

TypedData

EIP-712 Typed Data Specification

import { TypedData } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 26 - Cannot find module 'abitype' or its corresponding type declarations.

TypedDataDomain

EIP-712 Domain

import { TypedDataDomain } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 32 - Cannot find module 'abitype' or its corresponding type declarations.

TypedDataParameter

Entry in TypedData type items

import { TypedDataParameter } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 35 - Cannot find module 'abitype' or its corresponding type declarations.

TypedDataType

Subset of AbiType that excludes tuple and function

import { TypedDataType } from 'abitype'
## Errors were thrown in the sample, but not included in an errors tag These errors were not marked as being expected: 2307. Expected: // @errors: 2307 Compiler Errors: index.ts [2307] 30 - Cannot find module 'abitype' or its corresponding type declarations.