@injectivelabs/wallet-cosmostation 1.15.30 → 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.
@@ -12,7 +12,7 @@ export declare class Cosmostation extends BaseConcreteStrategy implements Concre
12
12
  enable(): Promise<boolean>;
13
13
  getAddresses(): Promise<string[]>;
14
14
  getSessionOrConfirm(address?: AccountAddress): Promise<string>;
15
- sendEthereumTransaction(_transaction: unknown, _options: {
15
+ sendEvmTransaction(_transaction: unknown, _options: {
16
16
  address: AccountAddress;
17
17
  ethereumChainId: EthereumChainId;
18
18
  }): Promise<string>;
@@ -34,6 +34,6 @@ export declare class Cosmostation extends BaseConcreteStrategy implements Concre
34
34
  signEip712TypedData(_eip712TypedData: string, _address: AccountAddress): Promise<string>;
35
35
  signArbitrary(signer: string, data: string | Uint8Array): Promise<string>;
36
36
  getEthereumChainId(): Promise<string>;
37
- getEthereumTransactionReceipt(_txHash: string): Promise<string>;
37
+ getEvmTransactionReceipt(_txHash: string): Promise<string>;
38
38
  private getCosmostationWallet;
39
39
  }
@@ -64,10 +64,10 @@ class Cosmostation extends wallet_base_1.BaseConcreteStrategy {
64
64
  return Promise.resolve(`0x${Buffer.from(`Confirmation for ${address} at time: ${Date.now()}`).toString('hex')}`);
65
65
  }
66
66
  // eslint-disable-next-line class-methods-use-this
67
- async sendEthereumTransaction(_transaction, _options) {
68
- throw new exceptions_1.CosmosWalletException(new Error('sendEthereumTransaction is not supported. Cosmostation only supports sending cosmos transactions'), {
67
+ async sendEvmTransaction(_transaction, _options) {
68
+ throw new exceptions_1.CosmosWalletException(new Error('sendEvmTransaction is not supported. Cosmostation only supports sending cosmos transactions'), {
69
69
  code: exceptions_1.UnspecifiedErrorCode,
70
- context: wallet_base_1.WalletAction.SendEthereumTransaction,
70
+ context: wallet_base_1.WalletAction.SendEvmTransaction,
71
71
  });
72
72
  }
73
73
  async sendTransaction(transaction, _options) {
@@ -170,11 +170,11 @@ class Cosmostation extends wallet_base_1.BaseConcreteStrategy {
170
170
  context: wallet_base_1.WalletAction.GetChainId,
171
171
  });
172
172
  }
173
- async getEthereumTransactionReceipt(_txHash) {
174
- throw new exceptions_1.CosmosWalletException(new Error('getEthereumTransactionReceipt is not supported on Cosmostation'), {
173
+ async getEvmTransactionReceipt(_txHash) {
174
+ throw new exceptions_1.CosmosWalletException(new Error('getEvmTransactionReceipt is not supported on Cosmostation'), {
175
175
  code: exceptions_1.UnspecifiedErrorCode,
176
176
  type: exceptions_1.ErrorType.WalletError,
177
- context: wallet_base_1.WalletAction.GetEthereumTransactionReceipt,
177
+ context: wallet_base_1.WalletAction.GetEvmTransactionReceipt,
178
178
  });
179
179
  }
180
180
  async getCosmostationWallet() {
@@ -12,7 +12,7 @@ export declare class Cosmostation extends BaseConcreteStrategy implements Concre
12
12
  enable(): Promise<boolean>;
13
13
  getAddresses(): Promise<string[]>;
14
14
  getSessionOrConfirm(address?: AccountAddress): Promise<string>;
15
- sendEthereumTransaction(_transaction: unknown, _options: {
15
+ sendEvmTransaction(_transaction: unknown, _options: {
16
16
  address: AccountAddress;
17
17
  ethereumChainId: EthereumChainId;
18
18
  }): Promise<string>;
@@ -34,6 +34,6 @@ export declare class Cosmostation extends BaseConcreteStrategy implements Concre
34
34
  signEip712TypedData(_eip712TypedData: string, _address: AccountAddress): Promise<string>;
35
35
  signArbitrary(signer: string, data: string | Uint8Array): Promise<string>;
36
36
  getEthereumChainId(): Promise<string>;
37
- getEthereumTransactionReceipt(_txHash: string): Promise<string>;
37
+ getEvmTransactionReceipt(_txHash: string): Promise<string>;
38
38
  private getCosmostationWallet;
39
39
  }
@@ -61,10 +61,10 @@ export class Cosmostation extends BaseConcreteStrategy {
61
61
  return Promise.resolve(`0x${Buffer.from(`Confirmation for ${address} at time: ${Date.now()}`).toString('hex')}`);
62
62
  }
63
63
  // eslint-disable-next-line class-methods-use-this
64
- async sendEthereumTransaction(_transaction, _options) {
65
- throw new CosmosWalletException(new Error('sendEthereumTransaction is not supported. Cosmostation only supports sending cosmos transactions'), {
64
+ async sendEvmTransaction(_transaction, _options) {
65
+ throw new CosmosWalletException(new Error('sendEvmTransaction is not supported. Cosmostation only supports sending cosmos transactions'), {
66
66
  code: UnspecifiedErrorCode,
67
- context: WalletAction.SendEthereumTransaction,
67
+ context: WalletAction.SendEvmTransaction,
68
68
  });
69
69
  }
70
70
  async sendTransaction(transaction, _options) {
@@ -167,11 +167,11 @@ export class Cosmostation extends BaseConcreteStrategy {
167
167
  context: WalletAction.GetChainId,
168
168
  });
169
169
  }
170
- async getEthereumTransactionReceipt(_txHash) {
171
- throw new CosmosWalletException(new Error('getEthereumTransactionReceipt is not supported on Cosmostation'), {
170
+ async getEvmTransactionReceipt(_txHash) {
171
+ throw new CosmosWalletException(new Error('getEvmTransactionReceipt is not supported on Cosmostation'), {
172
172
  code: UnspecifiedErrorCode,
173
173
  type: ErrorType.WalletError,
174
- context: WalletAction.GetEthereumTransactionReceipt,
174
+ context: WalletAction.GetEvmTransactionReceipt,
175
175
  });
176
176
  }
177
177
  async getCosmostationWallet() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-cosmostation",
3
3
  "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.",
4
- "version": "1.15.30",
4
+ "version": "1.15.32",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -58,14 +58,14 @@
58
58
  "dependencies": {
59
59
  "@cosmjs/proto-signing": "^0.32.3",
60
60
  "@cosmostation/extension-client": "^0.1.15",
61
- "@injectivelabs/exceptions": "^1.15.27",
62
- "@injectivelabs/sdk-ts": "^1.15.30",
63
- "@injectivelabs/ts-types": "^1.15.28",
64
- "@injectivelabs/utils": "^1.15.28",
65
- "@injectivelabs/wallet-base": "^1.15.30",
61
+ "@injectivelabs/exceptions": "^1.15.29",
62
+ "@injectivelabs/sdk-ts": "^1.15.32",
63
+ "@injectivelabs/ts-types": "^1.15.30",
64
+ "@injectivelabs/utils": "^1.15.30",
65
+ "@injectivelabs/wallet-base": "^1.15.32",
66
66
  "@walletconnect/ethereum-provider": "2.18.1"
67
67
  },
68
- "gitHead": "2c2a365b27e08ad2e0eb06efe3c490c88888fee4",
68
+ "gitHead": "e8fa12c489c4b3432579c5df30fd6f939d57b442",
69
69
  "typedoc": {
70
70
  "entryPoint": "./src/index.ts",
71
71
  "readmeFile": "./README.md",