Query editor
withconfig as (selectdate '2023-01-01' as deployed_date,823858 as deployed_height,0x6e6f6465 as request_ticker, -- node'0x5550' as mint_bitworkc,'0x5550' as mint_bitworkr,555 as mint_amount,823860 as mint_height,55500 as max_mints),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(