Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Different Iroha Special Instructions can obtain different arguments and return different Outputs. Type of Iroha Special Instruction inputs and output defines possible compositions of Iroha Special Instructions.

For example we can mint `u32` quantity of some asset, so we have two arguments (`u32`, `AssetId`) for `Mint` Iroha Special Instruction. Instead of hardcoding quantity value we can place `Execute` Iroha Special Instruction and get it's result in `Mint`:

Code Block
Mint(ExecuteQuery(dex::query::getExchangeRate), asset_id)


Alternatives

Concerns

Assumptions

...