select
m.block_id,
m.tx_id,
m.event_attributes:from::string as sender,
m.event_attributes:to::string as receiver,
m.event_attributes:amount as uaust_transferred,
m.event_attributes:amount / pow(10, 6) as aust_transferred
from terra.msg_events m
where m.event_attributes:contract_address::string = 'terra1hzh9vpxhsk8253se0vv5jj6etdvxu3nv8z07zu' -- aUST contract
and m.event_type = 'from_contract'
and m.tx_status = 'SUCCEEDED'