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.
Process artifacts after a migration. Uses provider to determine most relevant network information directly, but still requires project-specific information about the network (i.e., name)
This adds potentially multiple Network resources to @truffle/db, creating individual networks for the historic blocks in which each ContractInstance was first created on-chain.
This saves Network and ContractInstance resources to @truffle/db.
Returns artifacts
with network objects populated with IDs for each
ContractInstance, along with a
network
object containing the ID of whichever
Network was added with the highest block height.
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
Accept a provider to enable workflows that require communicating with the underlying blockchain network.