From 63b90f6aba269f5911f38d004fb54b8de15ec6d5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 30 Jun 2026 12:39:56 +0400 Subject: [PATCH] chore: bump SwapKit dependencies --- .changeset/swapkit-sdk-2zu3049yu0a5n.md | 17 +++++ bun.lock | 76 +++++++++---------- package.json | 26 +++---- packages/sdk/package.json | 29 +++---- packages/wallet-extensions/package.json | 15 ++-- .../src/trustwallet/index.ts | 13 ++-- packages/wallet-hardware/package.json | 15 ++-- .../wallet-hardware/src/ledger/clients/xrp.ts | 2 +- packages/wallet-mobile/package.json | 15 +--- packages/wallets/package.json | 21 ++--- 10 files changed, 102 insertions(+), 127 deletions(-) create mode 100644 .changeset/swapkit-sdk-2zu3049yu0a5n.md diff --git a/.changeset/swapkit-sdk-2zu3049yu0a5n.md b/.changeset/swapkit-sdk-2zu3049yu0a5n.md new file mode 100644 index 0000000..cb6b480 --- /dev/null +++ b/.changeset/swapkit-sdk-2zu3049yu0a5n.md @@ -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 diff --git a/bun.lock b/bun.lock index 6430e96..fca7640 100644 --- a/bun.lock +++ b/bun.lock @@ -12,13 +12,13 @@ "@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", @@ -28,23 +28,23 @@ }, "packages/sdk": { "name": "@swapkit/sdk", - "version": "4.6.33", + "version": "4.6.35", "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", }, }, "packages/wallet-extensions": { "name": "@swapkit/wallet-extensions", - "version": "4.5.19", + "version": "4.5.21", "dependencies": { "@aptos-labs/ts-sdk": "~1.34.0", "@cosmjs/amino": "~0.37.0", @@ -56,10 +56,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", @@ -86,7 +86,7 @@ }, "packages/wallet-hardware": { "name": "@swapkit/wallet-hardware", - "version": "4.9.20", + "version": "4.9.22", "dependencies": { "@cosmjs/amino": "~0.37.0", "@cosmjs/crypto": "0.37.0", @@ -109,10 +109,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", @@ -154,16 +154,16 @@ }, "packages/wallet-mobile": { "name": "@swapkit/wallet-mobile", - "version": "4.3.13", + "version": "4.3.14", "dependencies": { - "@swapkit/helpers": "^4.15.1", - "@swapkit/toolboxes": "^4.19.0", - "@swapkit/wallet-core": "^4.3.8", + "@swapkit/helpers": "^4.15.3", + "@swapkit/toolboxes": "^4.20.1", + "@swapkit/wallet-core": "^4.3.10", }, }, "packages/wallets": { "name": "@swapkit/wallets", - "version": "4.8.25", + "version": "4.8.27", "dependencies": { "@coinbase/wallet-sdk": "~4.3.7", "@cosmjs/amino": "~0.37.0", @@ -179,10 +179,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", @@ -1092,19 +1092,19 @@ "@swapkit/contracts": ["@swapkit/contracts@4.1.5", "", {}, "sha512-0OZ+A4d68XIoqXWxZL10ahF+MKuT2J215oeeJZB1bAk5mu9oBfl1qeBl6IWbp1RnKMcpecm5K2hTGlCsKpR+TQ=="], - "@swapkit/core": ["@swapkit/core@4.4.40", "", { "dependencies": { "@swapkit/helpers": "4.15.1", "@swapkit/plugins": "4.6.54", "@swapkit/toolboxes": "4.19.0", "@swapkit/wallet-core": "4.3.8" }, "peerDependencies": { "@stricahq/typhonjs": "3.1.0", "cosmjs-types": "0.11.0", "ts-pattern": "5.9.0" } }, "sha512-KEW5pZKb4rVJ8fWy4S+BBxCIfamgTAV2BJQzisKsocDeJDc3W/E8UMIZ1DnTijXA9kTSkg0g84/d6nPEt4jUkQ=="], + "@swapkit/core": ["@swapkit/core@4.4.42", "", { "dependencies": { "@swapkit/helpers": "4.15.3", "@swapkit/plugins": "4.6.56", "@swapkit/toolboxes": "4.20.1", "@swapkit/wallet-core": "4.3.10" }, "peerDependencies": { "@stricahq/typhonjs": "3.1.0", "@ton/core": "0.63.1", "cosmjs-types": "0.11.0", "ts-pattern": "5.9.0" } }, "sha512-wGUKexcYqvqzqIO/c5bvqjvZEFenDAdtnzeMCy8bVGR196hVWtO4jUZKy63m961pexcRrVqwRPliBCu4RN89Bg=="], - "@swapkit/helpers": ["@swapkit/helpers@4.15.1", "", { "dependencies": { "@swapkit/contracts": "4.1.5", "@swapkit/tokens": "4.3.1", "@swapkit/types": "0.9.0" }, "peerDependencies": { "@near-js/providers": "2.5.1", "ethers": "6.16.0", "ts-pattern": "5.9.0", "zod": "4.4.3", "zustand": "5.0.13" } }, "sha512-A3j1SQLI9iKWf3bmnxN3SefTI6mW7B3ecENtmp6A2H7Pa4Rvv06Yn75x1/MjtoNQNSlV+4LjBTa5pywbzNzxJQ=="], + "@swapkit/helpers": ["@swapkit/helpers@4.15.3", "", { "dependencies": { "@swapkit/contracts": "4.1.5", "@swapkit/tokens": "4.3.1", "@swapkit/types": "0.9.0" }, "peerDependencies": { "@near-js/providers": "2.5.1", "ethers": "6.16.0", "ts-pattern": "5.9.0", "zod": "4.4.3", "zustand": "5.0.13" } }, "sha512-OPEdazl5ckubwdeY/h//Lp7kqFwCafCqH6WrDjcXdUW2nzTXCVtGPew8CSDDgvMdOC36ylHzcrnWC2GTzPBU4A=="], - "@swapkit/plugins": ["@swapkit/plugins@4.6.54", "", { "dependencies": { "@swapkit/helpers": "4.15.1", "@swapkit/toolboxes": "4.19.0", "@swapkit/utxo-signer": "2.2.2" }, "peerDependencies": { "@mysten/sui": "2.17.0", "@near-js/transactions": "2.5.1", "@near-js/utils": "2.5.1", "@noble/hashes": "2.2.0", "@scure/base": "2.2.0", "@solana/web3.js": "1.98.4", "ethers": "6.16.0", "ts-pattern": "5.9.0" } }, "sha512-bSBC18XUoJu4VXGexecaIbCUe3GMtjHJIl/HrrFmIiUibEWUqEPl5Dok3qhmfAAeLX5/hWyA4KEIFgTb7gMLNA=="], + "@swapkit/plugins": ["@swapkit/plugins@4.6.56", "", { "dependencies": { "@swapkit/helpers": "4.15.3", "@swapkit/toolboxes": "4.20.1", "@swapkit/utxo-signer": "2.2.2" }, "peerDependencies": { "@mysten/sui": "2.17.0", "@near-js/transactions": "2.5.1", "@near-js/utils": "2.5.1", "@noble/hashes": "2.2.0", "@scure/base": "2.2.0", "@solana/web3.js": "1.98.4", "ethers": "6.16.0", "ts-pattern": "5.9.0" } }, "sha512-Vtpn/AYe8EyaMgUlqTyvVXBSu8kSC2lvh4CV8oBKgdkNwUuHJtTMxChQk9ve8/wX/hwrPdexSpqvdb4gEwtxOg=="], "@swapkit/sdk": ["@swapkit/sdk@workspace:packages/sdk"], - "@swapkit/server": ["@swapkit/server@4.3.8", "", { "dependencies": { "@swapkit/helpers": "4.15.1", "@swapkit/tokens": "4.3.1", "@swapkit/toolboxes": "4.19.0", "@swapkit/wallet-keystore": "4.4.8" }, "peerDependencies": { "ts-pattern": "5.9.0" } }, "sha512-ZWQz9PqjVrk8C5guziYmWAlpMc2YYfbKymAngkGU6514n17kV8oDsjAOu+0bf+Y38fXlnx8uAMXl04Y98ZVNqQ=="], + "@swapkit/server": ["@swapkit/server@4.3.10", "", { "dependencies": { "@swapkit/helpers": "4.15.3", "@swapkit/tokens": "4.3.1", "@swapkit/toolboxes": "4.20.1", "@swapkit/wallet-keystore": "4.4.10" }, "peerDependencies": { "ts-pattern": "5.9.0" } }, "sha512-h5btZ2NNusKqf0UJrrsIA8UsBrj7qUkpisuJ0AHmjDFF6r6jDKWx60+I/UYub5xpJa/9cDoqNq/a8Dc0tNx7wg=="], "@swapkit/tokens": ["@swapkit/tokens@4.3.1", "", { "peerDependencies": { "ts-pattern": "5.9.0" } }, "sha512-q8eBkQxypgG0GNwIBTimbqEg943IO9bo2CAoYk2i4CL68L1wX30yLtT1iHsa+sBsfBfTc5LyKsrJb8e452zqQQ=="], - "@swapkit/toolboxes": ["@swapkit/toolboxes@4.19.0", "", { "dependencies": { "@swapkit/helpers": "4.15.1", "@swapkit/utxo-signer": "2.2.2" }, "peerDependencies": { "@aptos-labs/ts-sdk": "7.0.1", "@cosmjs/amino": "0.39.0", "@cosmjs/crypto": "0.39.0", "@cosmjs/proto-signing": "0.39.0", "@cosmjs/stargate": "0.39.0", "@mysten/sui": "2.17.0", "@near-js/accounts": "2.5.1", "@near-js/crypto": "2.5.1", "@near-js/providers": "2.5.1", "@near-js/signers": "2.5.1", "@near-js/transactions": "2.5.1", "@near-js/utils": "2.5.1", "@noble/curves": "2.2.0", "@noble/hashes": "2.2.0", "@orbs-network/ton-access": "2.3.3", "@polkadot/api": "16.5.6", "@polkadot/keyring": "14.0.3", "@polkadot/rpc-provider": "16.5.6", "@polkadot/util": "14.0.3", "@polkadot/util-crypto": "14.0.3", "@radixdlt/babylon-gateway-api-sdk": "1.10.1", "@radixdlt/radix-dapp-toolkit": "2.3.0", "@scure/base": "2.2.0", "@scure/bip32": "2.2.0", "@scure/bip39": "2.2.0", "@solana/spl-memo": "0.2.5", "@solana/spl-token": "0.4.14", "@solana/web3.js": "1.98.4", "@stellar/stellar-sdk": "15.1.0", "@stricahq/bip32ed25519": "1.1.2", "@stricahq/cbors": "1.0.4", "@stricahq/typhonjs": "3.1.0", "@ton/core": "0.63.1", "@ton/crypto": "3.3.0", "@ton/ton": "16.2.4", "bignumber.js": "9.3.1", "cosmjs-types": "0.11.0", "ethers": "6.16.0", "micro-key-producer": "0.8.6", "near-seed-phrase": "0.2.1", "protobufjs": "8.0.3", "starknet": "10.0.2", "ts-pattern": "5.9.0", "xrpl": "4.6.0" } }, "sha512-4584JfVoeDnJl7ApGmYfGhW2FWr1TqEy5661L0DpbZjrcnK6fK2QHBeKLo+sf+yq1eg2Y3D+99VCzfqOv9Co9A=="], + "@swapkit/toolboxes": ["@swapkit/toolboxes@4.20.1", "", { "dependencies": { "@swapkit/helpers": "4.15.3", "@swapkit/utxo-signer": "2.2.2" }, "peerDependencies": { "@aptos-labs/ts-sdk": "7.0.1", "@cosmjs/amino": "0.39.0", "@cosmjs/crypto": "0.39.0", "@cosmjs/proto-signing": "0.39.0", "@cosmjs/stargate": "0.39.0", "@mysten/sui": "2.17.0", "@near-js/accounts": "2.5.1", "@near-js/crypto": "2.5.1", "@near-js/providers": "2.5.1", "@near-js/signers": "2.5.1", "@near-js/transactions": "2.5.1", "@near-js/utils": "2.5.1", "@noble/curves": "2.2.0", "@noble/hashes": "2.2.0", "@orbs-network/ton-access": "2.3.3", "@polkadot/api": "16.5.6", "@polkadot/keyring": "14.0.3", "@polkadot/rpc-provider": "16.5.6", "@polkadot/util": "14.0.3", "@polkadot/util-crypto": "14.0.3", "@radixdlt/babylon-gateway-api-sdk": "1.10.1", "@radixdlt/radix-dapp-toolkit": "2.3.0", "@scure/base": "2.2.0", "@scure/bip32": "2.2.0", "@scure/bip39": "2.2.0", "@solana/spl-memo": "0.2.5", "@solana/spl-token": "0.4.14", "@solana/web3.js": "1.98.4", "@stellar/stellar-sdk": "15.1.0", "@stricahq/bip32ed25519": "1.1.2", "@stricahq/cbors": "1.0.4", "@stricahq/typhonjs": "3.1.0", "@ton/core": "0.63.1", "@ton/crypto": "3.3.0", "@ton/ton": "16.2.4", "bignumber.js": "9.3.1", "cosmjs-types": "0.11.0", "ethers": "6.16.0", "micro-key-producer": "0.8.6", "near-seed-phrase": "0.2.1", "protobufjs": "8.0.3", "ripple-address-codec": "5.0.1", "starknet": "10.0.2", "ts-pattern": "5.9.0", "xrpl": "4.6.0" } }, "sha512-3kb16CdbrF6firn8Si3ieijlQcMsu7xAZZyLqu/fSxunPEs2NO6aY+sZJiY0wsPO0SfNU5xu6vcCqD744B1wJw=="], "@swapkit/types": ["@swapkit/types@0.9.0", "", {}, "sha512-BcmauYBthh6RCgrXd3NuOM79NCAmjkSEQhOhZI9BJb7KUYRVYjOCPOTOI5/vzHD7aXQAyOHMDEMtXOgBc+/dvw=="], @@ -1112,13 +1112,13 @@ "@swapkit/utxo-signer": ["@swapkit/utxo-signer@2.2.2", "", { "peerDependencies": { "@noble/curves": "2.2.0", "@noble/hashes": "2.2.0", "@scure/base": "2.2.0", "micro-packed": "0.9.0" } }, "sha512-Mes19KKZr0emYXnkJbN3WPLgLYkxnju5CJTUl1TcZgmxFCom6M6ijU4gkOweX0iIcGzqc51RIYGB/vUAFio8bQ=="], - "@swapkit/wallet-core": ["@swapkit/wallet-core@4.3.8", "", { "dependencies": { "@swapkit/helpers": "4.15.1" } }, "sha512-XTg/WD/TCDqvojHNtMtPujb2r1syX2BcHrvHxf/DYJswyxGXCMGO06iPnr0PvjrLx3lwPt0XVB2/Q1804nShow=="], + "@swapkit/wallet-core": ["@swapkit/wallet-core@4.3.10", "", { "dependencies": { "@swapkit/helpers": "4.15.3" } }, "sha512-a6hraPnR++GwtWZtAnWGqZRVbhhVw3g9iY/mfmQZXt26BqUW6tQ7WM7OMaiFxZbIeELbeKkQjrOUZfvEUDqlPw=="], "@swapkit/wallet-extensions": ["@swapkit/wallet-extensions@workspace:packages/wallet-extensions"], "@swapkit/wallet-hardware": ["@swapkit/wallet-hardware@workspace:packages/wallet-hardware"], - "@swapkit/wallet-keystore": ["@swapkit/wallet-keystore@4.4.8", "", { "dependencies": { "@swapkit/helpers": "4.15.1", "@swapkit/toolboxes": "4.19.0", "@swapkit/wallet-core": "4.3.8" }, "peerDependencies": { "@noble/hashes": "2.2.0", "@scure/bip39": "2.2.0" } }, "sha512-olx/MfD9sjOLWGVoyWjCf1e+7P6ViF6vOllm1ZDQtZFQWFMSyTvjRrn1l4UtxKYP1hIszwUeCqm6dSloShBu/g=="], + "@swapkit/wallet-keystore": ["@swapkit/wallet-keystore@4.4.10", "", { "dependencies": { "@swapkit/helpers": "4.15.3", "@swapkit/toolboxes": "4.20.1", "@swapkit/wallet-core": "4.3.10" }, "peerDependencies": { "@noble/hashes": "2.2.0", "@scure/bip39": "2.2.0" } }, "sha512-VaWelckLmrbS1As8zylP1u+hyJ27XloeELrD/89e/U+pfaPE9EejN1cmAfNgzDuqP/0SxkrmgrvFVV5GNmQxNg=="], "@swapkit/wallet-mobile": ["@swapkit/wallet-mobile@workspace:packages/wallet-mobile"], diff --git a/package.json b/package.json index 77ca5aa..101a8b5 100644 --- a/package.json +++ b/package.json @@ -7,13 +7,13 @@ "@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", @@ -21,17 +21,15 @@ "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", @@ -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/*"] } diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 5ca5300..db9060e 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -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" }, @@ -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", diff --git a/packages/wallet-extensions/package.json b/packages/wallet-extensions/package.json index 9d64309..0605dae 100644 --- a/packages/wallet-extensions/package.json +++ b/packages/wallet-extensions/package.json @@ -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", @@ -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", diff --git a/packages/wallet-extensions/src/trustwallet/index.ts b/packages/wallet-extensions/src/trustwallet/index.ts index 8ad53e7..6e96a1a 100644 --- a/packages/wallet-extensions/src/trustwallet/index.ts +++ b/packages/wallet-extensions/src/trustwallet/index.ts @@ -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"; @@ -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 }, @@ -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 }; diff --git a/packages/wallet-hardware/package.json b/packages/wallet-hardware/package.json index 3dcd69b..ab7d71b 100644 --- a/packages/wallet-hardware/package.json +++ b/packages/wallet-hardware/package.json @@ -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", @@ -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", diff --git a/packages/wallet-hardware/src/ledger/clients/xrp.ts b/packages/wallet-hardware/src/ledger/clients/xrp.ts index 65e9ec1..c7c95c2 100644 --- a/packages/wallet-hardware/src/ledger/clients/xrp.ts +++ b/packages/wallet-hardware/src/ledger/clients/xrp.ts @@ -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, diff --git a/packages/wallet-mobile/package.json b/packages/wallet-mobile/package.json index 4025abb..d946f2e 100644 --- a/packages/wallet-mobile/package.json +++ b/packages/wallet-mobile/package.json @@ -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": { ".": { @@ -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", diff --git a/packages/wallets/package.json b/packages/wallets/package.json index 62883b9..31b19a4 100644 --- a/packages/wallets/package.json +++ b/packages/wallets/package.json @@ -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", @@ -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",