binhachonPrep for Flight - Will they still use Shuttle bridge after
Updated 2022-01-18
999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
------------------------------------------------------------------- Wormhole side ---------------------------------------------------------------------------
with receiving_native_terra_asset as(
select
block_timestamp,
event_attributes : recipient :: string as address
from
terra.msg_events
where event_type = 'from_contract'
and event_attributes : action :: string = 'complete_transfer_terra_native'
),
receiving_wrapped_asset as(
select
block_timestamp,
event_attributes : recipient :: string as address
from
terra.msg_events
where event_type = 'from_contract'
and event_attributes : "0_action" :: string = 'complete_transfer_wrapped'
),
sending_asset as(
select
block_timestamp,
msg_value : sender :: string as address
from
terra.msgs
where
msg_value : contract :: string = 'terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf'
and tx_status = 'SUCCEEDED'
and msg_value : execute_msg : initiate_transfer : recipient_chain is not null
),
------------------------------------------------------------------- Terra Shuttle side ---------------------------------------------------------------------------
--Define contract
contract_address as (
select
'terra1g6llg3zed35nd3mh9zx6n64tfw3z67w2c48tn2' as address,
'Terra Bridge BSC' as name
Run a query to Download Data