Struct ethcontract_common::artifact::truffle::TruffleLoader [−][src]
Expand description
Loads truffle artifacts.
Fields
origin: Option<String>
Override for artifact’s origin.
If empty, origin will be derived automatically.
name: Option<String>
Override for contract’s name.
Truffle artifacts contain a single contract which may be unnamed.
Implementations
Creates a new truffle loader and sets an override for artifact’s origins.
Sets new override for artifact’s origin. See origin
for more info.
Sets new override for artifact’s name. See name
for more info.
Loads an artifact from a loaded JSON value.
Loads an artifact from bytes of JSON text.
Loads an artifact from string of JSON text.
Loads an artifact from a loaded JSON value.
Loads an artifact from disk.
Loads a contract from a loaded JSON value.
Loads a contract from bytes of JSON text.
Loads a contract from string of JSON text.
Loads a contract from a loaded JSON value.
Loads a contract from disk.
Serializes a single contract.