binhachon101. [Elite] Crypto-Cosmology, Part 1: Wormhole - Receiving
    Updated 2022-01-12
    with receiving_native_terra_asset as(
    select block_timestamp, event_attributes:recipient::string as address, event_attributes:denom::string as symbol, event_attributes:amount::float/1e6 as amount from terra.msg_events
    where tx_id in (
    select tx_id from terra.msgs where msg_value:contract::string = 'terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf'
    and msg_value:execute_msg:submit_vaa is not null
    )
    and event_type = 'from_contract'
    and event_attributes:action::string = 'complete_transfer_terra_native'
    and tx_status = 'SUCCEEDED'
    ),
    receiving_wrapped_asset as (
    select block_timestamp, event_attributes:recipient::string as address, event_attributes:"1_contract_address"::string as symbol, event_attributes:"0_amount"::float/1e6 as amount from terra.msg_events
    where tx_id in (
    select tx_id from terra.msgs where msg_value:contract::string = 'terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf'
    and msg_value:execute_msg:submit_vaa is not null
    )
    and event_type = 'from_contract'
    and tx_status = 'SUCCEEDED'
    and event_attributes:"0_action"::string = 'complete_transfer_wrapped'
    )
    select distinct symbol from receiving_native_terra_asset
    union
    select distinct symbol from receiving_wrapped_asset

    Run a query to Download Data