Skip to content
Open
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
22 changes: 8 additions & 14 deletions packages/wallet-core/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"author": "swapkit-dev",
"dependencies": {
"@swapkit-dev/helpers": "^4.12.0"
},
"dependencies": { "@swapkit-dev/helpers": "workspace:*" },
"description": "SwapKit - Wallet Core",
"exports": {
".": {
Expand All @@ -12,19 +10,15 @@
"types": "./dist/types/index.d.ts"
}
},
"files": [
"dist/"
],
"homepage": "https://github.com/swapkit/wallets",
"files": ["dist/", "src/"],
"homepage": "https://github.com/swapkit/SwapKit",
"license": "SEE LICENSE IN LICENSE",
"name": "@swapkit/wallet-core",
"publishConfig": {
"access": "public"
},
"name": "@swapkit-dev/wallet-core",
"publishConfig": { "access": "restricted" },
"repository": {
"directory": "packages/wallet-core",
"type": "git",
"url": "git+https://github.com/swapkit/wallets.git",
"directory": "packages/wallet-core"
"url": "git+https://github.com/swapkit/SwapKit.git"
},
"scripts": {
"build": "bun run ./build.ts",
Expand All @@ -34,5 +28,5 @@
"type-check:go": "tsgo"
},
"type": "module",
"version": "4.1.19"
"version": "4.1.21"
}
32 changes: 11 additions & 21 deletions packages/wallet-extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@
"author": "swapkit-dev",
"dependencies": {
"@aptos-labs/ts-sdk": "~1.34.0",
"@cosmjs/amino": "~0.37.0",
"@cosmjs/proto-signing": "~0.37.0",
"@cosmjs/stargate": "~0.37.0",
"@keplr-wallet/types": "0.12.285",
"@near-js/accounts": "~2.5.0",
"@near-js/crypto": "~2.5.0",
"@near-js/transactions": "~2.5.0",
"@scure/base": "~2.0.0",
"@solana/web3.js": "~1.98.4",
"@swapkit-dev/helpers": "^4.12.0",
"@swapkit-dev/toolboxes": "^4.11.2",
"@swapkit-dev/utxo-signer": "^2.1.0",
"@swapkit/wallet-core": "workspace:*",
"@swapkit-dev/helpers": "workspace:*",
"@swapkit-dev/toolboxes": "workspace:*",
"@swapkit-dev/utxo-signer": "workspace:*",
"@swapkit-dev/wallet-core": "workspace:*",
"cosmjs-types": "0.10.1",
"ethers": "^6.14.0",
"sats-connect": "~1.0.0",
Expand All @@ -23,9 +20,6 @@
"description": "SwapKit - Wallet Extension",
"devDependencies": {
"@aptos-labs/ts-sdk": "1.34.0",
"@cosmjs/amino": "0.37.0",
"@cosmjs/proto-signing": "0.37.0",
"@cosmjs/stargate": "0.37.0",
"@keplr-wallet/types": "0.12.285",
"@near-js/accounts": "2.5.0",
"@near-js/crypto": "2.5.0",
Expand Down Expand Up @@ -135,19 +129,15 @@
"types": "./dist/types/vultisig/index.d.ts"
}
},
"files": [
"dist/"
],
"homepage": "https://github.com/swapkit/wallets",
"files": ["dist/", "src/"],
"homepage": "https://github.com/swapkit/SwapKit",
"license": "SEE LICENSE IN LICENSE",
"name": "@swapkit/wallet-extensions",
"publishConfig": {
"access": "public"
},
"name": "@swapkit-dev/wallet-extensions",
"publishConfig": { "access": "restricted" },
"repository": {
"directory": "packages/wallet-extension",
"type": "git",
"url": "git+https://github.com/swapkit/wallets.git",
"directory": "packages/wallet-extensions"
"url": "git+https://github.com/swapkit/SwapKit.git"
},
"scripts": {
"build": "bun run ./build.ts",
Expand All @@ -157,5 +147,5 @@
"type-check:go": "tsgo"
},
"type": "module",
"version": "4.3.6"
"version": "4.4.1"
}
2 changes: 1 addition & 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-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";

import { getWalletMethods } from "./helpers";

Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/cosmostation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
SwapKitError,
WalletOption,
} from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";

const cosmostationSupportedChainIds = [ChainId.Cosmos, ChainId.Kujira, ChainId.Noble, ChainId.THORChain] as const;
const cosmostationSupportedEVMChains = [
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/ctrl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
SwapKitError,
WalletOption,
} from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import { getCtrlAddress, getCtrlProvider, walletTransfer } from "./walletHelpers";

export const ctrlWallet = createWallet({
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/evm-extensions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
switchEVMWalletNetwork,
WalletOption,
} from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import type { BrowserProvider, Eip1193Provider } from "ethers";

export type EVMWalletOptions =
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/helpers/near.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function actionToWalletJson(action: Transaction["actions"][number]) {
return {
params: {
// args must be base64 string for wallet JSON
args: Buffer.from(String(data.functionCall?.args ?? "{}")).toString("base64"),
args: typeof Buffer.from(data.functionCall?.args ?? "{}").toString("base64"),
deposit: (data.functionCall?.deposit ?? 0).toString(),
gas: (data.functionCall?.gas ?? 0).toString(),
methodName: data.functionCall?.methodName ?? "",
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/keepkey-bex/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AssetValue, Chain, ChainId, filterSupportedChains, SwapKitError, WalletOption } from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import type { Eip1193Provider } from "ethers";
import {
getKEEPKEYAddress,
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/keplr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
SwapKitError,
WalletOption,
} from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import { chainRegistry } from "./chainRegistry";

const keplrSupportedChainIds = [ChainId.Cosmos, ChainId.Kujira, ChainId.Noble, ChainId.THORChain] as const;
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/okx/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Chain, filterSupportedChains, WalletOption } from "@swapkit-dev/helpers";

import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import { getWalletMethods } from "./helpers";

export const okxWallet = createWallet({
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/onekey/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
WalletOption,
} from "@swapkit-dev/helpers";
import { Transaction } from "@swapkit-dev/utxo-signer";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import type { BitcoinProvider, GetAddressOptions, GetAddressResponse, SignTransactionOptions } from "sats-connect";

async function getWalletMethodsForExtension(chain: Chain) {
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/petra/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Chain, filterSupportedChains, SwapKitError, WalletOption } from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";

export const petraWallet = createWallet({
connect: ({ addChain, supportedChains, walletType }) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/phantom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
SwapKitError,
WalletOption,
} from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";

export const phantomWallet = createWallet({
connect: ({ addChain, supportedChains, walletType }) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/polkadotjs/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Chain, filterSupportedChains, SwapKitError, WalletOption } from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";

export const polkadotWallet = createWallet({
connect: ({ addChain, supportedChains, walletType }) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/talisman/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
switchEVMWalletNetwork,
WalletOption,
} from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import type { Eip1193Provider } from "ethers";

export const talismanWallet = createWallet({
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/tronlink/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Chain, filterSupportedChains, WalletOption } from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import { getExpectedTronNetwork, getWalletForChain, setupEventListeners } from "./helpers.js";

export const tronlinkWallet = createWallet({
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/trustwallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
WalletOption,
} from "@swapkit-dev/helpers";
import type { TONTransactionMessage } from "@swapkit-dev/toolboxes/ton";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import type { Eip1193Provider } from "ethers";

export type TrustWalletTonProvider = {
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/vultisig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
UTXOChains,
WalletOption,
} from "@swapkit-dev/helpers";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import {
getVultisigAddress,
getVultisigMethods,
Expand Down
36 changes: 13 additions & 23 deletions packages/wallet-hardware/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"author": "swapkit-dev",
"dependencies": {
"@cosmjs/amino": "~0.37.0",
"@cosmjs/crypto": "0.37.0",
"@cosmjs/proto-signing": "~0.37.0",
"@keepkey/keepkey-sdk": "~0.2.62",
"@ledgerhq/devices": "~8.10.0",
"@ledgerhq/errors": "~6.29.0",
Expand All @@ -21,22 +19,19 @@
"@near-js/crypto": "~2.5.0",
"@near-js/transactions": "~2.5.0",
"@scure/base": "2.0.0",
"@swapkit-dev/helpers": "^4.12.0",
"@swapkit-dev/toolboxes": "^4.11.2",
"@swapkit-dev/utxo-signer": "^2.1.0",
"@swapkit/wallet-core": "workspace:*",
"@swapkit-dev/helpers": "workspace:*",
"@swapkit-dev/toolboxes": "workspace:*",
"@swapkit-dev/utxo-signer": "workspace:*",
"@swapkit-dev/wallet-core": "workspace:*",
"@trezor/connect-web": "~9.6.4",
"cosmjs-types": "~0.10.1",
"ethers": "^6.14.0",
"ripple-binary-codec": "2.5.1",
"ts-pattern": "^5.9.0",
"xrpl": "~4.4.2"
"ts-pattern": "^5.9.0"
},
"description": "SwapKit - Wallet Hardware",
"devDependencies": {
"@cosmjs/amino": "0.37.0",
"@cosmjs/crypto": "0.37.0",
"@cosmjs/proto-signing": "0.37.0",
"@keepkey/keepkey-sdk": "0.2.62",
"@ledgerhq/devices": "8.10.0",
"@ledgerhq/errors": "6.29.0",
Expand All @@ -58,8 +53,7 @@
"cosmjs-types": "0.10.1",
"ethers": "6.16.0",
"ripple-binary-codec": "2.5.1",
"ts-pattern": "^5.9.0",
"xrpl": "4.4.2"
"ts-pattern": "^5.9.0"
},
"exports": {
".": {
Expand Down Expand Up @@ -87,19 +81,15 @@
"types": "./dist/types/trezor/index.d.ts"
}
},
"files": [
"dist/"
],
"homepage": "https://github.com/swapkit/wallets",
"files": ["dist/", "src/"],
"homepage": "https://github.com/swapkit/SwapKit",
"license": "SEE LICENSE IN LICENSE",
"name": "@swapkit/wallet-hardware",
"publishConfig": {
"access": "public"
},
"name": "@swapkit-dev/wallet-hardware",
"publishConfig": { "access": "restricted" },
"repository": {
"directory": "packages/wallet-hardware",
"type": "git",
"url": "git+https://github.com/swapkit/wallets.git",
"directory": "packages/wallet-hardware"
"url": "git+https://github.com/swapkit/SwapKit.git"
},
"scripts": {
"build": "bun run ./build.ts",
Expand All @@ -109,5 +99,5 @@
"type-check:go": "tsgo"
},
"type": "module",
"version": "4.5.6"
"version": "4.6.1"
}
2 changes: 1 addition & 1 deletion packages/wallet-hardware/src/keepkey/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {

export type { PairingInfo } from "@keepkey/keepkey-sdk";

import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import { cosmosWalletMethods } from "./chains/cosmos";
import { KeepKeySigner } from "./chains/evm";
import { mayachainWalletMethods } from "./chains/mayachain";
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-hardware/src/ledger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
type UTXOForMultiAddressTransfer,
} from "@swapkit-dev/toolboxes/utxo";
import type { Transaction } from "@swapkit-dev/utxo-signer";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";
import { getLedgerAddress, getLedgerClient } from "./helpers";

export const ledgerWallet = createWallet({
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-hardware/src/trezor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from "@swapkit-dev/toolboxes/utxo";
import type { BTCNetwork, PCZT, Transaction, ZcashTransaction } from "@swapkit-dev/utxo-signer";
import { NETWORKS, ZcashConsensusBranchId, ZcashVersionGroupId } from "@swapkit-dev/utxo-signer";
import { createWallet, getWalletSupportedChains } from "@swapkit/wallet-core";
import { createWallet, getWalletSupportedChains } from "@swapkit-dev/wallet-core";

function decodeOpReturnData(script: Uint8Array): string | null {
if (script.length < 2 || script[0] !== 0x6a) return null;
Expand Down
Loading