run

Function run 

Source
pub fn run(filename: &str) -> Result<()>
Expand description

Runs a chain from a YAML file.

§Arguments

  • filename - Path to the chain YAML file

§Errors

Returns an error if:

  • The file cannot be read
  • The YAML cannot be parsed
  • The chain validation fails
  • The chain execution fails
  • The results cannot be serialized to JSON