{% macro render( tx, token_hex, genesis_info, token_entry, token_input, token_output, token_type, action_str, specification, token_icon_url) %} {% let token_ticker %} {% let token_name %} {% let decimals %} {% let token_url %} {% let document_hash %} {% match genesis_info %} {% when Some with (genesis_info) %} {% let token_ticker = genesis_info.token_ticker|string_from_lossy_utf8 %} {% let token_name = genesis_info.token_name|string_from_lossy_utf8 %} {% let decimals = genesis_info.decimals %} {% let token_url = genesis_info.url|string_from_lossy_utf8 %} {% let document_hash = genesis_info.hash|hexify_u8_vector %} {% when None %} {% let token_ticker = "Unknown".into() %} {% let token_name = "Unknown".into() %} {% let decimals = 0 %} {% let token_url = "".into() %} {% let document_hash = "".into() %} {% endmatch %}

{{ entry.token_section_title }}

Token Icon
Token Ticker
{{ token_ticker }}
Token Name
{{ token_name }}
Token Type
{{ token_type }}
Transaction Type
{{ action_str }}
Token Output
{{ token_output|render_token_amount(decimals) |safe }} {{ token_ticker }} {% if token_output < token_input %}
({{ (token_input - token_output)|render_token_amount(decimals) |safe }} {{ token_ticker }} burned) {% endif %}
Document URI
{% match token_url.len() %} {% when 0 %} Unknown {% when _ %} {{ token_url }} {% endmatch %}
Document Hash
{% match document_hash.len() %} {% when 0 %}
Not set
{% when _ %}
{{ document_hash }}
{% endmatch %}
Decimals
{{ decimals }}
{% if entry.entry.is_invalid %}

Error details

Total burnt {{ entry.entry.actual_burn_amount | string_to_i128 | render_token_amount(decimals) | safe }} {{ token_ticker }}
Burns mint batons {% if entry.entry.burns_mint_batons %} Yes {% else %} No {% endif %}
Error message {{ entry.entry.burn_summary }}
{% endif %} {% endmacro %}