{% macro render(tx, slp_genesis_info, slp_meta, token_input, token_output) %} {% match slp_genesis_info %} {% when Some with (genesis_info) %}
Token Ticker
{{ genesis_info.token_ticker|string_from_lossy_utf8 }}
Token Name
{{ genesis_info.token_name|string_from_lossy_utf8 }}
Token Type
{% match slp_meta %} {% when Some with (slp_meta) %} {% match slp_meta.token_type() %} {% when SlpTokenType::Fungible %} Type1 (Specification) {% when SlpTokenType::Nft1Group %} NFT1 Group (Specification) {% when SlpTokenType::Nft1Child %} NFT1 Child (Specification) {% when _ %} Unknown {% endmatch %} {% when None %} Unknown {% endmatch %}
Transaction Type
{% match slp_meta %} {% when Some with (slp_meta) %} {% match slp_meta.token_type() %} {% when SlpTokenType::Fungible %} {% match slp_meta.tx_type() %} {% when SlpTxType::Genesis %} GENESIS {% when SlpTxType::Mint %} MINT {% when SlpTxType::Send %} SEND {% when _ %} {% endmatch %} {% when SlpTokenType::Nft1Group %} {% match slp_meta.tx_type() %} {% when SlpTxType::Genesis %} NFT1 GROUP GENESIS {% when SlpTxType::Mint %} NFT1 GROUP MINT {% when SlpTxType::Send %} NFT1 GROUP SEND {% when _ %} {% endmatch %} {% when SlpTokenType::Nft1Child %} {% match slp_meta.tx_type() %} {% when SlpTxType::Genesis %} NFT1 Child GENESIS {% when SlpTxType::Send %} NFT1 Child SEND {% when _ %} {% endmatch %} {% when _ %} Unknown {% endmatch %} {% when None %} {% endmatch %}
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.token_document_url|string_from_lossy_utf8 %} {{ token_url }}
Document Hash
{% match genesis_info.token_document_url.len() %} {% when 0 %}
Not set
{% when _ %}
{{ genesis_info.token_document_hash|hexify_u8_vector }}
{% endmatch %}
Decimals
{{ genesis_info.decimals }}
{% when None %} {% endmatch %} {% endmacro %}