@injectivelabs/wallet-private-key 1.20.12 → 1.20.13

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.
@@ -237,6 +237,16 @@ var PrivateKeyCosmosWallet = class extends PrivateKeyWallet {
237
237
  });
238
238
  }
239
239
  }
240
+ /** this is a mock implementation of the CosmosWallet abstraction, just so it confronts the CosmosWallet interface */
241
+ getCosmosWallet(_chainId) {
242
+ return {
243
+ enableGasCheck: async () => {},
244
+ disableGasCheck: async () => {},
245
+ signEIP712CosmosTx: async (_args) => {
246
+ return {};
247
+ }
248
+ };
249
+ }
240
250
  };
241
251
 
242
252
  //#endregion
@@ -1,6 +1,6 @@
1
- import { AccountAddress, EvmChainId } from "@injectivelabs/ts-types";
1
+ import { AccountAddress, ChainId, EvmChainId } from "@injectivelabs/ts-types";
2
2
  import { PrivateKey } from "@injectivelabs/sdk-ts/core/accounts";
3
- import { BaseConcreteStrategy, ConcreteWalletStrategy, SendTransactionOptions, StdSignDoc, WalletDeviceType } from "@injectivelabs/wallet-base";
3
+ import { BaseConcreteStrategy, ConcreteWalletStrategy, CosmosWalletAbstraction, SendTransactionOptions, StdSignDoc, WalletDeviceType } from "@injectivelabs/wallet-base";
4
4
  import { TxResponse } from "@injectivelabs/sdk-ts/core/tx";
5
5
  import { AminoSignResponse, DirectSignResponse, TxRaw } from "@injectivelabs/sdk-ts/types";
6
6
 
@@ -51,6 +51,8 @@ declare class PrivateKeyCosmosWallet extends PrivateKeyWallet implements Concret
51
51
  chainId: string;
52
52
  address: string;
53
53
  }): Promise<DirectSignResponse>;
54
+ /** this is a mock implementation of the CosmosWallet abstraction, just so it confronts the CosmosWallet interface */
55
+ getCosmosWallet(_chainId: ChainId): CosmosWalletAbstraction;
54
56
  }
55
57
  //#endregion
56
58
  export { PrivateKeyCosmosWallet as PrivateKeyCosmosWalletStrategy, PrivateKeyWallet as PrivateKeyWalletStrategy };
@@ -1,7 +1,7 @@
1
- import { AccountAddress, EvmChainId } from "@injectivelabs/ts-types";
1
+ import { AccountAddress, ChainId, EvmChainId } from "@injectivelabs/ts-types";
2
2
  import { PrivateKey } from "@injectivelabs/sdk-ts/core/accounts";
3
3
  import { TxResponse } from "@injectivelabs/sdk-ts/core/tx";
4
- import { BaseConcreteStrategy, ConcreteWalletStrategy, SendTransactionOptions, StdSignDoc, WalletDeviceType } from "@injectivelabs/wallet-base";
4
+ import { BaseConcreteStrategy, ConcreteWalletStrategy, CosmosWalletAbstraction, SendTransactionOptions, StdSignDoc, WalletDeviceType } from "@injectivelabs/wallet-base";
5
5
  import { AminoSignResponse, DirectSignResponse, TxRaw } from "@injectivelabs/sdk-ts/types";
6
6
 
7
7
  //#region src/strategy/strategy.d.ts
@@ -51,6 +51,8 @@ declare class PrivateKeyCosmosWallet extends PrivateKeyWallet implements Concret
51
51
  chainId: string;
52
52
  address: string;
53
53
  }): Promise<DirectSignResponse>;
54
+ /** this is a mock implementation of the CosmosWallet abstraction, just so it confronts the CosmosWallet interface */
55
+ getCosmosWallet(_chainId: ChainId): CosmosWalletAbstraction;
54
56
  }
55
57
  //#endregion
56
58
  export { PrivateKeyCosmosWallet as PrivateKeyCosmosWalletStrategy, PrivateKeyWallet as PrivateKeyWalletStrategy };
package/dist/esm/index.js CHANGED
@@ -237,6 +237,16 @@ var PrivateKeyCosmosWallet = class extends PrivateKeyWallet {
237
237
  });
238
238
  }
239
239
  }
240
+ /** this is a mock implementation of the CosmosWallet abstraction, just so it confronts the CosmosWallet interface */
241
+ getCosmosWallet(_chainId) {
242
+ return {
243
+ enableGasCheck: async () => {},
244
+ disableGasCheck: async () => {},
245
+ signEIP712CosmosTx: async (_args) => {
246
+ return {};
247
+ }
248
+ };
249
+ }
240
250
  };
241
251
 
242
252
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-private-key",
3
- "version": "1.20.12",
3
+ "version": "1.20.13",
4
4
  "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -42,10 +42,10 @@
42
42
  "dist"
43
43
  ],
44
44
  "dependencies": {
45
- "@injectivelabs/exceptions": "1.20.12",
46
- "@injectivelabs/ts-types": "1.20.12",
47
- "@injectivelabs/sdk-ts": "1.20.12",
48
- "@injectivelabs/wallet-base": "1.20.12"
45
+ "@injectivelabs/exceptions": "1.20.13",
46
+ "@injectivelabs/sdk-ts": "1.20.13",
47
+ "@injectivelabs/ts-types": "1.20.13",
48
+ "@injectivelabs/wallet-base": "1.20.13"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"