pub enum PrecompileEvent {
Show 21 variants
ShaExtend(ShaExtendEvent),
ShaCompress(ShaCompressEvent),
KeccakPermute(KeccakPermuteEvent),
EdAdd(EllipticCurveAddEvent),
EdDecompress(EdDecompressEvent),
Secp256k1Add(EllipticCurveAddEvent),
Secp256k1Double(EllipticCurveDoubleEvent),
Secp256k1Decompress(EllipticCurveDecompressEvent),
K256Decompress(EllipticCurveDecompressEvent),
Bn254Add(EllipticCurveAddEvent),
Bn254Double(EllipticCurveDoubleEvent),
Bn254Fp(FpOpEvent),
Bn254Fp2AddSub(Fp2AddSubEvent),
Bn254Fp2Mul(Fp2MulEvent),
Bls12381Add(EllipticCurveAddEvent),
Bls12381Double(EllipticCurveDoubleEvent),
Bls12381Decompress(EllipticCurveDecompressEvent),
Bls12381Fp(FpOpEvent),
Bls12381Fp2AddSub(Fp2AddSubEvent),
Bls12381Fp2Mul(Fp2MulEvent),
Uint256Mul(Uint256MulEvent),
}
Expand description
Precompile event. There should be one variant for every precompile syscall.
Variants§
ShaExtend(ShaExtendEvent)
Sha256 extend precompile event.
ShaCompress(ShaCompressEvent)
Sha256 compress precompile event.
KeccakPermute(KeccakPermuteEvent)
Keccak256 permute precompile event.
EdAdd(EllipticCurveAddEvent)
Edwards curve add precompile event.
EdDecompress(EdDecompressEvent)
Edwards curve decompress precompile event.
Secp256k1Add(EllipticCurveAddEvent)
Secp256k1 curve add precompile event.
Secp256k1Double(EllipticCurveDoubleEvent)
Secp256k1 curve double precompile event.
Secp256k1Decompress(EllipticCurveDecompressEvent)
Secp256k1 curve decompress precompile event.
K256Decompress(EllipticCurveDecompressEvent)
K256 curve decompress precompile event.
Bn254Add(EllipticCurveAddEvent)
Bn254 curve add precompile event.
Bn254Double(EllipticCurveDoubleEvent)
Bn254 curve double precompile event.
Bn254Fp(FpOpEvent)
Bn254 base field operation precompile event.
Bn254Fp2AddSub(Fp2AddSubEvent)
Bn254 quadratic field add/sub precompile event.
Bn254Fp2Mul(Fp2MulEvent)
Bn254 quadratic field mul precompile event.
Bls12381Add(EllipticCurveAddEvent)
Bls12-381 curve add precompile event.
Bls12381Double(EllipticCurveDoubleEvent)
Bls12-381 curve double precompile event.
Bls12381Decompress(EllipticCurveDecompressEvent)
Bls12-381 curve decompress precompile event.
Bls12381Fp(FpOpEvent)
Bls12-381 base field operation precompile event.
Bls12381Fp2AddSub(Fp2AddSubEvent)
Bls12-381 quadratic field add/sub precompile event.
Bls12381Fp2Mul(Fp2MulEvent)
Bls12-381 quadratic field mul precompile event.
Uint256Mul(Uint256MulEvent)
Uint256 mul precompile event.
Trait Implementations§
source§impl Clone for PrecompileEvent
impl Clone for PrecompileEvent
source§fn clone(&self) -> PrecompileEvent
fn clone(&self) -> PrecompileEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PrecompileEvent
impl Debug for PrecompileEvent
source§impl<'de> Deserialize<'de> for PrecompileEvent
impl<'de> Deserialize<'de> for PrecompileEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl IntoEnumIterator for PrecompileEvent
impl IntoEnumIterator for PrecompileEvent
type Iterator = PrecompileEventIter
fn iter() -> PrecompileEventIter ⓘ
Auto Trait Implementations§
impl Freeze for PrecompileEvent
impl RefUnwindSafe for PrecompileEvent
impl Send for PrecompileEvent
impl Sync for PrecompileEvent
impl Unpin for PrecompileEvent
impl UnwindSafe for PrecompileEvent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more