pub struct Actor;
Expand description
Chaos Actor
Implementations
pub fn send<BS, RT>(
rt: &mut RT,
arg: SendArgs
) -> Result<SendReturn, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Constructor for Account actor
pub fn caller_validation<BS, RT>(
rt: &mut RT,
args: CallerValidationArgs
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn caller_validation<BS, RT>(
rt: &mut RT,
args: CallerValidationArgs
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
CallerValidation violates VM call validation constraints.
CALLER_VALIDATION_BRANCH_NONE performs no validation. CALLER_VALIDATION_BRANCH_TWICE validates twice. CALLER_VALIDATION_BRANCH_IS_ADDRESS validates against an empty caller address set. CALLER_VALIDATION_BRANCH_IS_TYPE validates against an empty caller type set.
pub fn create_actor<BS, RT>(
rt: &mut RT,
arg: CreateActorArgs
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn resolve_address<BS, RT>(
rt: &mut RT,
args: Address
) -> Result<ResolveAddressResponse, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn resolve_address<BS, RT>(
rt: &mut RT,
args: Address
) -> Result<ResolveAddressResponse, ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Resolves address, and returns the resolved address (defaulting to 0 ID) and success boolean.
pub fn delete_actor<BS, RT>(
rt: &mut RT,
beneficiary: Address
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn mutate_state<BS, RT>(
rt: &mut RT,
arg: MutateStateArgs
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn inspect_runtime<BS, RT>(
rt: &mut RT
) -> Result<InspectRuntimeReturn, 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