value types and reference types don't need to be referred to as such in the UI.
We might want to support a backup UI that allows inputting encoded constructor args in cases where a constructor argument is a struct
, as that makes the UI more complicated.
-
uint
- default is uint256, and can be specified in intervals of 8 like
uint8
,uint16
, etc. - uint256 matches regex
^\d{0,79}$
- default is uint256, and can be specified in intervals of 8 like
-
int
- default is int256, and can be specified in intervals of 8 like
int8
,int16
, etc. - int256 matches regex
^-?\d{0,78}$
- default is int256, and can be specified in intervals of 8 like
-
address
- matches regex
^(0x)?[a-fA-F0-9]{40}$
- matches regex
-
bytes
- matches regex
^(0x)?[a-fA-F0-9]*$
- matches regex
-
boolean
- only
true
orfalse
- only
these types are combinations or arrays of value types: please see this article for more information