mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-08 00:33:06 +00:00
42 lines
848 B
Rust
42 lines
848 B
Rust
use ethereum_types::U256;
|
|
|
|
#[derive(Debug)]
|
|
pub enum ProgramError {
|
|
OutOfGas,
|
|
InvalidOpcode,
|
|
StackUnderflow,
|
|
InvalidRlp,
|
|
InvalidJumpDestination,
|
|
InvalidJumpiDestination,
|
|
StackOverflow,
|
|
KernelPanic,
|
|
MemoryError(MemoryError),
|
|
GasLimitError,
|
|
InterpreterError,
|
|
IntegerTooLarge,
|
|
ProverInputError(ProverInputError),
|
|
UnknownContractCode,
|
|
}
|
|
|
|
#[allow(clippy::enum_variant_names)]
|
|
#[derive(Debug)]
|
|
pub enum MemoryError {
|
|
ContextTooLarge { context: U256 },
|
|
SegmentTooLarge { segment: U256 },
|
|
VirtTooLarge { virt: U256 },
|
|
}
|
|
|
|
#[derive(Debug)]
|
|
pub enum ProverInputError {
|
|
OutOfMptData,
|
|
OutOfRlpData,
|
|
OutOfWithdrawalData,
|
|
CodeHashNotFound,
|
|
InvalidMptInput,
|
|
InvalidInput,
|
|
InvalidFunction,
|
|
NumBitsError,
|
|
InvalidJumpDestination,
|
|
InvalidJumpdestSimulation,
|
|
}
|