Options
Public
  • Public
  • Public/Protected
  • All
Menu

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

Index

Elementary types Interfaces

Container types Interfaces

Function types Interfaces

Special container types (debugger-only) Interfaces

User-defined elementary types Interfaces

User-defined elemntary types Interfaces

Other Interfaces

General categories Type aliases

Elementary types Type aliases

Container types Type aliases

Function types Type aliases

Special container types (debugger-only) Type aliases

User-defined elementary types Type aliases

Other Type aliases

Variables

Functions

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

Elementary types Type aliases

AddressType

Type of an address

BytesType

Type of a bytestring (static or dynamic)

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)

Function types Type aliases

FunctionExternalType

Type of an external function pointer

FunctionType

Type of a function pointer (internal or external)

Special container types (debugger-only) Type aliases

TypeType

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

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)

Other Type aliases

MagicVariableName

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

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