Query editor
-- UTC+7: retain 365 complete days; replace only the latest 3 complete days.-- Missing/duplicate historical cache fails instead of silently scanning older chain data.-- Keep the existing output schema so current charts and cached results remain compatible.-- Legacy MCOIN column names represent point-ledger changes, not token issuance.WITH cached_results AS (SELECT * FROM TABLE(previous.query.result(schema => DESCRIPTOR(day DATE,mcoin_released_amount_raw VARCHAR,mcoin_reinvested_consumed_amount_raw VARCHAR,mcoin_released DECIMAL(38, 18),mcoin_reinvested_consumed DECIMAL(38, 18),point_balance_change_events BIGINT,point_subtract_events BIGINT,point_add_events BIGINT,point_layout_invalid_events BIGINT)))),-- Frozen checkpoint from successful execution 01M6QM9B1VV206F3E0P9PS74ET; no historical chain scan.bootstrap_rows (day, mcoin_released_amount_raw, mcoin_reinvested_consumed_amount_raw, mcoin_released, mcoin_reinvested_consumed, point_balance_change_events, point_subtract_events, point_add_events, point_layout_invalid_events) AS (VALUES('2025-11-06', '2024888841499995113431130', '3380216437854313828250386', '2024888.841499995113431130', '3380216.437854313828250386', '44914', '3283', '41631', '0'),('2025-11-07', '1449393647904141230030448', '1413510478753067986099793', '1449393.647904141230030448', '1413510.478753067986099793', '40750', '2943', '37807', '0'),('2025-11-08', '1803273074063536598660812', '1799145780733471253905960', '1803273.074063536598660812', '1799145.780733471253905960', '42239', '3020', '39219', '0'),('2025-11-09', '1583677464750060771630151', '1637381070143683887342173', '1583677.464750060771630151', '1637381.070143683887342173', '42869', '3091', '39778', '0'),('2025-11-10', '1718999585872621557834028', '1816292833248419724435696', '1718999.585872621557834028', '1816292.833248419724435696', '40417', '2898', '37519', '0'),('2025-11-11', '1559832129560131861646424', '1569041179101730599761225', '1559832.129560131861646424', '1569041.179101730599761225', '41615', '3069', '38546', '0'),('2025-11-12', '2257847847999828900147150', '2053425973628452466303657', '2257847.847999828900147150', '2053425.973628452466303657', '44179', '3154', '41025', '0'),('2025-11-13', '1834000268164490660481891', '1814325728143502822982067', '1834000.268164490660481891', '1814325.728143502822982067', '42353', '3070', '39283', '0'),('2025-11-14', '2203088373346428278987703', '1968266862489995752719756', '2203088.373346428278987703', '1968266.862489995752719756', '41125', '3123', '38002', '0'),('2025-11-15', '2011794178909867581526265', '1979128638813609473931524', '2011794.178909867581526265', '1979128.638813609473931524', '44696', '3287', '41409', '0'),('2025-11-16', '1744924518215318804124458', '1730895221156386560725702', '1744924.518215318804124458', '1730895.221156386560725702', '44175', '3126', '41049', '0'),('2025-11-17', '2212717756167506639624612', '2071139651144366858726983', '2212717.756167506639624612', '2071139.651144366858726983', '43977', '3264', '40713', '0'),('2025-11-18', '1979527829976085537711706', '2000867473399605568342837', '1979527.829976085537711706', '2000867.473399605568342837', '42293', '3086', '39207', '0'),('2025-11-19', '1771425633387732349358635', '1749845738283197118324837', '1771425.633387732349358635', '1749845.738283197118324837', '45683', '3439', '42244', '0'),('2025-11-20', '1932261370814108288954669', '1908161835373873842797121', '1932261.370814108288954669', '1908161.835373873842797121', '41182', '3184', '37998', '0'),('2025-11-21', '1767512756592972563898042', '1841575357140144875423486', '1767512.756592972563898042', '1841575.357140144875423486', '41841', '3082', '38759', '0'),('2025-11-22', '1626280506803162780401835', '1626597485890791254014035', '1626280.506803162780401835', '1626597.485890791254014035', '41823', '3035', '38788', '0'),('2025-11-23', '1457360834909929543387148', '1522477717904612538462158', '1457360.834909929543387148', '1522477.717904612538462158', '43571', '3138', '40433', '0'),('2025-11-24', '2163474162568899948273109', '2219415764523995261454950', '2163474.162568899948273109', '2219415.764523995261454950', '47254', '3334', '43920', '0'),('2025-11-25', '2013514895516153197181743', '1856600932010816788771933', '2013514.895516153197181743', '1856600.932010816788771933', '47055', '3409', '43646', '0'),('2025-11-26', '2231732130803519399248037', '2156488617806437361443195', '2231732.130803519399248037', '2156488.617806437361443195', '47201', '3460', '43741', '0'),('2025-11-27', '2228673638246435097428282', '2172133909362477827541955', '2228673.638246435097428282', '2172133.909362477827541955', '49253', '3495', '45758', '0'),('2025-11-28', '1997012351576253986479132', '2076646667860386858046762', '1997012.351576253986479132', '2076646.667860386858046762', '48886', '3496', '45390', '0'),('2025-11-29', '1612801157451236134746102', '1661349478079468618090029', '1612801.157451236134746102', '1661349.478079468618090029', '46915', '3249', '43666', '0'),('2025-11-30', '2038358055784814746381697', '2099215863494035897010853', '2038358.055784814746381697', '2099215.863494035897010853', '56108', '3864', '52244', '0'),('2025-12-01', '2048240876372514983790361', '2071754971062014141095910', '2048240.876372514983790361', '2071754.971062014141095910', '50533', '3639', '46894', '0'),('2025-12-02', '2162701097393083316199693', '2042246560373725859096667', '2162701.097393083316199693', '2042246.560373725859096667', '49121', '3592', '45529', '0'),('2025-12-03', '1881486304158025512157144', '2185380683398635978466887', '1881486.304158025512157144', '2185380.683398635978466887', '50173', '3616', '46557', '0'),('2025-12-04', '2375370201782895873531931', '7547837915157687802853895', '2375370.201782895873531931', '7547837.915157687802853895', '51541', '3770', '47771', '0'),('2025-12-05', '1997558932689428784474301', '2043379609026935467905404', '1997558.932689428784474301', '2043379.609026935467905404', '53202', '3845', '49357', '0'),('2025-12-06', '1711977922678130408858975', '1846095920250213770053282', '1711977.922678130408858975', '1846095.920250213770053282', '51820', '3571', '48249', '0'),('2025-12-07', '1744361487006525567370578', '1792940210724508375818311', '1744361.487006525567370578', '1792940.210724508375818311', '47429', '3258', '44171', '0'),('2025-12-08', '2126539495520924700538754', '2128754133494375357633948', '2126539.495520924700538754', '2128754.133494375357633948', '52506', '3620', '48886', '0'),('2025-12-09', '2569332224989781218889475', '2244664267627667937567850', '2569332.224989781218889475', '2244664.267627667937567850', '51354', '3697', '47657', '0'),('2025-12-10', '2080859286503668085834682', '3112435268462995051432044', '2080859.286503668085834682', '3112435.268462995051432044', '49074', '3468', '45606', '0'),('2025-12-11', '1925289531379075972196736', '2074548410961293712825205', '1925289.531379075972196736', '2074548.410961293712825205', '48687', '3454', '45233', '0'),('2025-12-12', '1618010654382351922346218', '1719762081051483593697290', '1618010.654382351922346218', '1719762.081051483593697290', '49693', '3432', '46261', '0'),('2025-12-13', '1750203955643825312843280', '1814218017160124847814844', '1750203.955643825312843280', '1814218.017160124847814844', '45235', '3187', '42048', '0'),