SELECT SUM(event_amount) AS total_luna, DATE_TRUNC('day', block_timestamp) AS datetime,
action
FROM terra.staking
WHERE validator_address = 'terravaloper1r843mpk5zzkfgtnduskd0dzgeltv0n503ckzy6' --Flipside address
GROUP BY datetime, action
ORDER BY datetime ASC