File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
utils/atomic-data-publisher/src/sql Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 66
77WITH asset_owner_changes AS (
88 -- Get asset owner changes in the block range
9+ -- Excludes changes where the new owner is a welcome pack PDA
910 SELECT
1011 ao .asset ,
1112 ao .last_block as block,
@@ -17,12 +18,14 @@ WITH asset_owner_changes AS (
1718 INNER JOIN key_to_assets kta ON kta .asset = ao .asset
1819 LEFT JOIN iot_hotspot_infos ihi ON ihi .asset = ao .asset
1920 LEFT JOIN mobile_hotspot_infos mhi ON mhi .asset = ao .asset
21+ LEFT JOIN welcome_packs wp_check ON wp_check .address = ao .owner
2022 WHERE (ihi .asset IS NOT NULL OR mhi .asset IS NOT NULL )
2123 AND kta .entity_key IS NOT NULL
2224 AND ao .asset IS NOT NULL
2325 AND ao .owner IS NOT NULL
2426 AND ao .last_block > $1
2527 AND ao .last_block <= $2
28+ AND wp_check .address IS NULL
2629),
2730welcome_pack_changes AS (
2831 -- Get welcome pack owner changes in the block range
You can’t perform that action at this time.
0 commit comments