Accept a provider to enable workflows that require communicating with the underlying blockchain network.
Accept a compilation result and process it to save all relevant resources (Source, Bytecode, Compilation, Contract)
This returns the same WorkflowCompileResult but with additional references to each of the added resources.
Update name pointers for this project. Currently affords name-keeping for Network and Contract resources (e.g., naming ContractInstance resources is not supported directly)
This saves NameRecord and ProjectName resources to @truffle/db.
Returns a list of NameRecord resources for completeness, although these may be regarded as an internal concern. ProjectName resources are not returned because they are mutable; returned representations would be impermanent.
Either "contracts"
, "networks"
, or "contracts" | "networks"
.
Object whose keys belong to the set of named collection names and whose values are IdObjects for resources of that collection.
Run a given Processor with specified arguments.
This method is a ProcessorRunner and
can be used to await
(e.g.) the processors defined by
Process's resources
.
Generated using TypeDoc
Abstraction for connecting @truffle/db to a Truffle project
This class affords an interface between Truffle and @truffle/db, specifically for the purposes of ingesting @truffle/workflow-compile results and contract instance information from @truffle/contract-schema artifact files.
Unless you are building tools that work with Truffle's various packages directly, you probably don't need to use this class.
To instantiate this abstraction: