@injectivelabs/wallet-strategy 1.15.18 → 1.15.19
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.
- package/dist/cjs/strategy/index.js +2 -8
- package/dist/esm/strategy/index.js +3 -9
- package/package.json +18 -18
|
@@ -92,18 +92,12 @@ const createStrategy = ({ args, wallet, }) => {
|
|
|
92
92
|
return undefined;
|
|
93
93
|
}
|
|
94
94
|
return new wallet_magic_1.MagicStrategy(args);
|
|
95
|
-
case wallet_base_1.Wallet.
|
|
95
|
+
case wallet_base_1.Wallet.Turnkey:
|
|
96
96
|
if (!args.metadata?.turnkey?.defaultOrganizationId ||
|
|
97
97
|
!args.metadata?.turnkey?.iframeContainerId) {
|
|
98
98
|
return undefined;
|
|
99
99
|
}
|
|
100
|
-
return new wallet_turnkey_1.
|
|
101
|
-
case wallet_base_1.Wallet.TurnkeyOauth:
|
|
102
|
-
if (!args.metadata?.turnkey?.defaultOrganizationId ||
|
|
103
|
-
!args.metadata?.turnkey?.iframeContainerId) {
|
|
104
|
-
return undefined;
|
|
105
|
-
}
|
|
106
|
-
return new wallet_turnkey_1.TurnkeyOauthWalletStrategy(ethWalletArgs);
|
|
100
|
+
return new wallet_turnkey_1.TurnkeyWalletStrategy(ethWalletArgs);
|
|
107
101
|
default:
|
|
108
102
|
return undefined;
|
|
109
103
|
}
|
|
@@ -5,7 +5,7 @@ import { EvmWalletStrategy } from '@injectivelabs/wallet-evm';
|
|
|
5
5
|
import { BaseWalletStrategy } from '@injectivelabs/wallet-core';
|
|
6
6
|
import { CosmosWalletStrategy } from '@injectivelabs/wallet-cosmos';
|
|
7
7
|
import { TrezorBip32Strategy, TrezorBip44Strategy, } from '@injectivelabs/wallet-trezor';
|
|
8
|
-
import {
|
|
8
|
+
import { TurnkeyWalletStrategy } from '@injectivelabs/wallet-turnkey';
|
|
9
9
|
import { WalletConnectStrategy } from '@injectivelabs/wallet-wallet-connect';
|
|
10
10
|
import { PrivateKeyWalletStrategy } from '@injectivelabs/wallet-private-key';
|
|
11
11
|
import { CosmostationWalletStrategy } from '@injectivelabs/wallet-cosmostation';
|
|
@@ -89,18 +89,12 @@ const createStrategy = ({ args, wallet, }) => {
|
|
|
89
89
|
return undefined;
|
|
90
90
|
}
|
|
91
91
|
return new MagicStrategy(args);
|
|
92
|
-
case Wallet.
|
|
92
|
+
case Wallet.Turnkey:
|
|
93
93
|
if (!args.metadata?.turnkey?.defaultOrganizationId ||
|
|
94
94
|
!args.metadata?.turnkey?.iframeContainerId) {
|
|
95
95
|
return undefined;
|
|
96
96
|
}
|
|
97
|
-
return new
|
|
98
|
-
case Wallet.TurnkeyOauth:
|
|
99
|
-
if (!args.metadata?.turnkey?.defaultOrganizationId ||
|
|
100
|
-
!args.metadata?.turnkey?.iframeContainerId) {
|
|
101
|
-
return undefined;
|
|
102
|
-
}
|
|
103
|
-
return new TurnkeyOauthWalletStrategy(ethWalletArgs);
|
|
97
|
+
return new TurnkeyWalletStrategy(ethWalletArgs);
|
|
104
98
|
default:
|
|
105
99
|
return undefined;
|
|
106
100
|
}
|
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.15.
|
|
4
|
+
"version": "1.15.19",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": {
|
|
@@ -58,22 +58,22 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@ethereumjs/common": "^3.1.1",
|
|
60
60
|
"@ethereumjs/tx": "^4.1.1",
|
|
61
|
-
"@injectivelabs/exceptions": "^1.15.
|
|
62
|
-
"@injectivelabs/networks": "^1.15.
|
|
63
|
-
"@injectivelabs/sdk-ts": "^1.15.
|
|
64
|
-
"@injectivelabs/ts-types": "^1.15.
|
|
65
|
-
"@injectivelabs/utils": "^1.15.
|
|
66
|
-
"@injectivelabs/wallet-base": "^1.15.
|
|
67
|
-
"@injectivelabs/wallet-core": "^1.15.
|
|
68
|
-
"@injectivelabs/wallet-cosmos": "^1.15.
|
|
69
|
-
"@injectivelabs/wallet-cosmostation": "^1.15.
|
|
70
|
-
"@injectivelabs/wallet-evm": "^1.15.
|
|
71
|
-
"@injectivelabs/wallet-ledger": "^1.15.
|
|
72
|
-
"@injectivelabs/wallet-magic": "^1.15.
|
|
73
|
-
"@injectivelabs/wallet-private-key": "^1.15.
|
|
74
|
-
"@injectivelabs/wallet-trezor": "^1.15.
|
|
75
|
-
"@injectivelabs/wallet-turnkey": "^1.15.
|
|
76
|
-
"@injectivelabs/wallet-wallet-connect": "^1.15.
|
|
61
|
+
"@injectivelabs/exceptions": "^1.15.15",
|
|
62
|
+
"@injectivelabs/networks": "^1.15.16",
|
|
63
|
+
"@injectivelabs/sdk-ts": "^1.15.18",
|
|
64
|
+
"@injectivelabs/ts-types": "^1.15.16",
|
|
65
|
+
"@injectivelabs/utils": "^1.15.16",
|
|
66
|
+
"@injectivelabs/wallet-base": "^1.15.18",
|
|
67
|
+
"@injectivelabs/wallet-core": "^1.15.18",
|
|
68
|
+
"@injectivelabs/wallet-cosmos": "^1.15.18",
|
|
69
|
+
"@injectivelabs/wallet-cosmostation": "^1.15.18",
|
|
70
|
+
"@injectivelabs/wallet-evm": "^1.15.18",
|
|
71
|
+
"@injectivelabs/wallet-ledger": "^1.15.18",
|
|
72
|
+
"@injectivelabs/wallet-magic": "^1.15.18",
|
|
73
|
+
"@injectivelabs/wallet-private-key": "^1.15.18",
|
|
74
|
+
"@injectivelabs/wallet-trezor": "^1.15.18",
|
|
75
|
+
"@injectivelabs/wallet-turnkey": "^1.15.18",
|
|
76
|
+
"@injectivelabs/wallet-wallet-connect": "^1.15.18",
|
|
77
77
|
"alchemy-sdk": "^3.4.7",
|
|
78
78
|
"eip1193-provider": "^1.0.1",
|
|
79
79
|
"eth-sig-util": "^3.0.1",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"@types/hdkey": "^2.0.1",
|
|
88
88
|
"shx": "^0.3.3"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "f27adbec3b9a84e4af2c2fbf5dbcac802b254130"
|
|
91
91
|
}
|