Query editor
/*-- @title: ENS - Accounting - Transfers-- @description: Calculates accounting entries (debits and credits) for transfers between ENS wallets-- @author: Steakhouse Financial-- @notes: First transfer on 2020-02-10; applying filter by 2020.01.01-- @version:- 1.0 - 2023-11-07 - Initial release- 2.0 - 2024-03-11:- Improving performance & adding comments- Removing UNION ALL with ethereumnameservice_ethereum.ETHRegistrarController_4_evt_NameRegistered, sinceall registrars data is already pulled from ens.view_registrations- 3.0 - 2024-04-26- Added MetaGovernance Address- Added Karpatkey Address- 4.0 - 2025-01-23- Remove ENS Meta-Governance Address-> Already considered in the expenses table- 5.0 - 2026-03-05-> Handles changes where EnDAOment sends USDC to DAO Wallet for expenses- 6.0 - 2026-04-02-> Add in RegistrarManager address to track ETH inflows into EnDAOment- 7.0 - 2026-10-01-> Add plug for LM Rewards from Angle Distributor- 8.0 - 2026-10-25-> Optimise core transfers logic to reduce credit consumption*/WITH-- generates a list of target wallets and their names-- e.g.: 0x4f2083f5fbede34c2714affb3105539775f7fe64 | ENS: EnDAOmenttransfers_wallets AS (SELECT0xfe89cc7abb2c4183683ab71653c4cdc9b02d44b7 AS wallet,'ENS: DAO Wallet' AS nameUNION ALLSELECT0xcf60916b6cb4753f58533808fa610fcbd4098ec0 AS wallet,'ENS: Gnosis Safe' AS nameUNION ALLSELECT0x911143d946ba5d467bfc476491fdb235fef4d667 AS wallet,'ENS: Multisig' AS nameUNION ALLSELECT0x4f2083f5fbede34c2714affb3105539775f7fe64 AS wallet,'ENS: EnDAOment' AS nameUNION ALLSELECT0x58e6c7ab55Aa9012eAccA16d1ED4c15795669E1C AS wallet,'Karpatkey: Management & Performance' AS name -- https://discuss.ens.domains/t/endowment-weekly-reports/16665/5UNION ALLSELECT0xbDa6C9cd7eD043CB739ca2C748dAbd1fCA397132 AS wallet,'Stader : ETHX Emission Admin' AS name -- https://app.aave.com/governance/v3/proposal/?proposalId=42UNION ALLSELECT0x02D61347e5c6EA5604f3f814C5b5498421cEBdEB as wallet,'TWAP Safe' as name -- https://www.tally.xyz/gov/ens/proposal/33808096277765934415068056906696425640427679116963285327644834080891069190379UNION ALLSELECT