@injectivelabs/wallet-core 1.15.31 → 1.15.32

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.
@@ -16,11 +16,11 @@ class Web3Broadcaster {
16
16
  async sendTransaction(args) {
17
17
  const { walletStrategy, ethereumChainId } = this;
18
18
  try {
19
- const txHash = await walletStrategy.sendEthereumTransaction(args.tx, {
19
+ const txHash = await walletStrategy.sendEvmTransaction(args.tx, {
20
20
  ethereumChainId,
21
21
  address: args.address,
22
22
  });
23
- await walletStrategy.getEthereumTransactionReceipt(txHash);
23
+ await walletStrategy.getEvmTransactionReceipt(txHash, ethereumChainId);
24
24
  return txHash;
25
25
  }
26
26
  catch (e) {
@@ -24,11 +24,11 @@ export default class BaseWalletStrategy implements WalletStrategyInterface {
24
24
  enable(args?: unknown): Promise<boolean>;
25
25
  enableAndGetAddresses(args?: unknown): Promise<AccountAddress[]>;
26
26
  getEthereumChainId(): Promise<string>;
27
- getEthereumTransactionReceipt(txHash: string): Promise<void>;
27
+ getEvmTransactionReceipt(txHash: string, ethereumChainId?: EthereumChainId): Promise<void>;
28
28
  getSessionOrConfirm(address?: AccountAddress): Promise<string>;
29
29
  getWalletClient<T>(): Promise<T>;
30
30
  sendTransaction(tx: DirectSignResponse | TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
31
- sendEthereumTransaction(tx: any, options: {
31
+ sendEvmTransaction(tx: any, options: {
32
32
  address: AccountAddress;
33
33
  ethereumChainId: EthereumChainId;
34
34
  }): Promise<string>;
@@ -75,8 +75,8 @@ class BaseWalletStrategy {
75
75
  getEthereumChainId() {
76
76
  return this.getStrategy().getEthereumChainId();
77
77
  }
78
- async getEthereumTransactionReceipt(txHash) {
79
- return this.getStrategy().getEthereumTransactionReceipt(txHash);
78
+ async getEvmTransactionReceipt(txHash, ethereumChainId) {
79
+ return this.getStrategy().getEvmTransactionReceipt(txHash, ethereumChainId);
80
80
  }
81
81
  async getSessionOrConfirm(address) {
82
82
  return this.getStrategy().getSessionOrConfirm(address);
@@ -93,8 +93,8 @@ class BaseWalletStrategy {
93
93
  async sendTransaction(tx, options) {
94
94
  return this.getStrategy().sendTransaction(tx, options);
95
95
  }
96
- async sendEthereumTransaction(tx /* TODO */, options) {
97
- return this.getStrategy().sendEthereumTransaction(tx, options);
96
+ async sendEvmTransaction(tx /* TODO */, options) {
97
+ return this.getStrategy().sendEvmTransaction(tx, options);
98
98
  }
99
99
  async signEip712TypedData(eip712TypedData, address) {
100
100
  if ((0, wallet_base_1.isCosmosWallet)(this.wallet)) {
@@ -13,11 +13,11 @@ export class Web3Broadcaster {
13
13
  async sendTransaction(args) {
14
14
  const { walletStrategy, ethereumChainId } = this;
15
15
  try {
16
- const txHash = await walletStrategy.sendEthereumTransaction(args.tx, {
16
+ const txHash = await walletStrategy.sendEvmTransaction(args.tx, {
17
17
  ethereumChainId,
18
18
  address: args.address,
19
19
  });
20
- await walletStrategy.getEthereumTransactionReceipt(txHash);
20
+ await walletStrategy.getEvmTransactionReceipt(txHash, ethereumChainId);
21
21
  return txHash;
22
22
  }
23
23
  catch (e) {
@@ -24,11 +24,11 @@ export default class BaseWalletStrategy implements WalletStrategyInterface {
24
24
  enable(args?: unknown): Promise<boolean>;
25
25
  enableAndGetAddresses(args?: unknown): Promise<AccountAddress[]>;
26
26
  getEthereumChainId(): Promise<string>;
27
- getEthereumTransactionReceipt(txHash: string): Promise<void>;
27
+ getEvmTransactionReceipt(txHash: string, ethereumChainId?: EthereumChainId): Promise<void>;
28
28
  getSessionOrConfirm(address?: AccountAddress): Promise<string>;
29
29
  getWalletClient<T>(): Promise<T>;
30
30
  sendTransaction(tx: DirectSignResponse | TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
31
- sendEthereumTransaction(tx: any, options: {
31
+ sendEvmTransaction(tx: any, options: {
32
32
  address: AccountAddress;
33
33
  ethereumChainId: EthereumChainId;
34
34
  }): Promise<string>;
@@ -73,8 +73,8 @@ export default class BaseWalletStrategy {
73
73
  getEthereumChainId() {
74
74
  return this.getStrategy().getEthereumChainId();
75
75
  }
76
- async getEthereumTransactionReceipt(txHash) {
77
- return this.getStrategy().getEthereumTransactionReceipt(txHash);
76
+ async getEvmTransactionReceipt(txHash, ethereumChainId) {
77
+ return this.getStrategy().getEvmTransactionReceipt(txHash, ethereumChainId);
78
78
  }
79
79
  async getSessionOrConfirm(address) {
80
80
  return this.getStrategy().getSessionOrConfirm(address);
@@ -91,8 +91,8 @@ export default class BaseWalletStrategy {
91
91
  async sendTransaction(tx, options) {
92
92
  return this.getStrategy().sendTransaction(tx, options);
93
93
  }
94
- async sendEthereumTransaction(tx /* TODO */, options) {
95
- return this.getStrategy().sendEthereumTransaction(tx, options);
94
+ async sendEvmTransaction(tx /* TODO */, options) {
95
+ return this.getStrategy().sendEvmTransaction(tx, options);
96
96
  }
97
97
  async signEip712TypedData(eip712TypedData, address) {
98
98
  if (isCosmosWallet(this.wallet)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-core",
3
3
  "description": "Core wallet strategy",
4
- "version": "1.15.31",
4
+ "version": "1.15.32",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -56,17 +56,17 @@
56
56
  "start": "node dist/index.js"
57
57
  },
58
58
  "dependencies": {
59
- "@injectivelabs/exceptions": "^1.15.28",
60
- "@injectivelabs/networks": "^1.15.29",
61
- "@injectivelabs/sdk-ts": "^1.15.31",
62
- "@injectivelabs/ts-types": "^1.15.29",
63
- "@injectivelabs/utils": "^1.15.29",
64
- "@injectivelabs/wallet-base": "^1.15.31",
59
+ "@injectivelabs/exceptions": "^1.15.29",
60
+ "@injectivelabs/networks": "^1.15.30",
61
+ "@injectivelabs/sdk-ts": "^1.15.32",
62
+ "@injectivelabs/ts-types": "^1.15.30",
63
+ "@injectivelabs/utils": "^1.15.30",
64
+ "@injectivelabs/wallet-base": "^1.15.32",
65
65
  "@keplr-wallet/types": "^0.12.159",
66
66
  "eventemitter3": "^5.0.1"
67
67
  },
68
68
  "devDependencies": {
69
69
  "shx": "^0.3.3"
70
70
  },
71
- "gitHead": "5b5ea65de8584a70d9bc9f75a17d1d43e2b3bbad"
71
+ "gitHead": "e8fa12c489c4b3432579c5df30fd6f939d57b442"
72
72
  }