Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

decode

Fully qualified path: alexandria_encoding::sol_abi::decode

Traits

SolAbiDecodeTraitDecode trait meant to provide an interface similar to Solidity’s abi.decode function. It is meant to be used in a chain where the passed in offset is updated after each decode operation….

Impls

SolAbiDecodeU8Decode int types Integers are decoded by reading 32 bytes from the offset Bytes encoding is right-aligned/left-paddded Big-endian.
SolAbiDecodeU16
SolAbiDecodeU32
SolAbiDecodeU64
SolAbiDecodeU128
SolAbiDecodeU256
SolAbiDecodeBoolDecode other primitives Primitives are decoded by reading 32 bytes from the offset Bytes encoding is right-aligned/left-paddded Big-endian.
SolAbiDecodeFelt252
SolAbiDecodeBytes31
SolAbiDecodeBytesDecode byte types Bytes are decoded by reading 32 bytes from the offset Bytes encoding is left-aligned/right-paddded
SolAbiDecodeByteArray
SolAbiDecodeStarknetAddressDecode address types Addresses are decoded by reading 32 bytes from the offset Bytes encoding is right-aligned/left-paddded Big-endian.
SolAbiDecodeEthAddress