Query editor
WITH capped_minters AS (SELECTminterAddress AS capped_minter_address, cap / 1e18 AS mint_cap, admin AS admin_address, evt_tx_hash AS capped_minter_creation_tx_hash, evt_block_time AS capped_minter_creation_time, evt_block_number AS capped_minter_creation_block, NULL AS capped_minter_expiration_time, 'v1' AS "version", NULL AS mintableFROM zksync_zksync.ZkCappedMinterFactory_evt_CappedMinterCreatedWHERE token = 0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3EUNIONSELECTminterAddress AS capped_minter_address, cap / 1e18 AS mint_cap, admin AS admin_address, evt_tx_hash AS capped_minter_creation_tx_hash, evt_block_time AS capped_minter_creation_time, evt_block_number AS capped_minter_creation_block, expirationTime AS capped_minter_expiration_time, 'v2' AS "version", mintableFROM zksync_zksync.ZkCappedMinterV2Factory_evt_CappedMinterV2CreatedWHERE mintable = 0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3EUNION ALLSELECTcappedMinter AS capped_minter_address, cap / 1e18 AS mint_cap, admin AS admin_address, evt_tx_hash AS capped_minter_creation_tx_hash, evt_block_time AS capped_minter_creation_time, evt_block_number AS capped_minter_creation_block, expirationTime AS capped_minter_expiration_time, 'v3' AS "version", mintableFROM zksync_zksync.zkcappedminterv3factory_evt_mintercappedcreatedWHERE mintable = 0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E)-- function admin(): 0x2a0acc6a-- function cap(): 0xec81b483-- function token(): 0x82bfefc8-- function minted(): 0x4f02c420-- candidate mint call traces, before dedup, candidate_mint_traces AS (SELECT *FROM zksync.tracesWHERE starts_with(input, 0x40c10f19)AND to IN (SELECT capped_minter_address FROM capped_minters))-- keep only the "root" mint call per nested chain, drop subtraces, root_mint_traces AS (