You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'd like to support the following primitive types:
Unsigned integers of variable width: u8, u16, u32, u64. Note that the FuelVM only has unsigned integer support for now, as signed integers are of dubious value in the context of smart contracts. Also note that the FuelVM is big-endian.
bool: Standard Boolean.
byte: A single byte. While we could use u8 like Rust, having a distinct type that forbids certain operations (e.g. arithmetic) without explicit casting increases type safety.
bytes32: A 32-byte hash digest.
address: A (for now) 32-byte address. This should be a parameter, since we may opt for shorter addresses in the future.
Additionally:
Arrays and slices (like Rust's).
Tuples (like Rust's).
Sum types (like Rust's).
We expect blockchain applications to make heavy use of byte manipulation, and so we should promote these types to primitive types rather than having users go through a standard library for them.
The text was updated successfully, but these errors were encountered:
We'd like to support the following primitive types:
u8
,u16
,u32
,u64
. Note that the FuelVM only has unsigned integer support for now, as signed integers are of dubious value in the context of smart contracts. Also note that the FuelVM is big-endian.bool
: Standard Boolean.byte
: A single byte. While we could useu8
like Rust, having a distinct type that forbids certain operations (e.g. arithmetic) without explicit casting increases type safety.bytes32
: A 32-byte hash digest.address
: A (for now) 32-byte address. This should be a parameter, since we may opt for shorter addresses in the future.Additionally:
We expect blockchain applications to make heavy use of byte manipulation, and so we should promote these types to primitive types rather than having users go through a standard library for them.
The text was updated successfully, but these errors were encountered: