essential-contributions / essential-builder

Reference implementation of a block builder for the Essential Protocol.
Apache License 2.0
2 stars 0 forks source link

Update `Mutations` and `View::get_predicate` to track contract deployments #14

Closed mitchmindtree closed 1 month ago

mitchmindtree commented 1 month ago

As of #11, Mutations includes the state mutations for a potential sequential chunk of solutions, but does not include new contract deployment data.

Once we support contract deployments via a contract registry, we should update this so that predicates included in the proposed chunk can be made available to the View's get_predicate function.

Until then, the builder will require that contracts appear in a prior block, and will consider solutions that solve contracts which are deployed in the same block invalid.