You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK currently requires developers to manually generate or fetch proofs (e.g., Wormhole VAAs, transaction signatures, or EVM logs) for critical operations like finalizeTransfer and deployToken. While these methods expect parameters such as signature or vaa, the SDK lacks utilities to programmatically obtain these values, forcing developers to:
Implement external logic for proof retrieval (e.g., querying Wormhole for VAAs).
// 1. Initiate transferconstresult=awaitomniTransfer(nearAccount,transfer);// 2. Fetch VAA using txHashconstvaa=awaitapi.getVaaForTransfer(result.txId);// 3. Finalize transfer with VAAconstethClient=getClient(ChainKind.Eth,ethWallet);awaitethClient.finalizeTransfer(transferMessage,vaa);
Token Deployment Support
// Fetch signature for NEAR token deploymentconstsignature=awaitnearClient.getDeploymentSignature("near:token.near");awaitnearClient.deployToken(signature,{ ... });
Acceptance Criteria
Implement getVaaForTransfer using Wormhole’s SDK (supports EVM, NEAR, Solana).
Add getTransferSignature to fetch chain-specific proofs (e.g., EVM logs, NEAR signatures).
Add getDeploymentSignature for token deployment workflows.
Update README examples to demonstrate proof retrieval (see below).
Add error handling for invalid/missing transactions or proofs.
Example Documentation Update
Before (Ambiguous):
// Signature is undefined in exampleawaitclient.deployToken(signature,{ ... });
Problem
The SDK currently requires developers to manually generate or fetch proofs (e.g., Wormhole VAAs, transaction signatures, or EVM logs) for critical operations like
finalizeTransfer
anddeployToken
. While these methods expect parameters such assignature
orvaa
, the SDK lacks utilities to programmatically obtain these values, forcing developers to:This increases integration complexity and risks errors in production workflows.
Proposed Solution
Introduce chain-specific proof generation utilities to simplify fetching/generating required proofs. These utilities will:
finalizeTransfer
,deployToken
) without changing their signatures.Key Features to Implement
Proof Retrieval Helpers
TransferInitiated
) and generate Merkle proofs.Updated Workflow Example
Token Deployment Support
Acceptance Criteria
getVaaForTransfer
using Wormhole’s SDK (supports EVM, NEAR, Solana).getTransferSignature
to fetch chain-specific proofs (e.g., EVM logs, NEAR signatures).getDeploymentSignature
for token deployment workflows.Example Documentation Update
Before (Ambiguous):
After (With Utilities):
Additional Context
@wormhole-foundation/wormhole-sdk
as a dependency.The text was updated successfully, but these errors were encountered: