LibWormhole
Contains several functions for interacting with a Wormhole bridge, which is a cross-chain communication protocol that allows tokens and other data to be transferred between different blockchains.
updateSettings()
updates the wormholeSettings variable in the AppStorage struct with the provided wormholeSettings input parameter. The new settings are emitted in an UpdateWormholeSettings event.
Input
addWormholeNetworkIds()
adds multiple chainIds and networkIds to the wormholeNetworkIds mapping in AppStorage. The new mappings are emitted in an AddWormholeNetworkIds event.
Input
dataTransfer()
transfers data across the Wormhole bridge by calling the publishMessage function on a Wormhole core contract with a given payload, timestamp, and consistency level.
Input
getPayload()
verifies and returns the payload of a Wormhole message. It uses the parseAndVerifyVM function on a Wormhole core contract to check the validity of the message, and then extracts and returns the payload of the message..
Input
Output
getCoreSequence()
this function is responsible for retrieving the core sequence value from the s.wormholeCoreSequences
mapping based on the provided transferKeyCoreSequence
.
Input
Output
Events:
Last updated