Struct forest_actor::verifreg::Actor
source · [−]pub struct Actor;
Implementations
pub fn constructor<BS, RT>(
rt: &mut RT,
root_key: Address
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn constructor<BS, RT>(
rt: &mut RT,
root_key: Address
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Constructor for Registry Actor
pub fn add_verifier<BS, RT>(
rt: &mut RT,
params: AddVerifierParams
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn remove_verifier<BS, RT>(
rt: &mut RT,
verifier_addr: Address
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn add_verified_client<BS, RT>(
rt: &mut RT,
params: AddVerifierClientParams
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn use_bytes<BS, RT>(
rt: &mut RT,
params: UseBytesParams
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn use_bytes<BS, RT>(
rt: &mut RT,
params: UseBytesParams
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Called by StorageMarketActor during PublishStorageDeals. Do not allow partially verified deals (DealSize must be greater than equal to allowed cap). Delete VerifiedClient if remaining DataCap is smaller than minimum VerifiedDealSize.
pub fn restore_bytes<BS, RT>(
rt: &mut RT,
params: RestoreBytesParams
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
pub fn restore_bytes<BS, RT>(
rt: &mut RT,
params: RestoreBytesParams
) -> Result<(), ActorError> where
BS: BlockStore,
RT: Runtime<BS>,
Called by HandleInitTimeoutDeals from StorageMarketActor when a VerifiedDeal fails to init. Restore allowable cap for the client, creating new entry if the client has been deleted.
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