📖
Flipside-Wiki
  • Welcome to Flipside-Wiki
  • Information
    • Public Flipside Links
      • Twitter
      • Discord
      • YouTube
      • SQL-Models
      • Github
    • Flipside Official Documentation
    • Flipside Database Status
    • Flipside Power Tools
    • External Guides
    • Flipside Query Tips and Tricks
      • Export To AWS Bucket
    • Flipside Vouches and Thanks
    • Kida's Bounty Payments
  • Bounties
    • AAVE
    • Abracadabra
    • Apollo
      • QUERY - StrategyID to Name
    • Algorand
      • QUESTIONS - Payouts
      • QUERY - Random
      • NOTES - Yieldly
      • NOTES - Swap + Escrow
      • NOTES - Bootstrap
      • NOTES - Old Txs
      • TUTORIAL - ASA Buy/Sell
    • Anchor
      • AVAX - Anchor
      • QUERY - Liquidations
      • QUESTIONS - Payout
      • DASHBOARDS - Best
      • DASHBOARD - Anchor Interest Rate
      • PROJECTS - that use Anchor
    • Angel Protocol
    • Astroport
    • ConstitutionDAO
      • QUESTIONS - Payout
    • Defi Kingdoms
      • CONTRACTS - Harmony
      • BOUNTY - Link
      • MISC - Transactions To Track
      • MISC - Taxable Events
      • MISC - ONE to 0x Conversion
      • MISC - Dev FAQ
      • WEBSITE - https://dfk-report.vercel.app ( built by me )
      • WEBSITE - DFK Dev Community
    • ENS
    • Friends With Benefits
    • Katana
    • MakerDAO
    • Mars Protocol
    • Mirror
      • QUERY - Starter
    • Olympus DAO
      • OHM - 3,3 PoolTogether
    • Orbs
    • Orion Money
    • Paraswap
    • Polygon
    • Rari Fuse
    • Ribbon
    • Solana
      • HINT - Swaps
      • DATA - Transfers
      • QUERY - CEX
      • Data - Tokens
    • Stader
    • SushiSwap
      • QUESTIONS - Payout
      • Query - Random
      • QUERY - Using Sync Events
      • DOCS - Uniswap
    • Terra
      • QUESTIONS - Payout
      • QUERY - Validators
      • QUERY - Addresses
      • QUERY - NFT Contract Addresses
      • QUESTION - msgs vs msg_events
      • NFT - Marketplaces
    • Terraswap
    • Terra - Galactic Punks
      • MISC - Transactions
    • Terra - Knowhere
      • QUERY - Sales
      • STRUCT - Collection Addresses
    • Terra - Levana Dragons
      • QUERY - Dust
      • QUERY - Eggs
      • QUERY - Meteors
      • GOOGLEDOC - LVN Starters
    • Terra - Loopr
      • QUERY - Liquidity Pools
    • Terra - Random Earth
      • QUERY - Sales
      • STRUCT - Collection Addresses
    • Terra - Talis
    • Terra - Wormhole
      • STRUCT - VAA_Data
      • QUERY - VAA_DECODEING
      • TOOL - Python Decoder
      • QUERY - Tokens
      • Query - Movement Into Terra
      • QUERY - Movement Out of Terra
    • THORChain
      • QUESTIONS - Payout
      • QUERY - RaiseTheCaps
      • QUERY - Daily Active Validator Count
    • Uniswap
      • QUESTIONS - Payout
    • Valkyrie Protocol
    • Visor - Gamma
      • QUERY - Contracts
  • Massnomis Guides
    • Guides
      • 12 Dec 2021
      • 21 Nov 2021
      • 15 Nov 2021
      • 07 Nov 2021
      • MID OCTOBER 2021
      • EARLY OCTOBER 2021
      • SEPTEMBER 17 2021
      • LATE AUGUST 2021
      • MID AUGUST 2021
      • AUGUST 6 2021
      • JULY 30 2021
      • JULY 23 2021
      • JULY 16 2021
      • JULY 9 2021
      • JULY 1 2021
    • Links
  • Testing Area
    • Image Upload Test
    • Luna Breakdown
Powered by GitBook
On this page
Edit on GitHub
  1. Bounties
  2. Terra - Wormhole

QUERY - Movement Out of Terra

Credits: Pinehearst

CASE WHEN msg_value:execute_msg:initiate_transfer:recipient_chain = 1 THEN 'Solana'
 WHEN msg_value:execute_msg:initiate_transfer:recipient_chain = 2 THEN 'Ethereum'
 WHEN msg_value:execute_msg:initiate_transfer:recipient_chain = 3 THEN 'Terra'
 WHEN msg_value:execute_msg:initiate_transfer:recipient_chain = 4 THEN 'BSC'
 WHEN msg_value:execute_msg:initiate_transfer:recipient_chain = 5 THEN 'Polygon'
 WHEN msg_value:execute_msg:initiate_transfer:recipient_chain = 6 THEN 'Avax'
 WHEN msg_value:execute_msg:initiate_transfer:recipient_chain = 7 THEN 'Oasis'

Updated IBC Query - Sam

Sample Tx: 6D3433D359E83BFCD66A45752D4774F16A8191F14451C2B73F2F0AD3879CBC32

select 
block_timestamp, 
event_attributes:packet_data:sender as senders,
 case
when event_attributes:packet_src_channel = 'channel-1' then 'Osmosis'
when event_attributes:packet_src_channel = 'channel-16' then 'Secret'
when event_attributes:packet_src_channel = 'channel-17' then 'Injective'
when event_attributes:packet_src_channel = 'channel-19' then 'Axelar'
when event_attributes:packet_src_channel = 'channel-20' then 'Juno'
when event_attributes:packet_src_channel = 'channel-24' then 'Kava'
when event_attributes:packet_src_channel = 'channel-26' then 'Umee'
when event_attributes:packet_src_channel = 'channel-27' then 'Omniflix'
when event_attributes:packet_src_channel in ('channel-31', 'channel-7') then 'Sifchain'
when event_attributes:packet_src_channel = 'channel-38' then 'Gravity Bridge'
when event_attributes:packet_src_channel in ('channel-41', 'channel-2') then 'Cosmos'
when event_attributes:packet_src_channel in ('channel-43', 'channel-40') then 'Orai'
when event_attributes:packet_src_channel = 'channel-45' then 'Rizon'
when event_attributes:packet_src_channel = 'channel-49' then 'Swth'
when event_attributes:packet_src_channel = 'channel-49' then 'Crescent'
ELSE 'Unlabeled' END AS destination_chain,

event_attributes:packet_data:amount  / 1e6 as ust_amount

  from terra.msg_events
  where event_type = 'send_packet'
  and destination_chain is not null
  and block_timestamp >= '2022-01-01'
  and event_attributes:packet_data:denom = 'uusd'
PreviousQuery - Movement Into TerraNextTHORChain

Last updated 3 years ago