Align output of tx simulate with other Aiken's commands.

And also return a structured output as JSON, so it's more easily used
  by other tools.

  ```
       Parsing script context
    Simulating 78ec148ea647cf9969446891af31939c5d57b275a2455706782c6183ef0b62f1
      Redeemer Spend → 0

  {"mem":151993,"cpu":58180696}
  ```
This commit is contained in:
KtorZ
2023-02-14 16:49:13 +01:00
parent a3078adce8
commit 428b5f2b37
4 changed files with 50 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ macro_rules! hashmap {
}
/// Can be negative
#[derive(Debug, Clone, PartialEq, Eq, Copy)]
#[derive(Debug, Clone, PartialEq, Eq, Copy, serde::Serialize)]
pub struct ExBudget {
pub mem: i64,
pub cpu: i64,