Query editor
with config as (selectdate '2023-12-27' as deployed_date,0 as deployed_height,0x736f70686f6e as request_ticker,'0x000000' as mint_bitworkc,'0x' as mint_bitworkr,100000 as mint_amount,0 as mint_height,420000 as max_mints,'sophon' as symbol),raw_mint as (selectspent_tx_id as commit_txid,tx_id as reveal_txidfrombitcoin.inputswhereblock_date >= (selectdeployed_datefromconfig)and block_height >= (selectdeployed_heightfromconfig)and block_height >= (selectmint_heightfromconfig)and cardinality(witness_data) >= 2and cast(witness_data[2] as varchar) like '%0461746f6d03646d74%' -- atom dmtand substr(witness_data[2],bytearray_position (witness_data[2], 0x6b6d696e745f7469636b6572) + 13,length((selectrequest_tickerfromconfig))) = (selectrequest_tickerfromconfig)and substr(cast(spent_tx_id as varchar),1,length(