select date_trunc('day', block_timestamp) as date,
count(distinct signer_id) as users,
sum(amount) as vol,
count(distinct tx_hash) as txns
from near.core.fact_staking_actions
where action = 'staking'
and block_timestamp::date >= '2022-01-01'
group by 1
-- select distinct action
-- from near.core.fact_staking_actions