@injectivelabs/wallet-magic 1.15.31 → 1.15.33

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,7 +16,7 @@ export declare class Magic extends BaseConcreteStrategy implements ConcreteWalle
16
16
  provider: MagicProvider;
17
17
  }): Promise<string[]>;
18
18
  getSessionOrConfirm(address: AccountAddress): Promise<string>;
19
- sendEthereumTransaction(_transaction: unknown, _options: {
19
+ sendEvmTransaction(_transaction: unknown, _options: {
20
20
  address: AccountAddress;
21
21
  ethereumChainId: EthereumChainId;
22
22
  }): Promise<string>;
@@ -34,7 +34,7 @@ export declare class Magic extends BaseConcreteStrategy implements ConcreteWalle
34
34
  }): Promise<AminoSignResponse>;
35
35
  signArbitrary(_signer: AccountAddress, _data: string | Uint8Array): Promise<string>;
36
36
  getEthereumChainId(): Promise<string>;
37
- getEthereumTransactionReceipt(_txHash: string): Promise<string>;
37
+ getEvmTransactionReceipt(_txHash: string): Promise<string>;
38
38
  getPubKey(): Promise<string>;
39
39
  private pollUserLoggedInState;
40
40
  private getMagicWallet;
@@ -88,10 +88,10 @@ class Magic extends wallet_base_1.BaseConcreteStrategy {
88
88
  async getSessionOrConfirm(address) {
89
89
  return Promise.resolve(`0x${Buffer.from(`Confirmation for ${address} at time: ${Date.now()}`).toString('hex')}`);
90
90
  }
91
- async sendEthereumTransaction(_transaction, _options) {
92
- throw new exceptions_1.CosmosWalletException(new Error('sendEthereumTransaction is not supported. Leap only supports sending cosmos transactions'), {
91
+ async sendEvmTransaction(_transaction, _options) {
92
+ throw new exceptions_1.CosmosWalletException(new Error('sendEvmTransaction is not supported. Leap only supports sending cosmos transactions'), {
93
93
  code: exceptions_1.UnspecifiedErrorCode,
94
- context: wallet_base_1.WalletAction.SendEthereumTransaction,
94
+ context: wallet_base_1.WalletAction.SendEvmTransaction,
95
95
  });
96
96
  }
97
97
  async sendTransaction(transaction, options) {
@@ -143,11 +143,11 @@ class Magic extends wallet_base_1.BaseConcreteStrategy {
143
143
  context: wallet_base_1.WalletAction.GetChainId,
144
144
  });
145
145
  }
146
- async getEthereumTransactionReceipt(_txHash) {
147
- throw new exceptions_1.CosmosWalletException(new Error('getEthereumTransactionReceipt is not supported on Cosmostation'), {
146
+ async getEvmTransactionReceipt(_txHash) {
147
+ throw new exceptions_1.CosmosWalletException(new Error('getEvmTransactionReceipt is not supported on Cosmostation'), {
148
148
  code: exceptions_1.UnspecifiedErrorCode,
149
149
  type: exceptions_1.ErrorType.WalletError,
150
- context: wallet_base_1.WalletAction.GetEthereumTransactionReceipt,
150
+ context: wallet_base_1.WalletAction.GetEvmTransactionReceipt,
151
151
  });
152
152
  }
153
153
  // eslint-disable-next-line class-methods-use-this
@@ -16,7 +16,7 @@ export declare class Magic extends BaseConcreteStrategy implements ConcreteWalle
16
16
  provider: MagicProvider;
17
17
  }): Promise<string[]>;
18
18
  getSessionOrConfirm(address: AccountAddress): Promise<string>;
19
- sendEthereumTransaction(_transaction: unknown, _options: {
19
+ sendEvmTransaction(_transaction: unknown, _options: {
20
20
  address: AccountAddress;
21
21
  ethereumChainId: EthereumChainId;
22
22
  }): Promise<string>;
@@ -34,7 +34,7 @@ export declare class Magic extends BaseConcreteStrategy implements ConcreteWalle
34
34
  }): Promise<AminoSignResponse>;
35
35
  signArbitrary(_signer: AccountAddress, _data: string | Uint8Array): Promise<string>;
36
36
  getEthereumChainId(): Promise<string>;
37
- getEthereumTransactionReceipt(_txHash: string): Promise<string>;
37
+ getEvmTransactionReceipt(_txHash: string): Promise<string>;
38
38
  getPubKey(): Promise<string>;
39
39
  private pollUserLoggedInState;
40
40
  private getMagicWallet;
@@ -85,10 +85,10 @@ export class Magic extends BaseConcreteStrategy {
85
85
  async getSessionOrConfirm(address) {
86
86
  return Promise.resolve(`0x${Buffer.from(`Confirmation for ${address} at time: ${Date.now()}`).toString('hex')}`);
87
87
  }
88
- async sendEthereumTransaction(_transaction, _options) {
89
- throw new CosmosWalletException(new Error('sendEthereumTransaction is not supported. Leap only supports sending cosmos transactions'), {
88
+ async sendEvmTransaction(_transaction, _options) {
89
+ throw new CosmosWalletException(new Error('sendEvmTransaction is not supported. Leap only supports sending cosmos transactions'), {
90
90
  code: UnspecifiedErrorCode,
91
- context: WalletAction.SendEthereumTransaction,
91
+ context: WalletAction.SendEvmTransaction,
92
92
  });
93
93
  }
94
94
  async sendTransaction(transaction, options) {
@@ -140,11 +140,11 @@ export class Magic extends BaseConcreteStrategy {
140
140
  context: WalletAction.GetChainId,
141
141
  });
142
142
  }
143
- async getEthereumTransactionReceipt(_txHash) {
144
- throw new CosmosWalletException(new Error('getEthereumTransactionReceipt is not supported on Cosmostation'), {
143
+ async getEvmTransactionReceipt(_txHash) {
144
+ throw new CosmosWalletException(new Error('getEvmTransactionReceipt is not supported on Cosmostation'), {
145
145
  code: UnspecifiedErrorCode,
146
146
  type: ErrorType.WalletError,
147
- context: WalletAction.GetEthereumTransactionReceipt,
147
+ context: WalletAction.GetEvmTransactionReceipt,
148
148
  });
149
149
  }
150
150
  // eslint-disable-next-line class-methods-use-this
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-magic",
3
3
  "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.",
4
- "version": "1.15.31",
4
+ "version": "1.15.33",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -56,16 +56,16 @@
56
56
  "start": "node dist/index.js"
57
57
  },
58
58
  "dependencies": {
59
- "@injectivelabs/exceptions": "^1.15.28",
60
- "@injectivelabs/sdk-ts": "^1.15.31",
61
- "@injectivelabs/ts-types": "^1.15.29",
62
- "@injectivelabs/utils": "^1.15.29",
63
- "@injectivelabs/wallet-base": "^1.15.31",
59
+ "@injectivelabs/exceptions": "^1.15.30",
60
+ "@injectivelabs/sdk-ts": "^1.15.33",
61
+ "@injectivelabs/ts-types": "^1.15.31",
62
+ "@injectivelabs/utils": "^1.15.31",
63
+ "@injectivelabs/wallet-base": "^1.15.33",
64
64
  "@magic-ext/cosmos": "23.9.1",
65
65
  "@magic-ext/oauth2": "9.9.0",
66
66
  "magic-sdk": "28.9.0"
67
67
  },
68
- "gitHead": "5b5ea65de8584a70d9bc9f75a17d1d43e2b3bbad",
68
+ "gitHead": "a214c118cc513d4f635e040efdc64d108913ff96",
69
69
  "typedoc": {
70
70
  "entryPoint": "./src/index.ts",
71
71
  "readmeFile": "./README.md",