Struct forest_actor::account::Actor
source · [−]pub struct Actor;
Expand description
Account Actor
Implementations
pub fn constructor<BS, RT>(
rt: &mut RT,
address: Address
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn constructor<BS, RT>(
rt: &mut RT,
address: Address
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Constructor for Account actor
pub fn pubkey_address<BS, RT>(rt: &mut RT) -> Result<Address, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Trait Implementations
fn invoke_method<BS, RT>(
rt: &mut RT,
method: MethodNum,
params: &Serialized
) -> Result<Serialized, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
fn invoke_method<BS, RT>(
rt: &mut RT,
method: MethodNum,
params: &Serialized
) -> Result<Serialized, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Invokes method with runtime on the actor’s code. Method number will match one defined by the Actor, and parameters will be serialized and used in execution Read more