Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .changeset/wallet-direct-signing-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@swapkit/wallet-extensions": minor
"@swapkit/wallet-hardware": minor
"@swapkit/wallet-mobile": minor
"@swapkit/wallets": minor
---

Per-wallet `directSigningSupport` mappings for the V3 swap flow

- Bump `@swapkit/wallet-core` to `^4.2.0` and delete the duplicated local `core.ts` files in `wallets`, `wallet-extensions`, and `wallet-hardware` — every wallet module now imports `createWallet` / `getWalletSupportedChains` from `@swapkit/wallet-core` directly.
- Stamp `directSigningSupport: Partial<Record<Chain, boolean>>` on every `createWallet({...})` call so the SDK can decide V3 routing per (wallet, chain) without consulting a central map.
- Wire two real signers as part of the rollout:
- **Xaman / Ripple** — `submitXamanPayload` now exposes the signed `hex` blob and accepts `{ submit: false }`; a new `ChainSigner` wraps `xumm.payload.createAndSubscribe` and is passed to `getRippleToolbox({ signer })`, unblocking V3 for XRPL.
- **Ledger / Cosmos Hub** — pass the existing `CosmosLedger` (already an `OfflineAminoSigner`) into `getCosmosToolbox(Chain.Cosmos, { signer })`, unblocking V3 for ATOM. Bespoke `transfer` retained for back-compat.
- BitGet Cosmos: switch `getOfflineSignerOnlyAmino` → `getOfflineSignerAuto` so V3 proto SignDocs sign natively (Ledger via BitGet still falls back to amino).
- WalletConnect EVM: fix latent bugs flagged by the V3 audit — add Aurora and Berachain to the EVM `getToolbox` switch, register `XLAYER_MAINNET_ID` so XLayer's namespace negotiation works.
80 changes: 40 additions & 40 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"dependencies": {
"@swapkit/core": "4.4.11",
"@swapkit/helpers": "4.12.9",
"@swapkit/plugins": "4.6.24",
"@swapkit/server": "4.2.35",
"@swapkit/toolboxes": "4.14.4",
"@swapkit/wallet-core": "4.1.28",
"@swapkit/wallet-keystore": "4.3.16"
"@swapkit/core": "4.4.12",
"@swapkit/helpers": "4.13.0",
"@swapkit/plugins": "4.6.26",
"@swapkit/server": "4.2.37",
"@swapkit/toolboxes": "4.14.5",
"@swapkit/wallet-core": "4.2.0",
"@swapkit/wallet-keystore": "4.3.18"
},
"devDependencies": {
"@biomejs/biome": "2.3.11",
Expand All @@ -21,14 +21,14 @@
},
"name": "swapkit-wallets",
"overrides": {
"@swapkit/core": "4.4.11",
"@swapkit/helpers": "4.12.9",
"@swapkit/plugins": "4.6.24",
"@swapkit/server": "4.2.35",
"@swapkit/toolboxes": "4.14.4",
"@swapkit/core": "4.4.12",
"@swapkit/helpers": "4.13.0",
"@swapkit/plugins": "4.6.26",
"@swapkit/server": "4.2.37",
"@swapkit/toolboxes": "4.14.5",
"@swapkit/types": "0.7.3",
"@swapkit/wallet-core": "4.1.28",
"@swapkit/wallet-keystore": "4.3.16"
"@swapkit/wallet-core": "4.2.0",
"@swapkit/wallet-keystore": "4.3.18"
},
"packageManager": "bun@1.3.4",
"private": true,
Expand Down
14 changes: 7 additions & 7 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"author": "swapkit-dev",
"dependencies": {
"@stricahq/typhonjs": "~3.0.1",
"@swapkit/core": "^4.4.11",
"@swapkit/helpers": "^4.12.9",
"@swapkit/plugins": "^4.6.18",
"@swapkit/server": "^4.2.29",
"@swapkit/toolboxes": "^4.14.4",
"@swapkit/wallet-core": "^4.1.23",
"@swapkit/wallet-keystore": "^4.3.10",
"@swapkit/core": "^4.4.12",
"@swapkit/helpers": "^4.13.0",
"@swapkit/plugins": "^4.6.26",
"@swapkit/server": "^4.2.37",
"@swapkit/toolboxes": "^4.14.5",
"@swapkit/wallet-core": "^4.2.0",
"@swapkit/wallet-keystore": "^4.3.18",
"@swapkit/wallets": "workspace:*",
"cosmjs-types": "0.10.1"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/wallet-extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"@near-js/transactions": "~2.5.0",
"@scure/base": "~2.0.0",
"@solana/web3.js": "~1.98.4",
"@swapkit/helpers": "^4.12.9",
"@swapkit/toolboxes": "^4.14.4",
"@swapkit/helpers": "^4.13.0",
"@swapkit/wallet-core": "^4.2.0",
"@swapkit/toolboxes": "^4.14.5",
"@swapkit/utxo-signer": "^2.1.1",
"cosmjs-types": "0.10.1",
"ethers": "^6.14.0",
Expand Down
10 changes: 9 additions & 1 deletion packages/wallet-extensions/src/bitget/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Chain, EVMChains, filterSupportedChains, WalletOption } from "@swapkit/helpers";
import { createWallet, getWalletSupportedChains } from "../core";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";

import { getWalletMethods } from "./helpers";

Expand All @@ -18,6 +18,14 @@ export const bitgetWallet = createWallet({

return true;
},
directSigningSupport: {
...Object.fromEntries(EVMChains.map((chain) => [chain, true])),
[Chain.Bitcoin]: true,
[Chain.Cosmos]: true,
[Chain.Solana]: true,
[Chain.Tron]: true,
// [Chain.Aptos]: blocked on toolbox — getAptosToolbox needs to accept AptosExtensionProvider
},
name: "connectBitget",
supportedChains: [...EVMChains, Chain.Cosmos, Chain.Bitcoin, Chain.Solana, Chain.Tron],
walletType: WalletOption.BITGET,
Expand Down
37 changes: 0 additions & 37 deletions packages/wallet-extensions/src/core.ts

This file was deleted.

Loading