Expand description
The compiler common library.
Enums§
- EVMVersion
- The EVM version.
Constants§
- BASE_
BINARY - The binary number base.
- BASE_
DECIMAL - The decimal number base.
- BASE_
HEXADECIMAL - The hexadecimal number base.
- BASE_
OCTAL - The octal number base.
- BIT_
LENGTH_ BLOCK_ NUMBER - Bit length of thre runimte block number type.
- BIT_
LENGTH_ BLOCK_ TIMESTAMP - Bit length of thre runimte block timestamp type.
- BIT_
LENGTH_ BOOLEAN - The
bool
type bit-length. - BIT_
LENGTH_ BYTE - The
u8
type or byte bit-length. - BIT_
LENGTH_ ETH_ ADDRESS - The ETH address (usually
u160
) bit-length. - BIT_
LENGTH_ VALUE - Bit length of the runtime value type.
- BIT_
LENGTH_ WORD - The VM word (usually
u256
ori256
) bit-length. - BIT_
LENGTH_ X32 - The x86 word type (usually
u32
) bit-length. - BIT_
LENGTH_ X64 - The x86_64 word type (usually
u64
) bit-length. - BYTE_
LENGTH_ BLOCK_ NUMBER - Byte length of the runtime block number type.
- BYTE_
LENGTH_ BLOCK_ TIMESTAMP - Byte length of the runtime block timestamp type.
- BYTE_
LENGTH_ BYTE - The byte-length.
- BYTE_
LENGTH_ ETH_ ADDRESS - The ETH address byte-length.
- BYTE_
LENGTH_ STACK_ ALIGN - EVM native stack alignment size in bytes
- BYTE_
LENGTH_ VALUE - Byte length of the runtime value type.
- BYTE_
LENGTH_ WORD - The word byte-length.
- BYTE_
LENGTH_ X32 - The x86 word byte-length.
- BYTE_
LENGTH_ X64 - The x86_64 word byte-length.
- EXIT_
CODE_ FAILURE - The common application failure exit code.
- EXIT_
CODE_ SUCCESS - The common application success exit code.
Statics§
- EXTENSION_
ABI - The ABI file extension.
- EXTENSION_
EVM - The EVM file extension.
- EXTENSION_
EVM_ BINARY - The EVM bytecode file extension.
- EXTENSION_
JSON - The JSON data file extension.
- EXTENSION_
LLL - The LLL IR file extension.
- EXTENSION_
LLVM_ BINARY - The LLVM bitcode file extension.
- EXTENSION_
LLVM_ SOURCE - The LLVM source code file extension.
- EXTENSION_
MANIFEST - The manifest file extension.
- EXTENSION_
POLKAVM_ ASSEMBLY - The PolkaVM assembly file extension.
- EXTENSION_
POLKAVM_ BINARY - The PolkaVM bytecode file extension.
- EXTENSION_
SHARED_ OBJECT - The ELF shared object file extension.
- EXTENSION_
SOLIDITY - The Solidity file extension.
- EXTENSION_
YUL - The Yul IR file extension.
Functions§
- deserialize_
from_ slice - Deserializes a
serde_json
object from slice with the recursion limit disabled. Must be used for all JSON I/O to avoid crashes due to the aforementioned limit. - deserialize_
from_ str - Deserializes a
serde_json
object from string with the recursion limit disabled. Must be used for all JSON I/O to avoid crashes due to the aforementioned limit.