Skip to content

Commit 3bffc52

Browse files
committed
chore: last deps update
1 parent dc9937a commit 3bffc52

File tree

15 files changed

+95
-243
lines changed

15 files changed

+95
-243
lines changed

bun.lock

Lines changed: 64 additions & 174 deletions
Large diffs are not rendered by default.

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
"dependencies": {
33
"@astrojs/check": "0.9.4",
44
"@astrojs/react": "4.4.0",
5-
"@astrojs/starlight": "0.36.0",
5+
"@astrojs/starlight": "0.36.1",
66
"@shikijs/twoslash": "3.13.0",
77
"@swapkit/core": "workspace:*",
88
"@swapkit/helpers": "workspace:*",
99
"@swapkit/plugins": "workspace:*",
1010
"@swapkit/sdk": "workspace:*",
1111
"@swapkit/toolboxes": "workspace:*",
1212
"@swapkit/wallets": "workspace:*",
13-
"astro": "5.14.4",
13+
"astro": "5.14.5",
1414
"sharp": "0.34.4",
1515
"starlight-links-validator": "0.18.0",
16-
"starlight-openapi": "0.20.0",
16+
"starlight-openapi": "0.21.0",
1717
"starlight-typedoc": "0.21.3",
1818
"typedoc": "0.28.14",
1919
"typedoc-plugin-markdown": "4.9.0"

docs/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": { "types": ["@types/bun"] },
3-
"exclude": ["node_modules", "dist"],
4-
"extends": ["../node_modules/astro/tsconfigs/base.json", "../tools/typescript/base.json"],
3+
"exclude": ["dist"],
4+
"extends": ["./node_modules/astro/tsconfigs/base.json", "../tools/typescript/base.json"],
55
"include": [".astro/types.d.ts", ".astro/content.d.ts", "./src", "../packages/**/*"]
66
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"devDependencies": {
33
"@biomejs/biome": "2.2.6",
4-
"@bitgo/utxo-lib": "11.11.0",
4+
"@bitgo/utxo-lib": "11.11.1",
55
"@changesets/changelog-github": "0.5.1",
66
"@changesets/cli": "2.29.7",
77
"@cosmjs/amino": "0.36.1",
@@ -12,7 +12,7 @@
1212
"@types/bun": "1.3.0",
1313
"@types/react": "19.2.2",
1414
"@types/react-dom": "19.2.2",
15-
"@walletconnect/types": "2.22.3",
15+
"@walletconnect/types": "2.22.4",
1616
"bitcoinjs-lib": "6.1.7",
1717
"ecpair": "2.1.0",
1818
"lefthook": "1.13.6",

packages/toolboxes/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"dependencies": {
33
"@bitcoinerlab/secp256k1": "~1.2.0",
4-
"@bitgo/utxo-lib": "~11.11.0",
4+
"@bitgo/utxo-lib": "~11.11.1",
55
"@cosmjs/amino": "~0.36.1",
66
"@cosmjs/crypto": "0.36.1",
77
"@cosmjs/proto-signing": "~0.36.1",
88
"@cosmjs/stargate": "~0.36.1",
99
"@meshsdk/core": "1.9.0-beta.81",
10-
"@mysten/bcs": "~1.8.0",
11-
"@mysten/sui": "~1.40.0",
10+
"@mysten/bcs": "~1.8.1",
11+
"@mysten/sui": "~1.42.0",
1212
"@near-js/providers": "~2.3.3",
1313
"@noble/hashes": "2.0.1",
14-
"@polkadot/api": "~15.9.0",
14+
"@polkadot/api": "15.10.2",
1515
"@polkadot/keyring": "~13.5.7",
16-
"@polkadot/rpc-provider": "~15.9.0",
16+
"@polkadot/rpc-provider": "~15.10.2",
1717
"@polkadot/util": "~13.5.7",
1818
"@polkadot/util-crypto": "~13.5.7",
1919
"@psf/bitcoincashjs-lib": "~4.0.3",
@@ -48,21 +48,21 @@
4848
"description": "SwapKit - Toolboxes",
4949
"devDependencies": {
5050
"@bitcoinerlab/secp256k1": "1.2.0",
51-
"@bitgo/utxo-lib": "11.11.0",
51+
"@bitgo/utxo-lib": "11.11.1",
5252
"@cosmjs/amino": "0.36.1",
5353
"@cosmjs/crypto": "0.36.1",
5454
"@cosmjs/proto-signing": "0.36.1",
5555
"@cosmjs/stargate": "0.36.1",
5656
"@meshsdk/core": "1.9.0-beta.81",
57-
"@mysten/bcs": "1.8.0",
58-
"@mysten/sui": "1.40.0",
57+
"@mysten/bcs": "1.8.1",
58+
"@mysten/sui": "1.42.0",
5959
"@noble/hashes": "2.0.1",
6060
"@nomicfoundation/hardhat-ethers": "4.0.2",
6161
"@nomicfoundation/hardhat-network-helpers": "3.0.1",
6262
"@nomicfoundation/hardhat-toolbox": "6.1.0",
63-
"@polkadot/api": "16.4.8",
63+
"@polkadot/api": "15.10.2",
6464
"@polkadot/keyring": "13.5.7",
65-
"@polkadot/types": "16.4.8",
65+
"@polkadot/types": "15.10.2",
6666
"@polkadot/util": "13.5.7",
6767
"@polkadot/util-crypto": "13.5.7",
6868
"@psf/bitcoincashjs-lib": "4.0.3",
@@ -168,7 +168,7 @@
168168
"scripts": {
169169
"build": "bun run ./build.ts",
170170
"build:clean": "rm -rf dist && bun run ./build.ts",
171-
"clean": "rm -rf dist node_modules *.tsbuildinfo",
171+
"clean": "rm -rf cache dist node_modules *.tsbuildinfo",
172172
"test": "bun test",
173173
"test:ci": "bun test --coverage",
174174
"type-check": "bun tsc --noEmit",

packages/wallet-extension/package.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

packages/wallet-extensions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"@swapkit/helpers": "workspace:*",
77
"@swapkit/toolboxes": "workspace:*",
88
"@swapkit/wallet-core": "workspace:*",
9-
"ethers": "~6.14.0",
9+
"ethers": "~6.15.0",
1010
"near-api-js": "~6.3.0",
1111
"sats-connect": "~1.0.0",
1212
"ts-pattern": "~5.8.0"

packages/wallet-hardware/src/ledger/helpers/getLedgerTransport.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const getNavigatorUsb = () =>
99
addEventListener: (event: string, callback: (e: any) => void) => void;
1010
};
1111

12-
const getLedgerDevices = async () => {
12+
const getLedgerDevices = async (): Promise<USBDevice> => {
1313
const navigatorUsb = getNavigatorUsb();
1414

15-
if (typeof navigatorUsb?.getDevices !== "function") return [];
15+
if (typeof navigatorUsb?.getDevices !== "function") return {} as USBDevice;
1616
const { ledgerUSBVendorId } = await import("@ledgerhq/devices");
1717

1818
const devices = await navigatorUsb?.getDevices();
@@ -22,7 +22,7 @@ const getLedgerDevices = async () => {
2222
return navigatorUsb?.requestDevice({ filters: [{ vendorId: ledgerUSBVendorId }] });
2323
};
2424

25-
export const getLedgerTransport = async () => {
25+
export const getLedgerTransport = async (): Promise<Transport> => {
2626
const device = await getLedgerDevices();
2727

2828
if (!device) {
@@ -40,7 +40,7 @@ export const getLedgerTransport = async () => {
4040

4141
const configuration = device.configuration ?? device.configurations?.[0];
4242

43-
const iface = configuration.interfaces.find(({ alternates }: { alternates: { interfaceClass: number }[] }) =>
43+
const iface = configuration?.interfaces.find(({ alternates }: { alternates: { interfaceClass: number }[] }) =>
4444
alternates.some(({ interfaceClass }) => interfaceClass === 0x03 || interfaceClass === 0xff),
4545
);
4646

packages/wallet-keystore/src/helpers.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ export type Keystore = {
1818
async function blake256(initData: Buffer | string) {
1919
const blakeModule = await import("blakejs");
2020
const { blake2bFinal, blake2bInit, blake2bUpdate } = blakeModule?.default || blakeModule;
21-
let data = initData;
22-
23-
if (!(data instanceof Buffer)) {
24-
// @ts-expect-error
25-
data = Buffer.from(data, "hex");
26-
}
21+
const data = initData instanceof Buffer ? initData : Buffer.from(initData, "hex");
2722

2823
const context = blake2bInit(32);
2924
blake2bUpdate(context, data);

packages/wallets/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@swapkit/wallet-hardware": "workspace:*",
2727
"@swapkit/wallet-keystore": "workspace:*",
2828
"@walletconnect/modal": "~2.7.0",
29-
"@walletconnect/sign-client": "~2.22.3",
29+
"@walletconnect/sign-client": "~2.22.4",
3030
"bitcoinjs-lib": "~6.1.0",
3131
"cosmjs-types": "~0.10.1",
3232
"ethers": "^6.14.0",
@@ -58,8 +58,8 @@
5858
"@radixdlt/radix-dapp-toolkit": "2.2.1",
5959
"@walletconnect/logger": "3.0.0",
6060
"@walletconnect/modal": "2.7.0",
61-
"@walletconnect/sign-client": "2.22.3",
62-
"@walletconnect/types": "2.22.3",
61+
"@walletconnect/sign-client": "2.22.4",
62+
"@walletconnect/types": "2.22.4",
6363
"bitcoinjs-lib": "6.1.7",
6464
"cosmjs-types": "0.10.1",
6565
"ethers": "6.15.0",

0 commit comments

Comments
 (0)