resolc 1.1.0

Solidity frontend for the revive compiler
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Solidity to PolkaVM compiler constants.

use revive_common::BYTE_LENGTH_WORD;

/// The default executable name.
pub static DEFAULT_EXECUTABLE_NAME: &str = "resolc";

/// The `keccak256` scratch space offset.
pub const OFFSET_SCRATCH_SPACE: usize = 0;

/// The memory pointer offset.
pub const OFFSET_MEMORY_POINTER: usize = 2 * BYTE_LENGTH_WORD;

/// The empty slot offset.
pub const OFFSET_EMPTY_SLOT: usize = 3 * BYTE_LENGTH_WORD;

/// The non-reserved memory offset.
pub const OFFSET_NON_RESERVED: usize = 4 * BYTE_LENGTH_WORD;