@injectivelabs/wallet-wallet-connect 1.20.6 → 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.
@@ -252,9 +252,13 @@ var WalletConnect = class WalletConnect extends __injectivelabs_wallet_base.Base
252
252
  }
253
253
  }
254
254
  async sendTransaction(transaction, options) {
255
- const { endpoints, txTimeout } = options;
255
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
256
256
  if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints within the options"));
257
- const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
257
+ const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
258
+ txTimeout,
259
+ ...txInclusion,
260
+ onBroadcast
261
+ });
258
262
  if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
259
263
  code: __injectivelabs_exceptions.UnspecifiedErrorCode,
260
264
  contextCode: response.code,
package/dist/esm/index.js CHANGED
@@ -252,9 +252,13 @@ var WalletConnect = class WalletConnect extends BaseConcreteStrategy {
252
252
  }
253
253
  }
254
254
  async sendTransaction(transaction, options) {
255
- const { endpoints, txTimeout } = options;
255
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
256
256
  if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints within the options"));
257
- const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
257
+ const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
258
+ txTimeout,
259
+ ...txInclusion,
260
+ onBroadcast
261
+ });
258
262
  if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
259
263
  code: UnspecifiedErrorCode,
260
264
  contextCode: response.code,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-wallet-connect",
3
- "version": "1.20.6",
3
+ "version": "1.20.8",
4
4
  "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -44,10 +44,10 @@
44
44
  "dependencies": {
45
45
  "@reown/appkit": "1.8.15",
46
46
  "@reown/appkit-adapter-ethers": "1.8.15",
47
- "@injectivelabs/exceptions": "1.20.6",
48
- "@injectivelabs/sdk-ts": "1.20.6",
49
- "@injectivelabs/wallet-base": "1.20.6",
50
- "@injectivelabs/ts-types": "1.20.6"
47
+ "@injectivelabs/exceptions": "1.20.8",
48
+ "@injectivelabs/sdk-ts": "1.20.8",
49
+ "@injectivelabs/ts-types": "1.20.8",
50
+ "@injectivelabs/wallet-base": "1.20.8"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"