Options
All
  • Public
  • Public/Protected
  • All
Menu

Module types/mappings

Index

Type aliases

InputTypeMap

InputTypeMap: WithArrayTypes<MapToInput<TypeMap>>

An object type with most possible ABI types, and their respective TypeScript type. Note that some dynamic types, like <type>[<length>] and fixed<M>x<N> are not supported, and unknown is used instead.

Accepts multiple input types for certain ABI types, like strings, bytes, numbers.

MapToInput

MapToInput<T>: {[ K in keyof T]: T[K][0] }

Helper type that maps a tuple to the first element.

Type parameters

  • T: Record<string, [unknown, unknown]>

MapToOutput

MapToOutput<T>: {[ K in keyof T]: T[K][1] }

Helper type that maps a tuple to the second element.

Type parameters

  • T: Record<string, [unknown, unknown]>

OutputTypeMap

OutputTypeMap: WithArrayTypes<MapToOutput<TypeMap>>

An object type with most possible ABI types, and their respective TypeScript type. Note that some dynamic types, like <type>[<length>] and fixed<M>x<N> are not supported, and unknown is used instead.

Type

Type: keyof OutputTypeMap

TypeMapper

TypeMapper<I, T>: Mapper<T, I>

Type parameters

Generated using TypeDoc