revive-common 1.2.0

Shared constants of the revive compiler
Documentation
//! The common sizes in bytes.

/// The byte-length.
pub const BYTE_LENGTH_BYTE: usize = 1;

/// The x86 word byte-length.
pub const BYTE_LENGTH_X32: usize = 4;

/// The x86_64 word byte-length.
pub const BYTE_LENGTH_X64: usize = 8;

/// EVM native stack alignment size in bytes
pub const BYTE_LENGTH_STACK_ALIGN: usize = 32;

/// The ETH address byte-length.
pub const BYTE_LENGTH_ETH_ADDRESS: usize = 20;

/// The word byte-length.
pub const BYTE_LENGTH_WORD: usize = 32;

/// Byte length of the runtime value type.
pub const BYTE_LENGTH_VALUE: usize = 32;

/// Byte length of the runtime block number type.
pub const BYTE_LENGTH_BLOCK_NUMBER: usize = 4;

/// Byte length of the runtime block timestamp type.
pub const BYTE_LENGTH_BLOCK_TIMESTAMP: usize = 4;