Hierarchy

ParamType

Constructors

constructor

new ParamType(type: TokenTypeEnum, subtype?: ParamType | undefined, length?: number, indexed?: boolean): ParamType

Defined in spec/paramType/paramType.ts:13

Parameters:

Name Type Default value
type TokenTypeEnum -
Default value subtype ParamType \ undefined undefined
Default value length number 0
Default value indexed boolean false

Returns: ParamType


Accessors

indexed

get indexed(): undefined | false | true

Defined in spec/paramType/paramType.ts:49

Returns: undefined | false | true


length

get length(): number

Defined in spec/paramType/paramType.ts:45

Returns: number


subtype

get subtype(): undefined | ParamType

Defined in spec/paramType/paramType.ts:41

Returns: undefined | ParamType


type

get type(): "string" | "address" | "bool" | "bytes" | "bytes1" | "bytes2" | "bytes3" | "bytes4" | "bytes5" | "bytes6" | "bytes7" | "bytes8" | "bytes9" | "bytes10" | "bytes11" | "bytes12" | "bytes13" | "bytes14" | "bytes15" | "bytes16" | "bytes17" | "bytes18" | "bytes19" | "bytes20" | "bytes21" | "bytes22" | "bytes23" | "bytes24" | "bytes25" | "bytes26" | "bytes27" | "bytes28" | "bytes29" | "bytes30" | "bytes31" | "bytes32" | "int" | "int8" | "int16" | "int32" | "int64" | "int128" | "int256" | "uint" | "uint8" | "uint16" | "uint32" | "uint64" | "uint128" | "uint256" | "fixedBytes" | "fixedArray" | "array"

Defined in spec/paramType/paramType.ts:37

Returns: "string" | "address" | "bool" | "bytes" | "bytes1" | "bytes2" | "bytes3" | "bytes4" | "bytes5" | "bytes6" | "bytes7" | "bytes8" | "bytes9" | "bytes10" | "bytes11" | "bytes12" | "bytes13" | "bytes14" | "bytes15" | "bytes16" | "bytes17" | "bytes18" | "bytes19" | "bytes20" | "bytes21" | "bytes22" | "bytes23" | "bytes24" | "bytes25" | "bytes26" | "bytes27" | "bytes28" | "bytes29" | "bytes30" | "bytes31" | "bytes32" | "int" | "int8" | "int16" | "int32" | "int64" | "int128" | "int256" | "uint" | "uint8" | "uint16" | "uint32" | "uint64" | "uint128" | "uint256" | "fixedBytes" | "fixedArray" | "array"


Methods

<Static> validateType

validateType(type: TokenTypeEnum): boolean

Defined in spec/paramType/paramType.ts:29

Parameters:

Name Type
type TokenTypeEnum

Returns: boolean


results matching ""

    No results matching ""