@injectivelabs/wallet-strategy 1.16.12 → 1.16.13-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
- import { type WalletMetadata, ConcreteWalletStrategy, WalletStrategyArguments } from '@injectivelabs/wallet-base';
2
1
  import { BaseWalletStrategy } from '@injectivelabs/wallet-core';
2
+ import { type WalletMetadata } from '@injectivelabs/wallet-base';
3
+ import type { ConcreteWalletStrategy, WalletStrategyArguments } from '@injectivelabs/wallet-base';
3
4
  export declare class WalletStrategy extends BaseWalletStrategy {
4
5
  constructor(args: WalletStrategyArguments);
5
6
  /**
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createStrategyFactory = exports.WalletStrategy = void 0;
4
- const wallet_base_1 = require("@injectivelabs/wallet-base");
5
- const wallet_ledger_1 = require("@injectivelabs/wallet-ledger");
6
- const wallet_trezor_1 = require("@injectivelabs/wallet-trezor");
7
4
  const wallet_magic_1 = require("@injectivelabs/wallet-magic");
8
5
  const exceptions_1 = require("@injectivelabs/exceptions");
9
6
  const wallet_evm_1 = require("@injectivelabs/wallet-evm");
@@ -13,6 +10,9 @@ const wallet_turnkey_1 = require("@injectivelabs/wallet-turnkey");
13
10
  const wallet_wallet_connect_1 = require("@injectivelabs/wallet-wallet-connect");
14
11
  const wallet_private_key_1 = require("@injectivelabs/wallet-private-key");
15
12
  const wallet_cosmostation_1 = require("@injectivelabs/wallet-cosmostation");
13
+ const wallet_base_1 = require("@injectivelabs/wallet-base");
14
+ const wallet_ledger_1 = require("@injectivelabs/wallet-ledger");
15
+ const wallet_trezor_1 = require("@injectivelabs/wallet-trezor");
16
16
  const ethereumWalletsDisabled = (args) => {
17
17
  const { evmOptions } = args;
18
18
  if (!evmOptions) {
@@ -25,11 +25,13 @@ const ethereumWalletsDisabled = (args) => {
25
25
  return false;
26
26
  };
27
27
  const createStrategy = ({ args, wallet, }) => {
28
+ console.log('creating strategy for wallet:', wallet);
28
29
  /**
29
30
  * If we only want to use Cosmos Native Wallets
30
31
  * We are not creating strategies for Ethereum Native Wallets
31
32
  */
32
33
  if ((0, wallet_base_1.isEvmWallet)(wallet) && ethereumWalletsDisabled(args)) {
34
+ console.log('Skipping EVM wallet strategy creation due to disabled EVM options');
33
35
  return undefined;
34
36
  }
35
37
  const ethWalletArgs = {
@@ -1,5 +1,6 @@
1
- import { type WalletMetadata, ConcreteWalletStrategy, WalletStrategyArguments } from '@injectivelabs/wallet-base';
2
1
  import { BaseWalletStrategy } from '@injectivelabs/wallet-core';
2
+ import { type WalletMetadata } from '@injectivelabs/wallet-base';
3
+ import type { ConcreteWalletStrategy, WalletStrategyArguments } from '@injectivelabs/wallet-base';
3
4
  export declare class WalletStrategy extends BaseWalletStrategy {
4
5
  constructor(args: WalletStrategyArguments);
5
6
  /**
@@ -1,6 +1,3 @@
1
- import { Wallet, isEvmWallet, } from '@injectivelabs/wallet-base';
2
- import { LedgerLiveStrategy, LedgerLegacyStrategy, } from '@injectivelabs/wallet-ledger';
3
- import { TrezorBip32Strategy, TrezorBip44Strategy, } from '@injectivelabs/wallet-trezor';
4
1
  import { MagicStrategy } from '@injectivelabs/wallet-magic';
5
2
  import { GeneralException } from '@injectivelabs/exceptions';
6
3
  import { EvmWalletStrategy } from '@injectivelabs/wallet-evm';
@@ -10,6 +7,9 @@ import { TurnkeyWalletStrategy } from '@injectivelabs/wallet-turnkey';
10
7
  import { WalletConnectStrategy } from '@injectivelabs/wallet-wallet-connect';
11
8
  import { PrivateKeyWalletStrategy } from '@injectivelabs/wallet-private-key';
12
9
  import { CosmostationWalletStrategy } from '@injectivelabs/wallet-cosmostation';
10
+ import { Wallet, isEvmWallet, } from '@injectivelabs/wallet-base';
11
+ import { LedgerLiveStrategy, LedgerLegacyStrategy, } from '@injectivelabs/wallet-ledger';
12
+ import { TrezorBip32Strategy, TrezorBip44Strategy, } from '@injectivelabs/wallet-trezor';
13
13
  const ethereumWalletsDisabled = (args) => {
14
14
  const { evmOptions } = args;
15
15
  if (!evmOptions) {
@@ -22,11 +22,13 @@ const ethereumWalletsDisabled = (args) => {
22
22
  return false;
23
23
  };
24
24
  const createStrategy = ({ args, wallet, }) => {
25
+ console.log('creating strategy for wallet:', wallet);
25
26
  /**
26
27
  * If we only want to use Cosmos Native Wallets
27
28
  * We are not creating strategies for Ethereum Native Wallets
28
29
  */
29
30
  if (isEvmWallet(wallet) && ethereumWalletsDisabled(args)) {
31
+ console.log('Skipping EVM wallet strategy creation due to disabled EVM options');
30
32
  return undefined;
31
33
  }
32
34
  const ethWalletArgs = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-strategy",
3
3
  "description": "Wallet strategy with instantiated wallets",
4
- "version": "1.16.12",
4
+ "version": "1.16.13-alpha.1",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -56,36 +56,31 @@
56
56
  "start": "node dist/index.js"
57
57
  },
58
58
  "dependencies": {
59
- "@ethereumjs/common": "^3.1.1",
60
- "@ethereumjs/tx": "^4.1.1",
61
- "@injectivelabs/exceptions": "1.16.12",
62
- "@injectivelabs/networks": "1.16.12",
63
- "@injectivelabs/sdk-ts": "1.16.12",
64
- "@injectivelabs/ts-types": "1.16.12",
65
- "@injectivelabs/utils": "1.16.12",
66
- "@injectivelabs/wallet-base": "1.16.12",
67
- "@injectivelabs/wallet-core": "1.16.12",
68
- "@injectivelabs/wallet-cosmos": "1.16.12",
69
- "@injectivelabs/wallet-cosmostation": "1.16.12",
70
- "@injectivelabs/wallet-evm": "1.16.12",
71
- "@injectivelabs/wallet-ledger": "1.16.12",
72
- "@injectivelabs/wallet-magic": "1.16.12",
73
- "@injectivelabs/wallet-private-key": "1.16.12",
74
- "@injectivelabs/wallet-trezor": "1.16.12",
75
- "@injectivelabs/wallet-turnkey": "1.16.12",
76
- "@injectivelabs/wallet-wallet-connect": "1.16.12",
59
+ "@injectivelabs/exceptions": "1.16.13-alpha.1",
60
+ "@injectivelabs/networks": "1.16.13-alpha.1",
61
+ "@injectivelabs/sdk-ts": "1.16.13-alpha.1",
62
+ "@injectivelabs/ts-types": "1.16.13-alpha.1",
63
+ "@injectivelabs/utils": "1.16.13-alpha.1",
64
+ "@injectivelabs/wallet-base": "1.16.13-alpha.1",
65
+ "@injectivelabs/wallet-core": "1.16.13-alpha.1",
66
+ "@injectivelabs/wallet-cosmos": "1.16.13-alpha.1",
67
+ "@injectivelabs/wallet-cosmostation": "1.16.13-alpha.1",
68
+ "@injectivelabs/wallet-evm": "1.16.13-alpha.1",
69
+ "@injectivelabs/wallet-ledger": "1.16.13-alpha.1",
70
+ "@injectivelabs/wallet-magic": "1.16.13-alpha.1",
71
+ "@injectivelabs/wallet-private-key": "1.16.13-alpha.1",
72
+ "@injectivelabs/wallet-trezor": "1.16.13-alpha.1",
73
+ "@injectivelabs/wallet-turnkey": "1.16.13-alpha.1",
74
+ "@injectivelabs/wallet-wallet-connect": "1.16.13-alpha.1",
77
75
  "alchemy-sdk": "^3.4.7",
78
76
  "eip1193-provider": "^1.0.1",
79
- "eth-sig-util": "^3.0.1",
80
- "ethereumjs-util": "^7.1.0",
81
77
  "ethers": "^6.5.1",
82
- "hdkey": "^2.1.0"
78
+ "hdkey": "^2.1.0",
79
+ "viem": "^2.33.2"
83
80
  },
84
81
  "devDependencies": {
85
- "@types/eth-sig-util": "^2.1.1",
86
- "@types/ethereumjs-util": "^6.1.0",
87
82
  "@types/hdkey": "^2.0.1",
88
83
  "shx": "^0.3.3"
89
84
  },
90
- "gitHead": "11a4cd78ffb176786df6c4aff98476f90f0b354b"
85
+ "gitHead": "feb3e8f6bd6fa67bb489c94f6373a8d68a9846ae"
91
86
  }