Query editor
-- Parameters to create in Dune:-- {{blockchain}} -> text default: ethereum-- {{start_date}} -> datetime-- {{end_date}} -> datetimeWITH safe_list AS (SELECTsafe_name,from_hex(replace(lower(address_txt), '0x', '')) AS safe_addressFROM (VALUES('LOL', '0x87d93d9b2c672bf9c9642d853a8682546a5012b5'),('Labs', '0x95b521b4f55a447db89f6a27f951713fc2035f3f'),('Ecosystem', '0x55897893c19e4b0c52731a3b7c689ec417005ad6'),('Alliance', '0x606f77bf3dd6ed9790d9771c7003f269a385d942'),('LEGO', '0x12a43b049a7d330cb8aeab5113032d18ae9a9030'),('CLI', '0x6facccE132d5c397068807ca73883d3df198dff4')) AS t(safe_name, address_txt)),excluded_addresses AS (SELECTaddress_name,from_hex(replace(lower(address_txt), '0x', '')) AS addressFROM (VALUES('LOL', '0x87d93d9b2c672bf9c9642d853a8682546a5012b5'),('LOL DAO', '0xf6F0732c1e9971497342C295141566E6F1A31e96'),('Labs', '0x95b521b4f55a447db89f6a27f951713fc2035f3f'),('Ecosystem', '0x55897893c19e4b0c52731a3b7c689ec417005ad6'),('Alliance', '0x606f77bf3dd6ed9790d9771c7003f269a385d942'),('LEGO', '0x12a43b049a7d330cb8aeab5113032d18ae9a9030'),('Aragon', '0x3e40D73EB977Dc6a537aF587D48316feE66E9C8c'),('Rewshare', '0xe2A682A9722354D825d1BbDF372cC86B2ea82c8C'),('Delegates', '0x13600b9AEE86f8254969918B1E9ae6ea091b8727'),('Bug Bounty', '0x9Eb81629245C5248A8f4FfCDf11A73E0D0C74071'),('Gas Supply', '0x5181d5D56Af4f823b96FE05f062D7a09761a5a53'),('TRP', '0x834560F580764Bc2e0B16925F8bF229bb00cB759'),('Bug Bounty', '0x9Eb81629245C5248A8f4FfCDf11A73E0D0C74071'),('CLI', '0x6facccE132d5c397068807ca73883d3df198dff4'),('Earn USD', '0xC75E7E73B25fEa8bB23EB55CC48BA55067b5be76'),('Earn wstETH', '0xe39eed9a454c4918f8d0682062777cb251cd513f'),('wrap steth', '0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0')) AS t(address_name, address_txt)),outflows AS (SELECTt.blockchain,t.block_time,t.block_date,t.tx_hash,t.evt_index,s.safe_name,t."from" AS safe_address,t."to" AS counterparty,t.contract_address AS token_address,t.symbol,t.amount,t.amount_usd