Wormhole
Search…
Governance
Wormhole contracts are managed via governance by the guardian set. There are currently several pre-defined governance actions that the wormhole contracts can perform ranging from contract upgrades to guardian set updates. These actions are emitted as normal wormhole messages by a governance contract, which exists at the following pseudo-location:
1
Chain: 1
2
Emitter: 0x0000000000000000000000000000000000000000000000000000000000000004
Copied!
Governance messages can target any of the various wormhole modules, including the core contracts as well as all currently deployed token bridge contracts. When a guardian signs such a message, its signature implies a vote on the action in question. Once more than 2/3 of the guardians have signed, the message and governance action are considered valid.

Action Structure

Governance messages contain pre-defined actions, which can target the various wormhole modules currently deployed on chain. The structure contains the following fields:
1
u8[32] module Contains a right-aligned module identifier
2
u8 action Predefined governance action to execute
3
u16 chain Chain the action is targetting, 0 = all chains
4
... args Arguments to the action
Copied!
Here is an example message containing a governance action triggering a code upgrade to the solana core contract. The module field here is a right-aligned encoding of the ASCII "Core", represented as a 32 byte hex string.
1
module: 0x00000000000000000000000000000000000000000000000000000000436f7265
2
action: 1
3
chain: 1
4
new_contract: 0x3485672937589571623749593761923748845625222819374462348283888283
Copied!

Actions

The meaning of each numeric action is pre-defined and documented in the wormhole design documents. For each application, the relevant definitions can be found via these links:
  • Core governance actions are documented here.
  • Token Bridge governance actions are documented here.
  • NFT Bridge governance actions are documented here.
Copy link