🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@wormhole-foundation/sdk-definitions

Package Overview
Dependencies
Maintainers
1
Versions
307
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wormhole-foundation/sdk-definitions

Replaces these files from old sdk: * vaa/parser * mock

1.18.0
latest
Source
npm
Version published
Weekly downloads
7.9K
1.06%
Maintainers
1
Weekly downloads
 
Created
Source

Definitions SDK

Replaces these files from old sdk:

  • vaa/parser
  • mock

VAA

Deserialization

// decode VAA
const vaaBytes = Buffer.from(testCase.vaa, "base64");
// deserializes the base VAA details (emitterChain, emitterAddress, sequence, signatures, payload, hash, etc)
const parsed = deserialize("Uint8Array", new Uint8Array(vaaBytes));
// deserialize the payload, first argument denotes the type of payload
const deserialized = deserializePayload("BAMessage", parsed.payload);

Available payload types

Token Bridge:

  • "AttestMeta"
  • "Transfer"
  • "TransferWithPayload

Generic Relayer:

  • "DeliveryInstruction"
  • "RedeliveryInstruction"
  • "DeliveryOverride"

Governance

  • "WormholeCoreUpgradeContract"
  • "WormholeCoreGuardianSetUpgrade"
  • "WormholeCoreSetMessageFee"
  • "WormholeCoreTransferFees"
  • "WormholeCoreRecoverChainId"
  • "TokenBridgeRegisterChain"
  • "TokenBridgeUpgradeContract"
  • "TokenBridgeRecoverChainId"
  • "NftBridgeRegisterChain"
  • "NftBridgeUpgradeContract"
  • "NftBridgeRecoverChainId"
  • "RelayerRegisterChain"
  • "RelayerUpgradeContract"
  • "RelayerUpdateDefaultProvider"

Circle

  • "CircleTransferRelay"

BAM

  • "BAMessage"

FAQs

Package last updated on 13 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts