Modules

This module implements everything related to code generation/expansion from a fuel/sway ABI.

This module implements basic rustfmt code formatting.

Structs

Enums

Traits

Output type possible to deserialize from Contract ABI

This trait is similar to Detokenize, but it is used inside the abigen generated code in order to get the parameter types (ParamType) and instantiate a new struct/enum from tokens. This is used in the generated code in custom_types_gen.rs, with the exception of the Sway-native types Address, ContractId, and AssetId, that are implemented right here, without code generation.

Simplified output type for single value.

Functions

Converts a u8 to a right aligned array of 8 bytes.

Converts a u16 to a right aligned array of 8 bytes.

Converts a u32 to a right aligned array of 8 bytes.

Type Definitions