0.4.0-beta.10 • Published 4 months ago

@bsktfi/sdk-definitions v0.4.0-beta.10

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

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"
0.4.0-beta.50

4 months ago

0.4.0-beta.40

4 months ago

0.4.0-beta.30

4 months ago

0.4.0-beta.25

4 months ago

0.4.0-beta.23

4 months ago

0.4.0-beta.16.5

4 months ago

0.4.0-beta.16

4 months ago

0.4.0-beta.15

4 months ago

0.4.0-beta.14

4 months ago

0.4.0-beta.10

4 months ago