pub trait ActionBuilder<U> where
    U: ActionUnweighed
{ fn build(self, common: ActionBuilderCommon) -> U; }
Expand description

Builder for non-genesis Actions

SourceChain::put takes one of these rather than a raw Action, so that it can inject the proper values via ActionBuilderCommon, rather than requiring surrounding code to construct a proper Action outside of the context of the SourceChain.

This builder does not build pre-genesis Actions, because prior to genesis there is no Agent associated with the source chain, and also the fact that the Dna action has no prev_entry causes a special case that need not be dealt with. SourceChain::genesis already handles genesis in one fell swoop.

Required Methods

Implementors