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
17 changes: 17 additions & 0 deletions .changeset/swapkit-sdk-2zu3049yu0a5n.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"@swapkit/sdk": patch
"@swapkit/wallet-extensions": patch
"@swapkit/wallet-hardware": patch
"@swapkit/wallet-mobile": patch
"@swapkit/wallets": patch
---

Update SwapKit SDK dependencies:

- @swapkit/core: 4.4.40 → 4.4.42
- @swapkit/helpers: 4.15.1 → 4.15.3
- @swapkit/plugins: 4.6.54 → 4.6.56
- @swapkit/server: 4.3.8 → 4.3.10
- @swapkit/toolboxes: 4.19.0 → 4.20.1
- @swapkit/wallet-core: 4.3.8 → 4.3.10
- @swapkit/wallet-keystore: 4.4.8 → 4.4.10
76 changes: 38 additions & 38 deletions bun.lock

Large diffs are not rendered by default.

26 changes: 10 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,29 @@
"@cosmjs/proto-signing": "0.37.0",
"@cosmjs/stargate": "0.37.0",
"@scure/bip32": "2.2.0",
"@swapkit/core": "^4.4.40",
"@swapkit/helpers": "^4.15.1",
"@swapkit/plugins": "^4.6.54",
"@swapkit/server": "^4.3.8",
"@swapkit/toolboxes": "^4.19.0",
"@swapkit/wallet-core": "^4.3.8",
"@swapkit/wallet-keystore": "^4.4.8",
"@swapkit/core": "^4.4.42",
"@swapkit/helpers": "^4.15.3",
"@swapkit/plugins": "^4.6.56",
"@swapkit/server": "^4.3.10",
"@swapkit/toolboxes": "^4.20.1",
"@swapkit/wallet-core": "^4.3.10",
"@swapkit/wallet-keystore": "^4.4.10",
"@types/bun": "1.3.13",
"@types/node": "25.6.0",
"ledger-bitcoin": "0.3.0",
"typescript": "6.0.3",
"zod": "4.4.3"
},
"name": "swapkit-wallets",
"overrides": {
"nuqs": "2.8.9"
},
"overrides": { "nuqs": "2.8.9" },
"packageManager": "bun@1.3.13",
"private": true,
"scripts": {
"announce:release": "bun run ./tools/announce-release.ts",
"build": "bun run --filter './packages/*' build",
"build:ci": "bun run build && bun run build:dts",
"build:clean": "bun run --filter './packages/*' build:clean",
"build:dts": "bun run ./tools/builder/dts.ts",
"announce:release": "bun run ./tools/announce-release.ts",
"changeset": "bunx changeset",
"enrich:changelogs": "bun run ./tools/enrich-dep-changelogs.ts && bun run ./tools/enrich-internal-changelogs.ts",
"enrich:dep-changelogs": "bun run ./tools/enrich-dep-changelogs.ts",
Expand All @@ -47,9 +45,5 @@
"type-check:ci": "bun run --filter './packages/*' type-check",
"version-bump": "bunx changeset version && bun run enrich:changelogs && bun install"
},
"workspaces": [
"packages/*",
"playgrounds/*",
"tools/*"
]
"workspaces": ["packages/*", "playgrounds/*", "tools/*"]
}
29 changes: 10 additions & 19 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.40",
"@swapkit/helpers": "^4.15.1",
"@swapkit/plugins": "^4.6.54",
"@swapkit/server": "^4.3.8",
"@swapkit/toolboxes": "^4.19.0",
"@swapkit/wallet-core": "^4.3.8",
"@swapkit/wallet-keystore": "^4.4.8",
"@swapkit/core": "^4.4.42",
"@swapkit/helpers": "^4.15.3",
"@swapkit/plugins": "^4.6.56",
"@swapkit/server": "^4.3.10",
"@swapkit/toolboxes": "^4.20.1",
"@swapkit/wallet-core": "^4.3.10",
"@swapkit/wallet-keystore": "^4.4.10",
"@swapkit/wallets": "workspace:*",
"cosmjs-types": "0.10.1"
},
Expand Down Expand Up @@ -45,21 +45,12 @@
"types": "./dist/types/wallets.d.ts"
}
},
"files": [
"dist/",
"src/"
],
"files": ["dist/", "src/"],
"homepage": "https://github.com/swapkit/wallets",
"license": "SEE LICENSE IN LICENSE",
"name": "@swapkit/sdk",
"publishConfig": {
"access": "public"
},
"repository": {
"directory": "packages/sdk",
"type": "git",
"url": "git+https://github.com/swapkit/wallets.git"
},
"publishConfig": { "access": "public" },
"repository": { "directory": "packages/sdk", "type": "git", "url": "git+https://github.com/swapkit/wallets.git" },
"scripts": {
"build": "bun run ./build.ts",
"build:clean": "rm -rf dist && bun run ./build.ts",
Expand Down
15 changes: 5 additions & 10 deletions packages/wallet-extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"@near-js/transactions": "~2.5.0",
"@scure/base": "~2.2.0",
"@solana/web3.js": "~1.98.4",
"@swapkit/helpers": "^4.15.1",
"@swapkit/toolboxes": "^4.19.0",
"@swapkit/helpers": "^4.15.3",
"@swapkit/toolboxes": "^4.20.1",
"@swapkit/utxo-signer": "^2.2.2",
"@swapkit/wallet-core": "^4.3.8",
"@swapkit/wallet-core": "^4.3.10",
"@wallet-standard/app": "^1.1.1",
"cosmjs-types": "0.10.1",
"ethers": "^6.14.0",
Expand Down Expand Up @@ -137,16 +137,11 @@
"types": "./dist/types/vultisig/index.d.ts"
}
},
"files": [
"dist/",
"src/"
],
"files": ["dist/", "src/"],
"homepage": "https://github.com/swapkit/wallets",
"license": "SEE LICENSE IN LICENSE",
"name": "@swapkit/wallet-extensions",
"publishConfig": {
"access": "public"
},
"publishConfig": { "access": "public" },
"repository": {
"directory": "packages/wallet-extensions",
"type": "git",
Expand Down
13 changes: 7 additions & 6 deletions packages/wallet-extensions/src/trustwallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SwapKitError,
WalletOption,
} from "@swapkit/helpers";
import type { TONTransactionMessage } from "@swapkit/toolboxes/ton";
import type { TONTransactionInput } from "@swapkit/toolboxes/ton";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import type { Eip1193Provider } from "ethers";
import type { ExtensionWallet } from "../walletTypes";
Expand Down Expand Up @@ -65,8 +65,9 @@ async function connectTon() {
const { getTONToolbox } = await import("@swapkit/toolboxes/ton");
const toolbox = getTONToolbox();

async function sendTonTransaction(messages: TONTransactionMessage[]) {
async function sendTonTransaction(transaction: TONTransactionInput) {
const validUntil = Math.floor(Date.now() / 1000) + 300;
const messages = Array.isArray(transaction) ? transaction : transaction.messages;

const txResult = (await tonProvider.send("ton_sendTransaction", [
{ from: address, messages, network: "-239", valid_until: validUntil },
Expand All @@ -78,12 +79,12 @@ async function connectTon() {
}

async function transfer(params: GenericTransferParams) {
const messages = await toolbox.createTransaction({ ...params, sender: address });
return sendTonTransaction(messages);
const transaction = await toolbox.createTransaction({ ...params, sender: address });
return sendTonTransaction(transaction);
}

function signAndBroadcastTransaction(messages: TONTransactionMessage[]) {
return sendTonTransaction(messages);
function signAndBroadcastTransaction(transaction: TONTransactionInput) {
return sendTonTransaction(transaction);
}

return { ...toolbox, address, getBalance: () => toolbox.getBalance(address), signAndBroadcastTransaction, transfer };
Expand Down
15 changes: 5 additions & 10 deletions packages/wallet-hardware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"@near-js/transactions": "~2.5.0",
"@scure/base": "2.2.0",
"@scure/bip32": "2.2.0",
"@swapkit/helpers": "^4.15.1",
"@swapkit/toolboxes": "^4.19.0",
"@swapkit/helpers": "^4.15.3",
"@swapkit/toolboxes": "^4.20.1",
"@swapkit/utxo-signer": "^2.2.2",
"@swapkit/wallet-core": "^4.3.8",
"@swapkit/wallet-core": "^4.3.10",
"@trezor/connect-web": "~9.7.3",
"cosmjs-types": "~0.10.1",
"ethers": "^6.14.0",
Expand Down Expand Up @@ -91,16 +91,11 @@
"types": "./dist/types/trezor/index.d.ts"
}
},
"files": [
"dist/",
"src/"
],
"files": ["dist/", "src/"],
"homepage": "https://github.com/swapkit/wallets",
"license": "SEE LICENSE IN LICENSE",
"name": "@swapkit/wallet-hardware",
"publishConfig": {
"access": "public"
},
"publishConfig": { "access": "public" },
"repository": {
"directory": "packages/wallet-hardware",
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-hardware/src/ledger/clients/xrp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const XRPLedger = async (derivationPath?: DerivationPathArray, injectedTr
const { address, publicKey } = await xrpInstance.getAddress(path);

async function signTransaction(transaction: Payment | RippleTransaction) {
const { hashes } = await import("@swapkit/toolboxes/ripple");
const { hashes } = await import("xrpl");
const cleanedTxWithPubKey = cleanTransactionObject(transaction);
const transactionJSON = {
...cleanedTxWithPubKey,
Expand Down
15 changes: 3 additions & 12 deletions packages/wallet-mobile/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"author": "swapkit",
"dependencies": {
"@swapkit/helpers": "^4.15.1",
"@swapkit/toolboxes": "^4.19.0",
"@swapkit/wallet-core": "^4.3.8"
},
"dependencies": { "@swapkit/helpers": "^4.15.3", "@swapkit/toolboxes": "^4.20.1", "@swapkit/wallet-core": "^4.3.10" },
"description": "SwapKit - Wallet Mobile",
"exports": {
".": {
Expand All @@ -14,16 +10,11 @@
"types": "./dist/types/index.d.ts"
}
},
"files": [
"dist/",
"src/"
],
"files": ["dist/", "src/"],
"homepage": "https://github.com/swapkit/wallets",
"license": "SEE LICENSE IN LICENSE",
"name": "@swapkit/wallet-mobile",
"publishConfig": {
"access": "public"
},
"publishConfig": { "access": "public" },
"repository": {
"directory": "packages/wallet-mobile",
"type": "git",
Expand Down
21 changes: 6 additions & 15 deletions packages/wallets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"@radixdlt/radix-dapp-toolkit": "~2.3.0",
"@scure/base": "~2.2.0",
"@scure/bip39": "~2.2.0",
"@swapkit/helpers": "^4.15.1",
"@swapkit/toolboxes": "^4.19.0",
"@swapkit/helpers": "^4.15.3",
"@swapkit/toolboxes": "^4.20.1",
"@swapkit/utxo-signer": "^2.2.2",
"@swapkit/wallet-core": "^4.3.8",
"@swapkit/wallet-core": "^4.3.10",
"@swapkit/wallet-extensions": "workspace:*",
"@swapkit/wallet-hardware": "workspace:*",
"@walletconnect/modal": "~2.7.0",
Expand Down Expand Up @@ -205,21 +205,12 @@
"types": "./dist/types/xaman/index.d.ts"
}
},
"files": [
"dist/",
"src/"
],
"files": ["dist/", "src/"],
"homepage": "https://github.com/swapkit/wallets",
"license": "SEE LICENSE IN LICENSE",
"name": "@swapkit/wallets",
"publishConfig": {
"access": "public"
},
"repository": {
"directory": "packages/wallets",
"type": "git",
"url": "git+https://github.com/swapkit/wallets.git"
},
"publishConfig": { "access": "public" },
"repository": { "directory": "packages/wallets", "type": "git", "url": "git+https://github.com/swapkit/wallets.git" },
"scripts": {
"build": "bun run ./build.ts",
"build:clean": "rm -rf dist && bun run ./build.ts",
Expand Down
Loading