@injectivelabs/wallet-cosmos 1.15.18 → 1.15.20
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/wallet.js +3 -3
- package/dist/esm/wallet.js +1 -1
- package/package.json +7 -8
package/dist/cjs/wallet.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CosmosWallet = void 0;
|
|
4
4
|
const exceptions_1 = require("@injectivelabs/exceptions");
|
|
5
5
|
const utils_1 = require("@injectivelabs/utils");
|
|
6
|
-
const
|
|
6
|
+
const types_1 = require("@keplr-wallet/types");
|
|
7
7
|
const sdk_ts_1 = require("@injectivelabs/sdk-ts");
|
|
8
8
|
const wallet_base_1 = require("@injectivelabs/wallet-base");
|
|
9
9
|
const stargate_1 = require("@cosmjs/stargate");
|
|
@@ -103,7 +103,7 @@ class CosmosWallet {
|
|
|
103
103
|
const { chainId, wallet } = this;
|
|
104
104
|
const cosmosWallet = await this.getCosmosWallet();
|
|
105
105
|
try {
|
|
106
|
-
const result = await cosmosWallet.sendTx(chainId, sdk_ts_1.CosmosTxV1Beta1Tx.TxRaw.encode(txRaw).finish(),
|
|
106
|
+
const result = await cosmosWallet.sendTx(chainId, sdk_ts_1.CosmosTxV1Beta1Tx.TxRaw.encode(txRaw).finish(), types_1.BroadcastMode.Sync);
|
|
107
107
|
if (!result || result.length === 0) {
|
|
108
108
|
throw new exceptions_1.TransactionException(new Error('Transaction failed to be broadcasted'), { contextModule: wallet });
|
|
109
109
|
}
|
|
@@ -130,7 +130,7 @@ class CosmosWallet {
|
|
|
130
130
|
const { chainId, wallet } = this;
|
|
131
131
|
const cosmosWallet = await this.getCosmosWallet();
|
|
132
132
|
try {
|
|
133
|
-
const result = await cosmosWallet.sendTx(chainId, sdk_ts_1.CosmosTxV1Beta1Tx.TxRaw.encode(txRaw).finish(),
|
|
133
|
+
const result = await cosmosWallet.sendTx(chainId, sdk_ts_1.CosmosTxV1Beta1Tx.TxRaw.encode(txRaw).finish(), types_1.BroadcastMode.Block);
|
|
134
134
|
if (!result || result.length === 0) {
|
|
135
135
|
throw new exceptions_1.TransactionException(new Error('Transaction failed to be broadcasted'), { contextModule: wallet });
|
|
136
136
|
}
|
package/dist/esm/wallet.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ErrorType, GeneralException, UnspecifiedErrorCode, TransactionException, CosmosWalletException, WalletErrorActionModule, } from '@injectivelabs/exceptions';
|
|
2
2
|
import { capitalize } from '@injectivelabs/utils';
|
|
3
|
-
import { BroadcastMode } from '@
|
|
3
|
+
import { BroadcastMode } from '@keplr-wallet/types';
|
|
4
4
|
import { CosmosTxV1Beta1Tx } from '@injectivelabs/sdk-ts';
|
|
5
5
|
import { Wallet } from '@injectivelabs/wallet-base';
|
|
6
6
|
import { SigningStargateClient } from '@cosmjs/stargate';
|
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.20",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": {
|
|
@@ -56,20 +56,19 @@
|
|
|
56
56
|
"start": "node dist/index.js"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@cosmjs/launchpad": "0.27.1",
|
|
60
59
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
61
60
|
"@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.
|
|
61
|
+
"@injectivelabs/exceptions": "^1.15.17",
|
|
62
|
+
"@injectivelabs/sdk-ts": "^1.15.20",
|
|
63
|
+
"@injectivelabs/ts-types": "^1.15.18",
|
|
64
|
+
"@injectivelabs/utils": "^1.15.18",
|
|
65
|
+
"@injectivelabs/wallet-base": "^1.15.20",
|
|
67
66
|
"@keplr-wallet/types": "^0.12.71"
|
|
68
67
|
},
|
|
69
68
|
"devDependencies": {
|
|
70
69
|
"shx": "^0.3.3"
|
|
71
70
|
},
|
|
72
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "a80d42fd4220e1e9a6d0e8b211dcd229f84dd54e",
|
|
73
72
|
"typedoc": {
|
|
74
73
|
"entryPoint": "./src/index.ts",
|
|
75
74
|
"readmeFile": "./README.md",
|