Crate revive_common

Source
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 or i256) 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.