pub trait SolidityEventTrait: Send + Sync {
    type Indexed: EventIndexEncodable;
    type NonIndexed: ABIEncodable;

    const EVENT_SIG: H256;

    // Provided method
    fn log(
        indexed: &Self::Indexed,
        non_indexed: &Self::NonIndexed,
        param: &ActionParams,
        context: &mut InternalRefContext<'_>
    ) -> Result<()> { ... }
}
Expand description

Native implementation of a solidity-interface function.

Required Associated Types§

Required Associated Constants§

source

const EVENT_SIG: H256

Provided Methods§

source

fn log( indexed: &Self::Indexed, non_indexed: &Self::NonIndexed, param: &ActionParams, context: &mut InternalRefContext<'_> ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl SolidityEventTrait for CallEvent

§

type Indexed = ([u8; 20], [u8; 20])

§

type NonIndexed = (U256, U256, Vec<u8>)

source§

const EVENT_SIG: H256 = _

source§

impl SolidityEventTrait for CreateEvent

§

type Indexed = ([u8; 20], [u8; 20])

§

type NonIndexed = (U256, U256, Vec<u8>)

source§

const EVENT_SIG: H256 = _

source§

impl SolidityEventTrait for ReturnEvent

§

type Indexed = ()

§

type NonIndexed = bool

source§

const EVENT_SIG: H256 = _

source§

impl SolidityEventTrait for WithdrawEvent

§

type Indexed = ([u8; 20], H160)

§

type NonIndexed = (U256, U256)

source§

const EVENT_SIG: H256 = _