Socket
Socket
Sign inDemoInstall

@wormhole-foundation/sdk-definitions

Package Overview
Dependencies
Maintainers
4
Versions
239
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


Version published
Weekly downloads
5.9K
increased by7.75%
Maintainers
4
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 30 Oct 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc