Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

IGovernanceCrosschain

Overview

License: Apache-2.0-or-later

interface IGovernanceCrosschain

Errors info

GovReceiverInvalidVaa

error GovReceiverInvalidVaa(string reason)

Thrown when the Wormhole core contract reports an invalid VAA.

GovReceiverUnknownEmitter

error GovReceiverUnknownEmitter()

Thrown when the VAA emitter is not the trusted sender-chain governance proxy.

GovReceiverWrongChain

error GovReceiverWrongChain(uint16 targetChainId, uint16 localChainId)

Thrown when the VAA is intended for a different target chain.

GovReceiverLocalEmitter

Thrown when the receiver would accept messages from its own chain.

GovReceiverInvalidSequence

Thrown when the VAA sequence is lower than the next minimum sequence.

GovReceiverMessageExpired

Thrown when the VAA is older than the execution window.

GovReceiverNotConfigured

Thrown when the governance strategy has no Wormhole address configured.

Functions info

receiveMessage (0xf953cec7)

Consumes a Wormhole VAA and executes the governance actions it contains.

Sequences must be strictly monotonically increasing but need not be consecutive: a message that reverts is never consumed and can be skipped by delivering any later message. A failing action reverts the whole message with the target's return data.

Parameters:

Name
Type
Description

encodedMessage

bytes

The raw verified VAA bytes.

nextMinimumSequence (0x7b305b32)

Minimum Wormhole sequence accepted by the next receiveMessage call.

Last updated