Crate wormhole_sdk

Crate wormhole_sdk 

Source
Expand description

The core module provides all the pure Rust Wormhole primitives.

This crate provides chain-agnostic types from Wormhole for consumption in on-chain contracts and within other chain-specific Wormhole Rust SDK’s. It includes:

  • Constants containing known network data/addresses.
  • Parsers for VAA’s and Payloads.
  • Data types for Wormhole primitives such as GuardianSets and signatures.
  • Verification Primitives for securely checking payloads.

Re-exports§

pub use vaa::Vaa;

Modules§

accountant
Parsers for Accountant Actions..
accountant_modification
core
Parsers for core bridge VAAs.
ibc_receiver
ibc_translator
nft
Parsers for NFT bridge VAA Actions..
ntt_accountant
Parsers for NTT Accountant Actions.
relayer
Parsers for Standardized Relayer VAAs.
token
Parsers for Token bridge VAAs.
vaa
VAA’s represent a collection of signatures combined with a message and its metadata. VAA’s are used as a form of proof; by submitting a VAA to a target contract, the receiving contract can make assumptions about the validity of state on the source chain.

Structs§

Address
Wormhole specifies addresses as 32 bytes. Addresses that are shorter, for example 20 byte Ethereum addresses, are left zero padded to 32.
Amount
Wormhole specifies an amount as a uint256 encoded in big-endian order.
GuardianAddress
GuardianSetInfo
A GuardianSet is a versioned set of keys that can sign Wormhole messages.

Enums§

Chain

Constants§

GOVERNANCE_EMITTER
The GOVERNANCE_EMITTER is a special address Wormhole guardians trust to observe governance actions from. The value is “0000000000000000000000000000000000000000000000000000000000000004”.