@injectivelabs/wallet-wallet-connect 1.16.7 → 1.16.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.
package/README.md CHANGED
@@ -13,7 +13,7 @@ _Package to use Wallet Connect Wallets on Injective via the wallet strategy._
13
13
  ## 📚 Installation
14
14
 
15
15
  ```bash
16
- yarn add @injectivelabs/wallet-wallet-connect
16
+ pnpm add @injectivelabs/wallet-wallet-connect
17
17
  ```
18
18
 
19
19
  ---
@@ -23,6 +23,7 @@ yarn add @injectivelabs/wallet-wallet-connect
23
23
  Injective's wallet packages are intended to make it easy for developers to choose exactly what wallets - and subsequent dependencies - they want to include in their projects.
24
24
 
25
25
  Keep in mind to include specific wallet images in your public directory, right now we only have:
26
+
26
27
  - Fireblocks (path: `wallet-connect/fireblocks.webp`)
27
28
 
28
29
  Regardless of which wallet package(s) you choose to use you must also have `@injectivelabs/wallet-core` and `@injectivelabs/wallet-base` installed. These contain all of the types and core wallet functionality, with the separate wallet packages only providing the necessary dependencies and implementations for their specific wallets.
@@ -30,9 +31,9 @@ Regardless of which wallet package(s) you choose to use you must also have `@inj
30
31
  Here's a brief example of how to use this package to send 1 INJ.:
31
32
 
32
33
  ```typescript
33
- import { Wallet } from '@injectivelabs/wallet-base';
34
- import { BaseWalletStrategy, MsgBroadcaster } from '@injectivelabs/wallet-core';
35
- import { WalletConnectStrategy } from '@injectivelabs/wallet-wallet-connect';
34
+ import { Wallet } from '@injectivelabs/wallet-base'
35
+ import { BaseWalletStrategy, MsgBroadcaster } from '@injectivelabs/wallet-core'
36
+ import { WalletConnectStrategy } from '@injectivelabs/wallet-wallet-connect'
36
37
 
37
38
  const strategyArgs: WalletStrategyArguments = {
38
39
  chainId: ChainId.Mainnet,
@@ -1,6 +1,6 @@
1
1
  import { StdSignDoc, WalletDeviceType, BaseConcreteStrategy, ConcreteWalletStrategy, SendTransactionOptions } from '@injectivelabs/wallet-base';
2
2
  import { Provider } from '@bangjelkoski/wc-ethereum-provider';
3
- import { AccountAddress, EthereumChainId } from '@injectivelabs/ts-types';
3
+ import { AccountAddress, EvmChainId } from '@injectivelabs/ts-types';
4
4
  import { TxRaw, TxResponse, DirectSignResponse, AminoSignResponse } from '@injectivelabs/sdk-ts';
5
5
  export declare class WalletConnect extends BaseConcreteStrategy implements ConcreteWalletStrategy {
6
6
  provider: Provider | undefined;
@@ -13,7 +13,7 @@ export declare class WalletConnect extends BaseConcreteStrategy implements Concr
13
13
  getSessionOrConfirm(_address: AccountAddress): Promise<string>;
14
14
  sendEvmTransaction(transaction: unknown, _options: {
15
15
  address: AccountAddress;
16
- ethereumChainId: EthereumChainId;
16
+ evmChainId: EvmChainId;
17
17
  }): Promise<string>;
18
18
  sendTransaction(transaction: TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
19
19
  signEip712TypedData(eip712json: string, address: AccountAddress): Promise<string>;
@@ -147,7 +147,7 @@ class WalletConnect extends wallet_base_1.BaseConcreteStrategy {
147
147
  }
148
148
  }
149
149
  async getEvmTransactionReceipt(_txHash) {
150
- throw new exceptions_1.WalletException(new Error('This wallet does not support awaiting Ethereum transactions'), {
150
+ throw new exceptions_1.WalletException(new Error('This wallet does not support awaiting Evm transactions'), {
151
151
  code: exceptions_1.UnspecifiedErrorCode,
152
152
  type: exceptions_1.ErrorType.WalletError,
153
153
  contextModule: wallet_base_1.WalletAction.GetEvmTransactionReceipt,
@@ -195,9 +195,9 @@ class WalletConnect extends wallet_base_1.BaseConcreteStrategy {
195
195
  metadata: this
196
196
  .metadata,
197
197
  showQrModal: true,
198
- optionalChains: this.ethereumChainId
199
- ? [this.ethereumChainId]
200
- : [ts_types_1.EthereumChainId.Mainnet, ts_types_1.EthereumChainId.Sepolia],
198
+ optionalChains: this.evmChainId
199
+ ? [this.evmChainId]
200
+ : [ts_types_1.EvmChainId.Mainnet, ts_types_1.EvmChainId.Sepolia],
201
201
  qrModalOptions: {
202
202
  explorerRecommendedWalletIds: [WalletConnectIds.FireBlocks],
203
203
  explorerExcludedWalletIds: 'ALL',
@@ -1,6 +1,6 @@
1
1
  import { StdSignDoc, WalletDeviceType, BaseConcreteStrategy, ConcreteWalletStrategy, SendTransactionOptions } from '@injectivelabs/wallet-base';
2
2
  import { Provider } from '@bangjelkoski/wc-ethereum-provider';
3
- import { AccountAddress, EthereumChainId } from '@injectivelabs/ts-types';
3
+ import { AccountAddress, EvmChainId } from '@injectivelabs/ts-types';
4
4
  import { TxRaw, TxResponse, DirectSignResponse, AminoSignResponse } from '@injectivelabs/sdk-ts';
5
5
  export declare class WalletConnect extends BaseConcreteStrategy implements ConcreteWalletStrategy {
6
6
  provider: Provider | undefined;
@@ -13,7 +13,7 @@ export declare class WalletConnect extends BaseConcreteStrategy implements Concr
13
13
  getSessionOrConfirm(_address: AccountAddress): Promise<string>;
14
14
  sendEvmTransaction(transaction: unknown, _options: {
15
15
  address: AccountAddress;
16
- ethereumChainId: EthereumChainId;
16
+ evmChainId: EvmChainId;
17
17
  }): Promise<string>;
18
18
  sendTransaction(transaction: TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
19
19
  signEip712TypedData(eip712json: string, address: AccountAddress): Promise<string>;
@@ -2,7 +2,7 @@
2
2
  import { ErrorType, WalletException, MetamaskException, UnspecifiedErrorCode, TransactionException, } from '@injectivelabs/exceptions';
3
3
  import { WalletAction, WalletDeviceType, WalletEventListener, BaseConcreteStrategy, } from '@injectivelabs/wallet-base';
4
4
  import { EthereumProvider, } from '@bangjelkoski/wc-ethereum-provider';
5
- import { EthereumChainId } from '@injectivelabs/ts-types';
5
+ import { EvmChainId } from '@injectivelabs/ts-types';
6
6
  import { toUtf8, TxGrpcApi, } from '@injectivelabs/sdk-ts';
7
7
  const WalletConnectIds = {
8
8
  FireBlocks: '5864e2ced7c293ed18ac35e0db085c09ed567d67346ccb6f58a0327a75137489',
@@ -144,7 +144,7 @@ export class WalletConnect extends BaseConcreteStrategy {
144
144
  }
145
145
  }
146
146
  async getEvmTransactionReceipt(_txHash) {
147
- throw new WalletException(new Error('This wallet does not support awaiting Ethereum transactions'), {
147
+ throw new WalletException(new Error('This wallet does not support awaiting Evm transactions'), {
148
148
  code: UnspecifiedErrorCode,
149
149
  type: ErrorType.WalletError,
150
150
  contextModule: WalletAction.GetEvmTransactionReceipt,
@@ -192,9 +192,9 @@ export class WalletConnect extends BaseConcreteStrategy {
192
192
  metadata: this
193
193
  .metadata,
194
194
  showQrModal: true,
195
- optionalChains: this.ethereumChainId
196
- ? [this.ethereumChainId]
197
- : [EthereumChainId.Mainnet, EthereumChainId.Sepolia],
195
+ optionalChains: this.evmChainId
196
+ ? [this.evmChainId]
197
+ : [EvmChainId.Mainnet, EvmChainId.Sepolia],
198
198
  qrModalOptions: {
199
199
  explorerRecommendedWalletIds: [WalletConnectIds.FireBlocks],
200
200
  explorerExcludedWalletIds: 'ALL',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-wallet-connect",
3
3
  "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.",
4
- "version": "1.16.7",
4
+ "version": "1.16.8",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -41,10 +41,10 @@
41
41
  }
42
42
  },
43
43
  "scripts": {
44
- "build": "yarn build:cjs && yarn build:esm && yarn build:post",
44
+ "build": "pnpm build:cjs && pnpm build:esm && pnpm build:post",
45
45
  "build:cjs": "tsc --build --force tsconfig.build.json",
46
46
  "build:esm": "tsc --build --force tsconfig.build.esm.json",
47
- "build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && yarn build:post",
47
+ "build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && pnpm build:post",
48
48
  "build:post": "shx cp ../../../etc/stub/package.json.stub dist/cjs/package.json && shx cp ../../../etc/stub/package.esm.json.stub dist/esm/package.json",
49
49
  "clean": "tsc --build tsconfig.build.json --clean && tsc --build tsconfig.build.esm.json --clean && shx rm -rf coverage *.log junit.xml dist && jest --clearCache && shx mkdir -p dist",
50
50
  "test": "jest",
@@ -58,12 +58,15 @@
58
58
  "dependencies": {
59
59
  "@bangjelkoski/wallet-connect-ethereum-provider": "2.17.2",
60
60
  "@bangjelkoski/wc-ethereum-provider": "2.18.1",
61
- "@injectivelabs/exceptions": "^1.16.7",
62
- "@injectivelabs/sdk-ts": "^1.16.7",
63
- "@injectivelabs/ts-types": "^1.16.7",
64
- "@injectivelabs/wallet-base": "^1.16.7"
61
+ "@injectivelabs/exceptions": "1.16.6",
62
+ "@injectivelabs/sdk-ts": "1.16.8",
63
+ "@injectivelabs/ts-types": "1.16.8",
64
+ "@injectivelabs/wallet-base": "1.16.8"
65
65
  },
66
- "gitHead": "78f656ef404ef511dfe6e4cc9defcae0a7cbec76",
66
+ "devDependencies": {
67
+ "shx": "^0.3.4"
68
+ },
69
+ "gitHead": "8bdbbfff8a07053ec2cd91a7103bfe99975672b4",
67
70
  "typedoc": {
68
71
  "entryPoint": "./src/index.ts",
69
72
  "readmeFile": "./README.md",