--- Utility functions for the Anoma system
module ;
import Anoma.Types open;
import Stdlib.Prelude open;
--- Resources partitioned into those that the transaction consumes and those
--- that the transaction creates
type :=
{
consumed : List Resource;
created : List Resource
};
--- Partition the ;Resource;s of a ;Transaction; into those that are consumed
--- and those that are created
axiom : Transaction -> ResourcePartition;
--- The kind of a ;Resource;.
--- This is some combination of `anomaEncode (Resource.logic r)` and
--- `anomaEncode (Resource.label r)` defined by Anoma.
axiom : Resource -> Nat;
Last modified on 2024-04-18 10:12 UTC