Skip to content

contract_manager: @certusone/wormhole-sdk -> @wormhole-foundation/sdk#3760

Draft
matej-douro wants to merge 1 commit into
mainfrom
matej/contract-manager-wormhole-sdk
Draft

contract_manager: @certusone/wormhole-sdk -> @wormhole-foundation/sdk#3760
matej-douro wants to merge 1 commit into
mainfrom
matej/contract-manager-wormhole-sdk

Conversation

@matej-douro
Copy link
Copy Markdown
Contributor

Summary

  • governance.ts: swap certusone Solana PDA helpers for the identical functions from @wormhole-foundation/sdk-solana-core
  • executor.ts, sui.ts, scripts: replace parseVaa with deserialize("Uint8Array", ...) from @wormhole-foundation/sdk-definitions
  • executor.ts: use chainToChainId from @wormhole-foundation/sdk-base for the emitterChain comparison
  • sui.ts, iota.ts: inline uint8ArrayToBCS using @mysten/sui/bcs and @iota/iota-sdk/bcs respectively
  • remove preserve-native-fetch.ts: the workaround for near-api-js@1.x clobbering globalThis.fetch is no longer needed; near-api-js@3.x (direct dep) uses a nullish-coalescing fallback and never overwrites it
  • formatting, fixing low-hanging lints

Rationale

The @certusone/wormhole-sdk is already deprecated for a long time, and proto-web sub-package imports long without declaring it as a dependency, causing a MODULE_NOT_FOUND crash under pnpm. If things go well, we can follow suit with xc_admin packages.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

The certusone SDK is deprecated for a long time already, and proto-web
sub-package imports `long` without declaring
it as a dependency, causing a MODULE_NOT_FOUND crash under pnpm's strict
package isolation. If things go well, we can follow suit with xc_admin
packages.

- governance.ts: swap certusone Solana PDA helpers for the identical
  functions from @wormhole-foundation/sdk-solana-core (utils namespace)
- executor.ts, sui.ts, scripts: replace parseVaa with
  deserialize("Uint8Array", ...) from
  @wormhole-foundation/sdk-definitions
- executor.ts: use chainToChainId from @wormhole-foundation/sdk-base for
  the emitterChain numeric comparison; use BigInt() for sequence
  comparison to avoid precision loss
- sui.ts, iota.ts: inline uint8ArrayToBCS using @mysten/sui/bcs and
  @iota/iota-sdk/bcs respectively
- remove preserve-native-fetch.ts: the workaround for near-api-js@1.x
  clobbering globalThis.fetch is no longer needed; near-api-js@3.x
  (direct dep) uses a nullish-coalescing fallback and never overwrites
  it
@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
api-reference Ready Ready Preview, Comment May 26, 2026 12:02pm
component-library Ready Ready Preview, Comment May 26, 2026 12:02pm
developer-hub Ready Ready Preview, Comment May 26, 2026 12:02pm
4 Skipped Deployments
Project Deployment Actions Updated (UTC)
entropy-explorer Skipped Skipped May 26, 2026 12:02pm
insights Skipped Skipped May 26, 2026 12:02pm
proposals Skipped Skipped May 26, 2026 12:02pm
staking Skipped Skipped May 26, 2026 12:02pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant