wormhole-foundation / wormhole-explorer

We could have named this super-parakeet. Tweet tweet.
Other
30 stars 29 forks source link

Add support for `transferRedeemed` log message (EVMs) #717

Open gipsh opened 1 year ago

gipsh commented 1 year ago

As a user i want to know when a VAA was redemeed on another chain.

Currently event-watcher captures the PublishMessage log that indicates a new vaa was created. This story is to implement the other side of the transaction, when a vaa is relayed to another chain and is redeemed the contract on the other side publish a message in the log called transferRedeemed .

In this case, the token bridge contract is the one publishes the message.
Here is a link to the contract implementation for EVM.

This contract version is not deployed in all chains (Sept '23).

Base is one of the chain with the last version of the contract, here you can see when a completeTransfer() method is executed a message in the log is printed

image

Link to the log

The scope of this story is to:

Criteria

globalTransactions collection:

  1. If the document does not exist -> insert the document with data available from logs
  2. If the document does exist 2.1. if destinationTx field does not exist -> insert the destinationTx field into the document with data available from logs 2.2 if destinationTx field exists -> none
raop155 commented 1 year ago

Mainnet Log

hernandiegosavio commented 1 year ago

Context https://github.com/wormhole-foundation/wormhole-explorer/issues/338

raop155 commented 1 year ago

We need to wait to the contract to be upgraded, so we can test on the rest on the EVM's chains