0x1.
Core Modules
vector.move
Provides operations on vectors (dynamic arrays). Key Functions:option.move
Provides optional value handling. Key Types:Option<T>- EitherSome(T)orNone
string.move
Provides UTF-8 string handling. Key Types:String- UTF-8 encoded string
ascii.move
Provides ASCII string handling. Key Types:String- ASCII-only string
type_name.move
Provides runtime type information. Key Types:TypeName- Runtime type representation
bcs.move
Provides Binary Canonical Serialization. Key Functions:fixed_point32.move
Provides fixed-point arithmetic with 32-bit precision. Key Types:FixedPoint32- Fixed-point number
hash.move
Provides cryptographic hash functions. Key Functions:Integer Modules
Provide utilities for different integer sizes:u8, u16, u32, u64, u128, u256
Boolean Module
bool.move
Common Patterns
Working with Vectors
Optional Values
String Building
Full Module List
The Move Standard Library at0x1 includes:
vector- Dynamic arraysoption- Optional valuesstring- UTF-8 stringsascii- ASCII stringstype_name- Runtime typesbcs- Serializationfixed_point32- Fixed-point mathhash- Hash functionsu8,u16,u32,u64,u128,u256- Integer utilitiesbool- Boolean utilitiesbit_vector- Bit vectorsuq32_32- Unsigned Q32.32 fixed-pointuq64_64- Unsigned Q64.64 fixed-pointdebug- Debugging utilitiesunit_test- Testing framework