SELECT
block_id,
block_timestamp,
tx_id,
event_attributes:"0_amount" / POWER(10,6) as ust_deposited,
event_attributes:"7_action"::string as action_done,
event_attributes:"7_amount" / POWER(10,6) as ANC_UST_LP_deposited
FROM terra.msg_events
WHERE tx_id = '01CE5DDB5D6460426275E209D3101AF01C3E771E8733D9E507D0957918DA9E79'
and event_type = 'from_contract'