Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wormhole-foundation/sdk-definitions

Package Overview
Dependencies
Maintainers
0
Versions
260
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.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6K
decreased by-14.17%
Maintainers
0
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 23 Dec 2024

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