CLType
Casper types, i.e. types which can be stored and manipulated by smart contracts. Provides a description of the underlying data type of a CLValue
.
Bool
PrimitiveI32
PrimitiveI64
PrimitiveU8
PrimitiveU32
PrimitiveU64
PrimitiveU128
Large unsigned integer typeU256
Large unsigned integer typeU512
Large unsigned integer typeUnit
PrimitiveString
PrimitiveKey
System typeURef
System typePublicKey
System typeOption
Option of aCLType
List
Variable-length list of a singleCLType
(comparable to aVec
)ByteArray
Fixed-length list of a singleCLType
(comparable to a Rust array)Result
Result
withOk
andErr
variants ofCLType
'sMap
Map with keys of a singleCLType
and values of a singleCLType
Tuple1
1-ary tuple of aCLType
Tuple2
2-ary tuple ofCLType
sTuple3
3-ary tuple ofCLType
sAny
Unspecified type
CLValue
A Casper value, i.e. a value which can be stored and manipulated by smart contracts. It holds the underlying data as a type-erased, serialized Vec<u8>
and also holds the CLType of the underlying data as a separate member. The parsed
field, representing the original value, is a convenience only available when a CLValue is encoded to JSON, and can always be set to null if preferred.
-
bytes
A Casper serialized representation of the underlying value. For more information, reference the Serialization Standard.