@injectivelabs/wallet-wallet-connect 1.20.65-alpha.0 → 1.20.65
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 +1 -14
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +3 -16
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
let __injectivelabs_utils = require("@injectivelabs/utils");
|
|
2
2
|
let __injectivelabs_sdk_ts_utils = require("@injectivelabs/sdk-ts/utils");
|
|
3
3
|
let __injectivelabs_ts_types = require("@injectivelabs/ts-types");
|
|
4
|
-
let __injectivelabs_sdk_ts_core_tx = require("@injectivelabs/sdk-ts/core/tx");
|
|
5
4
|
let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
|
|
6
5
|
let __injectivelabs_wallet_base = require("@injectivelabs/wallet-base");
|
|
7
6
|
|
|
@@ -259,19 +258,7 @@ var WalletConnect = class WalletConnect extends __injectivelabs_wallet_base.Base
|
|
|
259
258
|
}
|
|
260
259
|
}
|
|
261
260
|
async sendTransaction(transaction, options) {
|
|
262
|
-
|
|
263
|
-
if (!endpoints) throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("You have to pass endpoints within the options"));
|
|
264
|
-
const response = await new __injectivelabs_sdk_ts_core_tx.TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
265
|
-
txTimeout,
|
|
266
|
-
...txInclusion,
|
|
267
|
-
onBroadcast
|
|
268
|
-
});
|
|
269
|
-
if (response.code !== 0) throw new __injectivelabs_exceptions.TransactionException(new Error(response.rawLog), {
|
|
270
|
-
code: __injectivelabs_exceptions.UnspecifiedErrorCode,
|
|
271
|
-
contextCode: response.code,
|
|
272
|
-
contextModule: response.codespace
|
|
273
|
-
});
|
|
274
|
-
return response;
|
|
261
|
+
return (0, __injectivelabs_wallet_base.broadcastTxRaw)(transaction, options);
|
|
275
262
|
}
|
|
276
263
|
async sendEvmTransaction(transaction, _options) {
|
|
277
264
|
const provider = (await this.getAppKit()).getWalletProvider();
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountAddress, EvmChainId } from "@injectivelabs/ts-types";
|
|
2
|
-
import { TxResponse } from "@injectivelabs/sdk-ts/core/tx";
|
|
3
2
|
import { BaseConcreteStrategy, ConcreteWalletStrategy, Eip1193Provider, SendTransactionOptions, StdSignDoc, WalletDeviceType } from "@injectivelabs/wallet-base";
|
|
3
|
+
import { TxResponse } from "@injectivelabs/sdk-ts/core/tx";
|
|
4
4
|
import { AminoSignResponse, DirectSignResponse, TxRaw } from "@injectivelabs/sdk-ts/types";
|
|
5
5
|
|
|
6
6
|
//#region src/strategy/strategy.d.ts
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { sleep } from "@injectivelabs/utils";
|
|
2
2
|
import { toUtf8 } from "@injectivelabs/sdk-ts/utils";
|
|
3
3
|
import { EvmChainId } from "@injectivelabs/ts-types";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { BaseConcreteStrategy, WalletAction, WalletConnectStrategyEventType, WalletDeviceType, WalletEventListener } from "@injectivelabs/wallet-base";
|
|
4
|
+
import { ErrorType, UnspecifiedErrorCode, WalletConnectException, WalletException } from "@injectivelabs/exceptions";
|
|
5
|
+
import { BaseConcreteStrategy, WalletAction, WalletConnectStrategyEventType, WalletDeviceType, WalletEventListener, broadcastTxRaw } from "@injectivelabs/wallet-base";
|
|
7
6
|
|
|
8
7
|
//#region \0@oxc-project+runtime@0.99.0/helpers/typeof.js
|
|
9
8
|
function _typeof(o) {
|
|
@@ -259,19 +258,7 @@ var WalletConnect = class WalletConnect extends BaseConcreteStrategy {
|
|
|
259
258
|
}
|
|
260
259
|
}
|
|
261
260
|
async sendTransaction(transaction, options) {
|
|
262
|
-
|
|
263
|
-
if (!endpoints) throw new WalletException(/* @__PURE__ */ new Error("You have to pass endpoints within the options"));
|
|
264
|
-
const response = await new TxGrpcApi(endpoints.grpc).broadcast(transaction, {
|
|
265
|
-
txTimeout,
|
|
266
|
-
...txInclusion,
|
|
267
|
-
onBroadcast
|
|
268
|
-
});
|
|
269
|
-
if (response.code !== 0) throw new TransactionException(new Error(response.rawLog), {
|
|
270
|
-
code: UnspecifiedErrorCode,
|
|
271
|
-
contextCode: response.code,
|
|
272
|
-
contextModule: response.codespace
|
|
273
|
-
});
|
|
274
|
-
return response;
|
|
261
|
+
return broadcastTxRaw(transaction, options);
|
|
275
262
|
}
|
|
276
263
|
async sendEvmTransaction(transaction, _options) {
|
|
277
264
|
const provider = (await this.getAppKit()).getWalletProvider();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-wallet-connect",
|
|
3
|
-
"version": "1.20.65
|
|
3
|
+
"version": "1.20.65",
|
|
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.65
|
|
48
|
-
"@injectivelabs/ts-types": "1.20.65
|
|
49
|
-
"@injectivelabs/sdk-ts": "1.20.65
|
|
50
|
-
"@injectivelabs/wallet-base": "1.20.65
|
|
47
|
+
"@injectivelabs/exceptions": "1.20.65",
|
|
48
|
+
"@injectivelabs/ts-types": "1.20.65",
|
|
49
|
+
"@injectivelabs/sdk-ts": "1.20.65",
|
|
50
|
+
"@injectivelabs/wallet-base": "1.20.65"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|