Crate era_compiler_common

Source
Expand description

The compiler common library.

Structs§

ContractName
The contract name.

Enums§

CodeSegment
The contract code segment.
EVMVersion
The EVM version.
Hash
The hash.
HashType
The hash type.
Target
The LLVM target.

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_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_FIELD
The field (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_BYTE
The byte-length.
BYTE_LENGTH_ETH_ADDRESS
The ETH address byte-length.
BYTE_LENGTH_FIELD
The field byte-length.
BYTE_LENGTH_X32
The x86 word byte-length.
BYTE_LENGTH_X64
The x86_64 word byte-length.
ERAVM_ADDRESS_ACTIVE_PTR_ADD
The corresponding simulation predefined address.
ERAVM_ADDRESS_ACTIVE_PTR_DATA_COPY
The corresponding simulation predefined address.
ERAVM_ADDRESS_ACTIVE_PTR_DATA_LOAD
The corresponding simulation predefined address.
ERAVM_ADDRESS_ACTIVE_PTR_DATA_SIZE
The corresponding simulation predefined address.
ERAVM_ADDRESS_ACTIVE_PTR_LOAD_CALLDATA
The corresponding simulation predefined address.
ERAVM_ADDRESS_ACTIVE_PTR_LOAD_DECOMMIT
The corresponding simulation predefined address.
ERAVM_ADDRESS_ACTIVE_PTR_LOAD_RETURN_DATA
The corresponding simulation predefined address.
ERAVM_ADDRESS_ACTIVE_PTR_PACK
The corresponding simulation predefined address.
ERAVM_ADDRESS_ACTIVE_PTR_SHRINK
The corresponding simulation predefined address.
ERAVM_ADDRESS_ACTIVE_PTR_SWAP
The corresponding simulation predefined address.
ERAVM_ADDRESS_CODE_ADDRESS
The corresponding simulation predefined address.
ERAVM_ADDRESS_CONST_ARRAY_DECLARE
The corresponding simulation predefined address.
ERAVM_ADDRESS_CONST_ARRAY_FINALIZE
The corresponding simulation predefined address.
ERAVM_ADDRESS_CONST_ARRAY_GET
The corresponding simulation predefined address.
ERAVM_ADDRESS_CONST_ARRAY_SET
The corresponding simulation predefined address.
ERAVM_ADDRESS_DECOMMIT
The corresponding simulation predefined address.
ERAVM_ADDRESS_EVENT_INITIALIZE
The corresponding simulation predefined address.
ERAVM_ADDRESS_EVENT_WRITE
The corresponding simulation predefined address.
ERAVM_ADDRESS_GET_GLOBAL_CALL_FLAGS
The corresponding simulation predefined address.
ERAVM_ADDRESS_GET_GLOBAL_EXTRA_ABI_DATA
The corresponding simulation predefined address.
ERAVM_ADDRESS_GET_GLOBAL_PTR_CALLDATA
The corresponding simulation predefined address.
ERAVM_ADDRESS_GET_GLOBAL_PTR_RETURN_DATA
The corresponding simulation predefined address.
ERAVM_ADDRESS_INCREMENT_TX_COUNTER
The corresponding simulation predefined address.
ERAVM_ADDRESS_META
The corresponding simulation predefined address.
ERAVM_ADDRESS_MIMIC_CALL
The corresponding simulation predefined address.
ERAVM_ADDRESS_MIMIC_CALL_BYREF
The corresponding simulation predefined address.
ERAVM_ADDRESS_MULTIPLICATION_HIGH_REGISTER
The corresponding simulation predefined address.
ERAVM_ADDRESS_PRECOMPILE
The corresponding simulation predefined address.
ERAVM_ADDRESS_RAW_FAR_CALL
The corresponding simulation predefined address.
ERAVM_ADDRESS_RAW_FAR_CALL_BYREF
The corresponding simulation predefined address.
ERAVM_ADDRESS_RETURN_FORWARD
The corresponding simulation predefined address.
ERAVM_ADDRESS_REVERT_FORWARD
The corresponding simulation predefined address.
ERAVM_ADDRESS_SET_CONTEXT_VALUE_CALL
The corresponding simulation predefined address.
ERAVM_ADDRESS_SET_PUBDATA_PRICE
The corresponding simulation predefined address.
ERAVM_ADDRESS_SYSTEM_CALL
The corresponding simulation predefined address.
ERAVM_ADDRESS_SYSTEM_CALL_BYREF
The corresponding simulation predefined address.
ERAVM_ADDRESS_SYSTEM_MIMIC_CALL
The corresponding simulation predefined address.
ERAVM_ADDRESS_SYSTEM_MIMIC_CALL_BYREF
The corresponding simulation predefined address.
ERAVM_ADDRESS_TO_L1
The corresponding simulation predefined address.
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_ERAVM_ASSEMBLY
The EraVM assembly file extension.
EXTENSION_ERAVM_BINARY
The EraVM bytecode file extension.
EXTENSION_ETHIR
The Ethereal IR file extension.
EXTENSION_EVM
The EVM file extension.
EXTENSION_EVMLA
The EVM legacy assembly IR 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_SOLIDITY
The Solidity file extension.
EXTENSION_VYPER
The Vyper file extension.
EXTENSION_YUL
The Yul IR file extension.

Functions§

deserialize
Runs the generic deserializer.
deserialize_from_reader
Deserializes a serde_json object from reader with the recursion limit disabled.
deserialize_from_slice
Deserializes a serde_json object from slice with the recursion limit disabled.
deserialize_from_str
Deserializes a serde_json object from string with the recursion limit disabled.