@injectivelabs/wallet-private-key 1.20.7 → 1.20.9
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/index.cjs +6 -2
- package/dist/esm/index.js +6 -2
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -92,9 +92,13 @@ var PrivateKeyWallet = class extends __injectivelabs_wallet_base.BaseConcreteStr
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
async sendTransaction(transaction, options) {
|
|
95
|
-
const { endpoints, txTimeout } = options;
|
|
95
|
+
const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
|
|
96
96
|
if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints within the options for using Ethereum native wallets"));
|
|
97
|
-
const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
97
|
+
const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
98
|
+
txTimeout,
|
|
99
|
+
...txInclusion,
|
|
100
|
+
onBroadcast
|
|
101
|
+
});
|
|
98
102
|
if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
|
|
99
103
|
code: __injectivelabs_exceptions.UnspecifiedErrorCode,
|
|
100
104
|
contextCode: response.code,
|
package/dist/esm/index.js
CHANGED
|
@@ -92,9 +92,13 @@ var PrivateKeyWallet = class extends BaseConcreteStrategy {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
async sendTransaction(transaction, options) {
|
|
95
|
-
const { endpoints, txTimeout } = options;
|
|
95
|
+
const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
|
|
96
96
|
if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints within the options for using Ethereum native wallets"));
|
|
97
|
-
const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
97
|
+
const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
98
|
+
txTimeout,
|
|
99
|
+
...txInclusion,
|
|
100
|
+
onBroadcast
|
|
101
|
+
});
|
|
98
102
|
if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
|
|
99
103
|
code: UnspecifiedErrorCode,
|
|
100
104
|
contextCode: response.code,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-private-key",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.9",
|
|
4
4
|
"description": "Private key wallet strategy for use with @injectivelabs/wallet-core.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@injectivelabs/exceptions": "1.20.
|
|
46
|
-
"@injectivelabs/ts
|
|
47
|
-
"@injectivelabs/
|
|
48
|
-
"@injectivelabs/
|
|
45
|
+
"@injectivelabs/exceptions": "1.20.9",
|
|
46
|
+
"@injectivelabs/sdk-ts": "1.20.9",
|
|
47
|
+
"@injectivelabs/ts-types": "1.20.9",
|
|
48
|
+
"@injectivelabs/wallet-base": "1.20.9"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|