@injectivelabs/wallet-cosmos 1.15.6 → 1.15.7
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.
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CosmosWalletStrategy = void 0;
|
|
4
4
|
/* eslint-disable class-methods-use-this */
|
|
5
5
|
const sdk_ts_1 = require("@injectivelabs/sdk-ts");
|
|
6
|
-
const ts_types_1 = require("@injectivelabs/ts-types");
|
|
7
6
|
const exceptions_1 = require("@injectivelabs/exceptions");
|
|
8
7
|
const wallet_base_1 = require("@injectivelabs/wallet-base");
|
|
9
8
|
const utils_1 = require("@injectivelabs/utils");
|
|
@@ -13,12 +12,12 @@ class CosmosWalletStrategy extends wallet_base_1.BaseConcreteStrategy {
|
|
|
13
12
|
wallet;
|
|
14
13
|
cosmosWallet;
|
|
15
14
|
constructor(args) {
|
|
16
|
-
super(args);
|
|
15
|
+
super({ ...args, chainId: args.chainId });
|
|
17
16
|
if (!cosmosWallets.includes(args.wallet)) {
|
|
18
17
|
throw new exceptions_1.CosmosWalletException(new Error(`Cosmos Wallet for ${(0, utils_1.capitalize)(args.wallet)} is not supported.`));
|
|
19
18
|
}
|
|
20
19
|
this.wallet = args.wallet;
|
|
21
|
-
this.chainId = args.chainId
|
|
20
|
+
this.chainId = args.chainId;
|
|
22
21
|
this.cosmosWallet = new wallet_js_1.CosmosWallet({
|
|
23
22
|
wallet: args.wallet,
|
|
24
23
|
chainId: args.chainId,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* eslint-disable class-methods-use-this */
|
|
2
2
|
import { waitTxBroadcasted, createTxRawFromSigResponse, createSignDocFromTransaction, } from '@injectivelabs/sdk-ts';
|
|
3
|
-
import { CosmosChainId, } from '@injectivelabs/ts-types';
|
|
4
3
|
import { ErrorType, UnspecifiedErrorCode, CosmosWalletException, TransactionException, } from '@injectivelabs/exceptions';
|
|
5
4
|
import { Wallet, WalletAction, WalletDeviceType, WalletEventListener, BaseConcreteStrategy, createCosmosSignDocFromSignDoc, } from '@injectivelabs/wallet-base';
|
|
6
5
|
import { capitalize } from '@injectivelabs/utils';
|
|
@@ -10,12 +9,12 @@ export class CosmosWalletStrategy extends BaseConcreteStrategy {
|
|
|
10
9
|
wallet;
|
|
11
10
|
cosmosWallet;
|
|
12
11
|
constructor(args) {
|
|
13
|
-
super(args);
|
|
12
|
+
super({ ...args, chainId: args.chainId });
|
|
14
13
|
if (!cosmosWallets.includes(args.wallet)) {
|
|
15
14
|
throw new CosmosWalletException(new Error(`Cosmos Wallet for ${capitalize(args.wallet)} is not supported.`));
|
|
16
15
|
}
|
|
17
16
|
this.wallet = args.wallet;
|
|
18
|
-
this.chainId = args.chainId
|
|
17
|
+
this.chainId = args.chainId;
|
|
19
18
|
this.cosmosWallet = new CosmosWallet({
|
|
20
19
|
wallet: args.wallet,
|
|
21
20
|
chainId: args.chainId,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-cosmos",
|
|
3
3
|
"description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.",
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.7",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": {
|
|
@@ -59,17 +59,17 @@
|
|
|
59
59
|
"@cosmjs/launchpad": "0.27.1",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
61
61
|
"@cosmjs/stargate": "^0.32.3",
|
|
62
|
-
"@injectivelabs/exceptions": "^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.
|
|
62
|
+
"@injectivelabs/exceptions": "^1.15.4",
|
|
63
|
+
"@injectivelabs/sdk-ts": "^1.15.7",
|
|
64
|
+
"@injectivelabs/ts-types": "^1.15.5",
|
|
65
|
+
"@injectivelabs/utils": "^1.15.5",
|
|
66
|
+
"@injectivelabs/wallet-base": "^1.15.7",
|
|
67
67
|
"@keplr-wallet/types": "^0.12.71"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"shx": "^0.3.3"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "9beac4caf49a97d0d64bde184c4fc603696b81c0",
|
|
73
73
|
"typedoc": {
|
|
74
74
|
"entryPoint": "./src/index.ts",
|
|
75
75
|
"readmeFile": "./README.md",
|