pub enum EvalError {
Show 23 variants
TxEnvNotPresent,
UtxoIndexOutOfBounds(usize, usize),
NonExplicitInput(usize),
OutputIndexOutOfBounds(usize, usize),
NonExplicitOutput(usize),
InputIndexOutOfBounds(usize, usize),
NonExplicitInputIssuance(usize),
NonExplicitInputReIssuance(usize),
AddOverflow(i64, i64),
SubOverflow(i64, i64),
MulOverflow(i64, i64),
DivOverflow(i64, i64),
ModOverflow(i64, i64),
NegOverflow(i64),
MissingPrice,
Price8BytePush,
MissingTimestamp,
Timstamp8BytePush,
MissingOracleSignature,
MalformedSig,
TimestampInFuture,
InvalidSignature,
PriceOverflow,
}
Expand description
Evaluation Errors
Variants§
TxEnvNotPresent
Transaction and utxos not supplied in interpreter
UtxoIndexOutOfBounds(usize, usize)
Utxo index out of bounds (index, uxtos.len())
NonExplicitInput(usize)
Input at index must be explicit
OutputIndexOutOfBounds(usize, usize)
Output index out of bounds (index, tx.outputs.len())
NonExplicitOutput(usize)
Output at index must be explicit
InputIndexOutOfBounds(usize, usize)
Output index out of bounds (index, tx.inputs.len())
NonExplicitInputIssuance(usize)
Input issuance at index must be explicit
NonExplicitInputReIssuance(usize)
Input reissuance at index must be explicit
AddOverflow(i64, i64)
Addition overflow
SubOverflow(i64, i64)
Addition overflow
MulOverflow(i64, i64)
Sub overflow
DivOverflow(i64, i64)
Mul overflow
ModOverflow(i64, i64)
Mod overflow
NegOverflow(i64)
Neg overflow
MissingPrice
Missing price
Price8BytePush
Price 8 byte push
MissingTimestamp
Missing timestamp
Timstamp8BytePush
Timestamp 8 byte push
MissingOracleSignature
Missing Oracle signature
MalformedSig
Missing Oracle pubkey
TimestampInFuture
Timestamp in future
InvalidSignature
Invalid oracle signature
PriceOverflow
Price overflow
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Ord for EvalError
impl Ord for EvalError
Source§impl PartialOrd for EvalError
impl PartialOrd for EvalError
impl Eq for EvalError
impl StructuralPartialEq for EvalError
Auto Trait Implementations§
impl Freeze for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnwindSafe for EvalError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more