XLabs / wormscan-ui

6 stars 3 forks source link

Improve multiple VAA Overview (Mayan Txns) #514

Open SamantaCasal opened 9 months ago

SamantaCasal commented 9 months ago

Description

The Mayan protocol issues two VAAs in a single transaction: one to transfer funds to the central contract on Solana, and another to convey instructions on what actions to take. In the first VAA, TB is listed as the emitter because Mayan requests TB to transfer the funds; however, in the second VAA, Mayan itself is the emitter, communicating with the WH Core contract to publish a message containing instructions on managing the transferred funds. MORE DETAILS

An example of a Mayan swap from BSC to another chain can be found here: https://wormholescan.io/#/tx/0x39670e5c04db933f5f316476616ebaea5c7a13fb879cf3f2d5935290612e80f7

https://github.com/XLabs/wormscan-ui/assets/69044575/dd7f1744-74a7-4c1c-bdb4-ac95d5ca2091

Chains on [MAYAN](https://swap.mayan.finance/):

Resources

Mayan DOC: https://docs.mayan.finance/architecture/payloads

EVM Contracts REPO: https://github.com/mayan-finance/swap-bridge

Request:

Label in the Transactions Detail-Origin app as "Mayan". Also could be Portal_Token_Bridge, Mayan

SamantaCasal commented 8 months ago

Ex: https://xlabs.github.io/wormscan-ui/#/tx/5GpkCefEdHvnXewF6aooT1tne66gfb4iGQhPxRw4BckSZubZMb4hwCpvRxpAmeiGY7jY5smHzx3Dm3SPVFWZeN3t

SamantaCasal commented 7 months ago

QA OK!

Multiple VAA: POLY-> ARB https://xlabs.github.io/wormscan-ui/#/tx/0x2a995e315ae05bc3f1bd0e89220f024567e0b49b54d41c14d3b653d354d55597

ETH -> SOL https://xlabs.github.io/wormscan-ui/#/tx/0xdebb61fe366c11e3a4df446c3ea79aaf3ec75164af64c6bbc2118d9784481007

BNB -> SOL (OK redeem in PROD) https://xlabs.github.io/wormscan-ui/#/tx/0x9418c736e82d3e15da725fbb0624189d15b3af875f15c1d3ec8119b3240dfa0c

ARB -> SOL (OK redeem in PROD) https://xlabs.github.io/wormscan-ui/#/tx/0x8508324431644a2c9fbea77e54b51ff6d942df366221b6b5a5941e36bb36adfd

Simple VAA:

SOL -> ARB https://xlabs.github.io/wormscan-ui/#/tx/5LNTzPZpkbvPve7aRGTQF4DkMW8fa6SoVM6kXuduByiycGqYXqzBSyyDdD6sd93QS7J4NwDeu9o8i4hUdjM1LWuq