Skip to content

feat: native wdk integration with ows#199

Merged
njdawn merged 1 commit intomainfrom
nj/wdk-integration
Apr 8, 2026
Merged

feat: native wdk integration with ows#199
njdawn merged 1 commit intomainfrom
nj/wdk-integration

Conversation

@njdawn
Copy link
Copy Markdown
Contributor

@njdawn njdawn commented Apr 8, 2026

Summary

Adds a WDK (Wallet Development Kit) adapter to @open-wallet-standard/adapters, following the same pattern as the existing viem and Solana adapters.

  • owsToWdkAccount(walletNameOrId, chain, options) wraps an OWS wallet as a WDK-compatible IWalletAccount object
  • Maps WDK chain names ("evm", "solana", "btc", "ton", "tron", "cosmos", "sui", "xrpl", "filecoin", "spark") to OWS CAIP-2 identifiers
  • Signing delegated to OWS core — keys never leave the vault
  • Available via subpath import: @open-wallet-standard/adapters/wdk

Usage

import { owsToWdkAccount } from '@open-wallet-standard/adapters/wdk';

const account = owsToWdkAccount('my-wallet', 'evm');

await account.getAddress();                    // "0x..."
await account.sign(Buffer.from('hello'));       // Uint8Array
await account.sendTransaction(txHex);           // tx hash

Files changed

  • src/wdk.js — adapter implementation
  • src/wdk.d.ts — TypeScript declarations (WdkCompatibleAccount, OwsWdkAccountOptions)
  • __test__/wdk.spec.mjs — 12 tests (chain resolution, signing, OWS SDK parity, error cases)
  • src/index.js / src/index.d.ts — re-exports
  • package.json./wdk subpath export, @tetherto/wdk-wallet as optional peer dep

Test plan

  • All 12 WDK adapter tests pass
  • Existing viem (10) and Solana (6) tests unaffected — full suite 28/28
  • Verify sign() output is usable with WDK protocol modules (swap, bridge, etc.)

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 8, 2026

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

Project Deployment Actions Updated (UTC)
ol-ows-docs Ready Ready Preview Apr 8, 2026 5:53pm

Request Review

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 8, 2026

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@njdawn njdawn force-pushed the nj/wdk-integration branch from 7e4613a to 0cca866 Compare April 8, 2026 17:53
@njdawn njdawn merged commit decf5c4 into main Apr 8, 2026
9 checks passed
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