Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Container types Type aliases

ArrayType

Type of an array

StructType

Type of a struct

Structs may be local (defined in a contract) or global (defined outside of any contract); the latter will be introduced in Solidity 0.6.x

Elementary types Type aliases

AddressType

Type of an address

BytesType

Type of a bytestring (static or dynamic)

Function types Type aliases

FunctionExternalType

Type of an external function pointer

FunctionType

Type of a function pointer (internal or external)

General categories Type aliases

ContractDefinedType

ContractDefinedType: StructTypeLocal | EnumTypeLocal

Types defined inside contracts

ElementaryType

Type of an elementary value

ReferenceType

Reference types

Type

Object representing a type

UserDefinedType

User-defined types

Other Type aliases

MagicVariableName

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

Other user-defined types Type aliases

ContractType

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).

EnumType

Type of an enum

Enums may be local (defined in a contract) or global (defined outside of any contract); the latter will be introduced in Solidity 0.6.x

Variables

Const debug

debug: IDebugger = debugModule("codec:format:types")

Functions

fullType

isContractDefinedType

  • isContractDefinedType(anyType: Type): boolean

isReferenceType

  • isReferenceType(anyType: Type): boolean

isUserDefinedType

  • isUserDefinedType(anyType: Type): boolean

specifyLocation

typeString

  • typeString(dataType: Type): string

typeStringWithoutLocation

  • typeStringWithoutLocation(dataType: Type): string

Generated using TypeDoc