@injectivelabs/wallet-cosmostation 1.16.1-alpha.0 → 1.16.1-alpha.1

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.
@@ -1,5 +1,5 @@
1
1
  import { TxResponse, AminoSignResponse, DirectSignResponse } from '@injectivelabs/sdk-ts';
2
- import { ChainId, CosmosChainId, AccountAddress, EthereumChainId } from '@injectivelabs/ts-types';
2
+ import { ChainId, EvmChainId, CosmosChainId, AccountAddress } from '@injectivelabs/ts-types';
3
3
  import { StdSignDoc, WalletDeviceType, BaseConcreteStrategy, ConcreteWalletStrategy } from '@injectivelabs/wallet-base';
4
4
  import { CosmosTxV1Beta1Tx } from '@injectivelabs/sdk-ts';
5
5
  export declare class Cosmostation extends BaseConcreteStrategy implements ConcreteWalletStrategy {
@@ -14,7 +14,7 @@ export declare class Cosmostation extends BaseConcreteStrategy implements Concre
14
14
  getSessionOrConfirm(address?: AccountAddress): Promise<string>;
15
15
  sendEvmTransaction(_transaction: unknown, _options: {
16
16
  address: AccountAddress;
17
- ethereumChainId: EthereumChainId;
17
+ evmChainId: EvmChainId;
18
18
  }): Promise<string>;
19
19
  sendTransaction(transaction: DirectSignResponse | CosmosTxV1Beta1Tx.TxRaw, _options: {
20
20
  address: AccountAddress;
@@ -146,7 +146,7 @@ class Cosmostation extends wallet_base_1.BaseConcreteStrategy {
146
146
  }
147
147
  }
148
148
  async signEip712TypedData(_eip712TypedData, _address) {
149
- throw new exceptions_1.CosmosWalletException(new Error('This wallet does not support signing Ethereum transactions'), {
149
+ throw new exceptions_1.CosmosWalletException(new Error('This wallet does not support signing Evm transactions'), {
150
150
  code: exceptions_1.UnspecifiedErrorCode,
151
151
  context: wallet_base_1.WalletAction.SendTransaction,
152
152
  });
@@ -1,5 +1,5 @@
1
1
  import { TxResponse, AminoSignResponse, DirectSignResponse } from '@injectivelabs/sdk-ts';
2
- import { ChainId, CosmosChainId, AccountAddress, EthereumChainId } from '@injectivelabs/ts-types';
2
+ import { ChainId, EvmChainId, CosmosChainId, AccountAddress } from '@injectivelabs/ts-types';
3
3
  import { StdSignDoc, WalletDeviceType, BaseConcreteStrategy, ConcreteWalletStrategy } from '@injectivelabs/wallet-base';
4
4
  import { CosmosTxV1Beta1Tx } from '@injectivelabs/sdk-ts';
5
5
  export declare class Cosmostation extends BaseConcreteStrategy implements ConcreteWalletStrategy {
@@ -14,7 +14,7 @@ export declare class Cosmostation extends BaseConcreteStrategy implements Concre
14
14
  getSessionOrConfirm(address?: AccountAddress): Promise<string>;
15
15
  sendEvmTransaction(_transaction: unknown, _options: {
16
16
  address: AccountAddress;
17
- ethereumChainId: EthereumChainId;
17
+ evmChainId: EvmChainId;
18
18
  }): Promise<string>;
19
19
  sendTransaction(transaction: DirectSignResponse | CosmosTxV1Beta1Tx.TxRaw, _options: {
20
20
  address: AccountAddress;
@@ -143,7 +143,7 @@ export class Cosmostation extends BaseConcreteStrategy {
143
143
  }
144
144
  }
145
145
  async signEip712TypedData(_eip712TypedData, _address) {
146
- throw new CosmosWalletException(new Error('This wallet does not support signing Ethereum transactions'), {
146
+ throw new CosmosWalletException(new Error('This wallet does not support signing Evm transactions'), {
147
147
  code: UnspecifiedErrorCode,
148
148
  context: WalletAction.SendTransaction,
149
149
  });
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.16.1-alpha.0",
4
+ "version": "1.16.1-alpha.1",
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,14 +58,17 @@
58
58
  "dependencies": {
59
59
  "@cosmjs/proto-signing": "^0.32.3",
60
60
  "@cosmostation/extension-client": "^0.1.15",
61
- "@injectivelabs/exceptions": "^1.16.1-alpha.0",
62
- "@injectivelabs/sdk-ts": "^1.16.1-alpha.0",
63
- "@injectivelabs/ts-types": "^1.16.1-alpha.0",
64
- "@injectivelabs/utils": "^1.16.1-alpha.0",
65
- "@injectivelabs/wallet-base": "^1.16.1-alpha.0",
61
+ "@injectivelabs/exceptions": "1.16.1-alpha.1",
62
+ "@injectivelabs/sdk-ts": "1.16.1-alpha.1",
63
+ "@injectivelabs/ts-types": "1.16.1-alpha.1",
64
+ "@injectivelabs/utils": "1.16.1-alpha.1",
65
+ "@injectivelabs/wallet-base": "1.16.1-alpha.1",
66
66
  "@walletconnect/ethereum-provider": "2.18.1"
67
67
  },
68
- "gitHead": "d1057b0601f494f41172b8a4e8440da25ffc3d28",
68
+ "devDependencies": {
69
+ "shx": "^0.3.4"
70
+ },
71
+ "gitHead": "aa24a5ba96800b6daea85666f7030619d3c18d91",
69
72
  "typedoc": {
70
73
  "entryPoint": "./src/index.ts",
71
74
  "readmeFile": "./README.md",