@injectivelabs/wallet-evm 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 +6 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -519,9 +519,13 @@ var EvmWallet = class extends __injectivelabs_wallet_base.BaseConcreteStrategy {
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
async sendTransaction(transaction, options) {
|
|
522
|
-
const { endpoints, txTimeout } = options;
|
|
522
|
+
const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
|
|
523
523
|
if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints within the options for using Ethereum native wallets"));
|
|
524
|
-
const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
524
|
+
const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
525
|
+
txTimeout,
|
|
526
|
+
...txInclusion,
|
|
527
|
+
onBroadcast
|
|
528
|
+
});
|
|
525
529
|
if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
|
|
526
530
|
code: __injectivelabs_exceptions.UnspecifiedErrorCode,
|
|
527
531
|
contextCode: response.code,
|
package/dist/esm/index.js
CHANGED
|
@@ -519,9 +519,13 @@ var EvmWallet = class extends BaseConcreteStrategy {
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
async sendTransaction(transaction, options) {
|
|
522
|
-
const { endpoints, txTimeout } = options;
|
|
522
|
+
const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
|
|
523
523
|
if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints within the options for using Ethereum native wallets"));
|
|
524
|
-
const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
524
|
+
const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
525
|
+
txTimeout,
|
|
526
|
+
...txInclusion,
|
|
527
|
+
onBroadcast
|
|
528
|
+
});
|
|
525
529
|
if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
|
|
526
530
|
code: UnspecifiedErrorCode,
|
|
527
531
|
contextCode: response.code,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-evm",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.9",
|
|
4
4
|
"description": "EVM wallet strategies for use with @injectivelabs/wallet-core.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@injectivelabs/exceptions": "1.20.
|
|
46
|
-
"@injectivelabs/sdk-ts": "1.20.
|
|
47
|
-
"@injectivelabs/
|
|
48
|
-
"@injectivelabs/wallet-base": "1.20.
|
|
49
|
-
"@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
|
+
"@injectivelabs/utils": "1.20.9"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|