Options
All
  • Public
  • Public/Protected
  • All
Menu

Contains the types for type objects, and some functions for working with them.

Index

General categories Type Aliases

Types that can go in the ABI

Types that can underlie a user-defined value type

Types defined inside contracts

Type of an elementary value

Reference types

Object representing a type

User-defined types

Elementary types Type Aliases

Type of an address

Type of a bytestring (static or dynamic)

Container types Type Aliases

Type of an array

Type of a struct

Structs may be local (defined in a contract) or global (defined outside of any contract)

Function types Type Aliases

Type of an external function pointer

Type of a function pointer (internal or external)

Special container types (debugger-only) Type Aliases

Type of a type! This is currently only used for contract types and enum types, but may expand in the future.

User-defined elementary types Type Aliases

Type of a contract; used not just for actual values but wherever a contract type is needed

Contract types may be native (has Solidity info) or foreign (lacking Solidity info).

Type of an enum

Enums may be local (defined in a contract) or global (defined outside of any contract)

Type of a user-defined value type

These may be local (defined in a contract) or global (defined outside of any contract)

Other Type Aliases

MagicVariableName: "message" | "block" | "transaction"

Functions

  • typeString(dataType: Type): string
  • typeStringWithoutLocation(dataType: Type): string

Generated using TypeDoc