pub trait Kernel: ActorOps + BlockOps + CircSupplyOps + CryptoOps + DebugOps + GasOps + MessageOps + NetworkOps + RandomnessOps + SelfOps + SendOps + 'static {
type CallManager: CallManager;
fn into_call_manager(self) -> Self::CallManager
where
Self: Sized;
fn new(
mgr: Self::CallManager,
caller: ActorID,
actor_id: ActorID,
method: MethodNum,
value_received: TokenAmount
) -> Self
where
Self: Sized;
}Expand description
The “kernel” implements
Required Associated Types
type CallManager: CallManager
type CallManager: CallManager
The Kernel’s CallManager is
Required Methods
fn into_call_manager(self) -> Self::CallManager where
Self: Sized,
fn into_call_manager(self) -> Self::CallManager where
Self: Sized,
Consume the Kernel and return the underlying CallManager.
fn new(
mgr: Self::CallManager,
caller: ActorID,
actor_id: ActorID,
method: MethodNum,
value_received: TokenAmount
) -> Self where
Self: Sized,
fn new(
mgr: Self::CallManager,
caller: ActorID,
actor_id: ActorID,
method: MethodNum,
value_received: TokenAmount
) -> Self where
Self: Sized,
Construct a new Kernel from the given CallManager.
calleris the ID of the immediate caller.actor_idis the ID of this actor.methodis the method that has been invoked.value_receivedis value received due to the current call.