@injectivelabs/wallet-evm 1.20.7 → 1.20.8

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.
@@ -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, { txTimeout });
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, { txTimeout });
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.7",
3
+ "version": "1.20.8",
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.7",
46
- "@injectivelabs/sdk-ts": "1.20.7",
47
- "@injectivelabs/utils": "1.20.7",
48
- "@injectivelabs/wallet-base": "1.20.7",
49
- "@injectivelabs/ts-types": "1.20.7"
45
+ "@injectivelabs/exceptions": "1.20.8",
46
+ "@injectivelabs/sdk-ts": "1.20.8",
47
+ "@injectivelabs/utils": "1.20.8",
48
+ "@injectivelabs/wallet-base": "1.20.8",
49
+ "@injectivelabs/ts-types": "1.20.8"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"