QurasVM provides the following basic types:
ByteArray
Integer
Boolean
Array
Struct
Map
Interface
The basic types that can be directly generated from QSB code are only:
ByteArray
Array
Struct
Map
The basic types of C# are:
Int8
int16
int32
int64
uint8
uint16
uint32
uint64
float
double
Boolean
char
string
Because of the differences in the basic types of virtual machines, the basic types of C# are not fully supported, and there are some special situations in use.
When you deploy smart contract, you have to set parameter types and return type. QurasVM provides the following types :
Boolean(0x01)
Integer(0x02)
Hash160(0x03)
Hash256(0x04)
ByteArray(0x05)
PublicKey(0x06)
String(0x07)
Array(0x10)