{% macro render(tx, slp_genesis_info, slp_meta, token_input, token_output, action_str, specification, token_icon_url) %} {% match slp_genesis_info %} {% when Some with (genesis_info) %}
Token Icon
{% match token_hex %} {% when Some with (token_hex)%} {% when None %} {% endmatch %}
Token Ticker
{{ genesis_info.token_ticker|string_from_lossy_utf8 }}
Token Name
{{ genesis_info.token_name|string_from_lossy_utf8 }}
Token Type
{{ token_type }}
Transaction Type
{{ action_str }}
Token Output
{{ token_output|render_token_amount(genesis_info.decimals)|safe }} {{ genesis_info.token_ticker|string_from_lossy_utf8 }} {% if token_output < token_input %}
({{ (token_input - token_output)|render_token_amount(genesis_info.decimals)|safe }} {{ genesis_info.token_ticker|string_from_lossy_utf8 }} burned) {% endif %}
Document URI
{% let token_url = genesis_info.url|string_from_lossy_utf8 %} {{ token_url }}
Document Hash
{% match genesis_info.url.len() %} {% when 0 %}
Not set
{% when _ %}
{{ genesis_info.hash|hexify_u8_vector }}
{% endmatch %}
Decimals
{{ genesis_info.decimals }}
{% when None %} {% endmatch %} {% endmacro %}