@injectivelabs/wallet-core 1.17.2-alpha.7 → 1.17.2-alpha.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 +3 -3
- package/dist/esm/index.js +3 -3
- package/package.json +7 -7
package/dist/cjs/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@ let __injectivelabs_exceptions = require("@injectivelabs/exceptions");
|
|
|
2
2
|
let eventemitter3 = require("eventemitter3");
|
|
3
3
|
let __injectivelabs_wallet_base = require("@injectivelabs/wallet-base");
|
|
4
4
|
let __injectivelabs_ts_types = require("@injectivelabs/ts-types");
|
|
5
|
-
let __injectivelabs_sdk_ts_utils = require("@injectivelabs/sdk-ts/utils");
|
|
6
5
|
let __injectivelabs_sdk_ts_core_accounts = require("@injectivelabs/sdk-ts/core/accounts");
|
|
6
|
+
let __injectivelabs_sdk_ts_utils = require("@injectivelabs/sdk-ts/utils");
|
|
7
7
|
let __injectivelabs_sdk_ts_client_indexer = require("@injectivelabs/sdk-ts/client/indexer");
|
|
8
8
|
let __injectivelabs_networks = require("@injectivelabs/networks");
|
|
9
9
|
let __injectivelabs_sdk_ts_client_chain = require("@injectivelabs/sdk-ts/client/chain");
|
|
@@ -417,7 +417,7 @@ var MsgBroadcaster = class {
|
|
|
417
417
|
evmChainId
|
|
418
418
|
});
|
|
419
419
|
/** Signing on Ethereum */
|
|
420
|
-
const signature = await walletStrategy.signEip712TypedData(
|
|
420
|
+
const signature = await walletStrategy.signEip712TypedData((0, __injectivelabs_sdk_ts_utils.safeBigIntStringify)(eip712TypedData), tx.ethereumAddress, { txTimeout: txTimeoutTimeInSeconds });
|
|
421
421
|
const pubKeyOrSignatureDerivedPubKey = await getEthereumWalletPubKey({
|
|
422
422
|
pubKey: (_baseAccount$pubKey = baseAccount.pubKey) === null || _baseAccount$pubKey === void 0 ? void 0 : _baseAccount$pubKey.key,
|
|
423
423
|
eip712TypedData,
|
|
@@ -510,7 +510,7 @@ var MsgBroadcaster = class {
|
|
|
510
510
|
});
|
|
511
511
|
walletStrategy.emit(__injectivelabs_wallet_base.WalletStrategyEmitterEventType.TransactionPreparationEnd);
|
|
512
512
|
/** Signing on Ethereum */
|
|
513
|
-
const signature = await walletStrategy.signEip712TypedData(
|
|
513
|
+
const signature = await walletStrategy.signEip712TypedData((0, __injectivelabs_sdk_ts_utils.safeBigIntStringify)(eip712TypedData), tx.ethereumAddress, { txTimeout: txTimeoutTimeInSeconds });
|
|
514
514
|
const pubKeyOrSignatureDerivedPubKey = await getEthereumWalletPubKey({
|
|
515
515
|
pubKey: (_baseAccount$pubKey2 = baseAccount.pubKey) === null || _baseAccount$pubKey2 === void 0 ? void 0 : _baseAccount$pubKey2.key,
|
|
516
516
|
eip712TypedData,
|
package/dist/esm/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { ChainCosmosErrorCode, GeneralException, TransactionChainErrorModule, Tr
|
|
|
2
2
|
import { EventEmitter } from "eventemitter3";
|
|
3
3
|
import { Wallet, WalletDeviceType, WalletStrategyEmitterEventType, createEip712StdSignDoc, getEthereumSignerAddress, getInjectiveSignerAddress, isCosmosAminoOnlyWallet, isCosmosWallet, isEip712V2OnlyWallet, isEvmBrowserWallet, isEvmWallet } from "@injectivelabs/wallet-base";
|
|
4
4
|
import { EvmChainId } from "@injectivelabs/ts-types";
|
|
5
|
-
import { base64ToUint8Array, getGasPriceBasedOnMessage, hexToBase64, hexToBuff, hexToUint8Array, ofacList, recoverTypedSignaturePubKey, uint8ArrayToBase64 } from "@injectivelabs/sdk-ts/utils";
|
|
6
5
|
import { PublicKey } from "@injectivelabs/sdk-ts/core/accounts";
|
|
6
|
+
import { base64ToUint8Array, getGasPriceBasedOnMessage, hexToBase64, hexToBuff, hexToUint8Array, ofacList, recoverTypedSignaturePubKey, safeBigIntStringify, uint8ArrayToBase64 } from "@injectivelabs/sdk-ts/utils";
|
|
7
7
|
import { IndexerGrpcWeb3GwApi } from "@injectivelabs/sdk-ts/client/indexer";
|
|
8
8
|
import { getNetworkEndpoints, getNetworkInfo, isMainnet, isTestnet } from "@injectivelabs/networks";
|
|
9
9
|
import { ChainGrpcAuthApi, ChainGrpcTendermintApi, ChainGrpcTxFeesApi } from "@injectivelabs/sdk-ts/client/chain";
|
|
@@ -417,7 +417,7 @@ var MsgBroadcaster = class {
|
|
|
417
417
|
evmChainId
|
|
418
418
|
});
|
|
419
419
|
/** Signing on Ethereum */
|
|
420
|
-
const signature = await walletStrategy.signEip712TypedData(
|
|
420
|
+
const signature = await walletStrategy.signEip712TypedData(safeBigIntStringify(eip712TypedData), tx.ethereumAddress, { txTimeout: txTimeoutTimeInSeconds });
|
|
421
421
|
const pubKeyOrSignatureDerivedPubKey = await getEthereumWalletPubKey({
|
|
422
422
|
pubKey: (_baseAccount$pubKey = baseAccount.pubKey) === null || _baseAccount$pubKey === void 0 ? void 0 : _baseAccount$pubKey.key,
|
|
423
423
|
eip712TypedData,
|
|
@@ -510,7 +510,7 @@ var MsgBroadcaster = class {
|
|
|
510
510
|
});
|
|
511
511
|
walletStrategy.emit(WalletStrategyEmitterEventType.TransactionPreparationEnd);
|
|
512
512
|
/** Signing on Ethereum */
|
|
513
|
-
const signature = await walletStrategy.signEip712TypedData(
|
|
513
|
+
const signature = await walletStrategy.signEip712TypedData(safeBigIntStringify(eip712TypedData), tx.ethereumAddress, { txTimeout: txTimeoutTimeInSeconds });
|
|
514
514
|
const pubKeyOrSignatureDerivedPubKey = await getEthereumWalletPubKey({
|
|
515
515
|
pubKey: (_baseAccount$pubKey2 = baseAccount.pubKey) === null || _baseAccount$pubKey2 === void 0 ? void 0 : _baseAccount$pubKey2.key,
|
|
516
516
|
eip712TypedData,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-core",
|
|
3
|
-
"version": "1.17.2-alpha.
|
|
3
|
+
"version": "1.17.2-alpha.9",
|
|
4
4
|
"description": "Core wallet strategy",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@keplr-wallet/types": "^0.12.296",
|
|
46
46
|
"eventemitter3": "^5.0.1",
|
|
47
|
-
"@injectivelabs/exceptions": "1.17.2-alpha.
|
|
48
|
-
"@injectivelabs/
|
|
49
|
-
"@injectivelabs/
|
|
50
|
-
"@injectivelabs/
|
|
51
|
-
"@injectivelabs/wallet-base": "1.17.2-alpha.
|
|
52
|
-
"@injectivelabs/ts-types": "1.17.2-alpha.
|
|
47
|
+
"@injectivelabs/exceptions": "1.17.2-alpha.9",
|
|
48
|
+
"@injectivelabs/sdk-ts": "1.17.2-alpha.9",
|
|
49
|
+
"@injectivelabs/utils": "1.17.2-alpha.9",
|
|
50
|
+
"@injectivelabs/networks": "1.17.2-alpha.9",
|
|
51
|
+
"@injectivelabs/wallet-base": "1.17.2-alpha.9",
|
|
52
|
+
"@injectivelabs/ts-types": "1.17.2-alpha.9"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|