Definitions SDK
Replaces these files from old sdk:
VAA
Deserialization
const vaaBytes = Buffer.from(testCase.vaa, "base64");
const parsed = deserialize("Uint8Array", new Uint8Array(vaaBytes));
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
BAM