public static async Task <ActivationsCommit> Revert(ProtocolHandler proto, Block block, ActivationOperation op) { var commit = new ActivationsCommit(proto); await commit.Init(block, op); await commit.Revert(); return(commit); }
public static async Task <ActivationsCommit> Apply(ProtocolHandler proto, Block block, RawOperation op, RawActivationContent content) { var commit = new ActivationsCommit(proto); await commit.Init(block, op, content); await commit.Apply(); return(commit); }