@injectivelabs/wallet-magic 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.
@@ -123,9 +123,13 @@ var Magic = class extends __injectivelabs_wallet_base.BaseConcreteStrategy {
123
123
  });
124
124
  }
125
125
  async sendTransaction(transaction, options) {
126
- const { endpoints, txTimeout } = options;
126
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
127
127
  if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Magic wallet"));
128
- const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
128
+ const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
129
+ txTimeout,
130
+ ...txInclusion,
131
+ onBroadcast
132
+ });
129
133
  if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
130
134
  code: __injectivelabs_exceptions.UnspecifiedErrorCode,
131
135
  contextCode: response.code,
package/dist/esm/index.js CHANGED
@@ -123,9 +123,13 @@ var Magic = class extends BaseConcreteStrategy {
123
123
  });
124
124
  }
125
125
  async sendTransaction(transaction, options) {
126
- const { endpoints, txTimeout } = options;
126
+ const { endpoints, txTimeout, txInclusion, onBroadcast } = options;
127
127
  if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints.grpc within the options for using Magic wallet"));
128
- const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, { txTimeout });
128
+ const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
129
+ txTimeout,
130
+ ...txInclusion,
131
+ onBroadcast
132
+ });
129
133
  if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
130
134
  code: UnspecifiedErrorCode,
131
135
  contextCode: response.code,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-magic",
3
- "version": "1.20.7",
3
+ "version": "1.20.8",
4
4
  "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -45,10 +45,10 @@
45
45
  "@magic-ext/cosmos": "^26.2.0",
46
46
  "@magic-ext/oauth2": "^13.2.0",
47
47
  "magic-sdk": "^31.2.0",
48
- "@injectivelabs/sdk-ts": "1.20.7",
49
- "@injectivelabs/ts-types": "1.20.7",
50
- "@injectivelabs/wallet-base": "1.20.7",
51
- "@injectivelabs/exceptions": "1.20.7"
48
+ "@injectivelabs/exceptions": "1.20.8",
49
+ "@injectivelabs/ts-types": "1.20.8",
50
+ "@injectivelabs/sdk-ts": "1.20.8",
51
+ "@injectivelabs/wallet-base": "1.20.8"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"