@injectivelabs/wallet-evm 1.16.2-alpha.0 → 1.16.2

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.
package/README.md CHANGED
@@ -13,7 +13,7 @@ _Package to use Wallets EVM on Injective via the wallet strategy._
13
13
  ## 📚 Installation
14
14
 
15
15
  ```bash
16
- pnpm add @injectivelabs/wallet-evm
16
+ yarn add @injectivelabs/wallet-evm
17
17
  ```
18
18
 
19
19
  ---
@@ -1,11 +1,11 @@
1
1
  import { TxRaw, TxResponse, AminoSignResponse, DirectSignResponse } from '@injectivelabs/sdk-ts';
2
2
  import { ErrorContext, ThrownException } from '@injectivelabs/exceptions';
3
- import { Wallet, StdSignDoc, WalletDeviceType, BaseConcreteStrategy, SendTransactionOptions, BrowserEip1993Provider, ConcreteWalletStrategy, ConcreteWalletStrategyArgs, ConcreteEvmWalletStrategyArgs } from '@injectivelabs/wallet-base';
4
- import { AccountAddress, EvmChainId } from '@injectivelabs/ts-types';
3
+ import { Wallet, StdSignDoc, WalletDeviceType, BaseConcreteStrategy, SendTransactionOptions, BrowserEip1993Provider, ConcreteWalletStrategy, ConcreteWalletStrategyArgs, ConcreteEthereumWalletStrategyArgs } from '@injectivelabs/wallet-base';
4
+ import { AccountAddress, EthereumChainId } from '@injectivelabs/ts-types';
5
5
  export declare class EvmWallet extends BaseConcreteStrategy implements ConcreteWalletStrategy {
6
6
  wallet?: Wallet;
7
7
  evmProviders: Partial<Record<Wallet, BrowserEip1993Provider>>;
8
- constructor(args: (ConcreteWalletStrategyArgs | ConcreteEvmWalletStrategyArgs) & {
8
+ constructor(args: (ConcreteWalletStrategyArgs | ConcreteEthereumWalletStrategyArgs) & {
9
9
  wallet: Wallet;
10
10
  });
11
11
  EvmWalletException(error: Error, context?: ErrorContext): ThrownException;
@@ -16,7 +16,7 @@ export declare class EvmWallet extends BaseConcreteStrategy implements ConcreteW
16
16
  getSessionOrConfirm(address: AccountAddress): Promise<string>;
17
17
  sendEvmTransaction(transaction: unknown, _options: {
18
18
  address: AccountAddress;
19
- evmChainId: EvmChainId;
19
+ ethereumChainId: EthereumChainId;
20
20
  }): Promise<string>;
21
21
  sendTransaction(transaction: TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
22
22
  signEip712TypedData(eip712json: string, address: AccountAddress): Promise<string>;
@@ -1,4 +1,4 @@
1
1
  import { Wallet, BrowserEip1993Provider } from '@injectivelabs/wallet-base';
2
- import { EvmChainId } from '@injectivelabs/ts-types';
2
+ import { EthereumChainId } from '@injectivelabs/ts-types';
3
3
  export declare const getEvmProvider: (wallet: Wallet) => Promise<BrowserEip1993Provider>;
4
- export declare const updateEvmNetwork: (wallet: Wallet, chainId: EvmChainId) => Promise<unknown>;
4
+ export declare const updateEvmNetwork: (wallet: Wallet, chainId: EthereumChainId) => Promise<unknown>;
@@ -1,11 +1,11 @@
1
1
  import { TxRaw, TxResponse, AminoSignResponse, DirectSignResponse } from '@injectivelabs/sdk-ts';
2
2
  import { ErrorContext, ThrownException } from '@injectivelabs/exceptions';
3
- import { Wallet, StdSignDoc, WalletDeviceType, BaseConcreteStrategy, SendTransactionOptions, BrowserEip1993Provider, ConcreteWalletStrategy, ConcreteWalletStrategyArgs, ConcreteEvmWalletStrategyArgs } from '@injectivelabs/wallet-base';
4
- import { AccountAddress, EvmChainId } from '@injectivelabs/ts-types';
3
+ import { Wallet, StdSignDoc, WalletDeviceType, BaseConcreteStrategy, SendTransactionOptions, BrowserEip1993Provider, ConcreteWalletStrategy, ConcreteWalletStrategyArgs, ConcreteEthereumWalletStrategyArgs } from '@injectivelabs/wallet-base';
4
+ import { AccountAddress, EthereumChainId } from '@injectivelabs/ts-types';
5
5
  export declare class EvmWallet extends BaseConcreteStrategy implements ConcreteWalletStrategy {
6
6
  wallet?: Wallet;
7
7
  evmProviders: Partial<Record<Wallet, BrowserEip1993Provider>>;
8
- constructor(args: (ConcreteWalletStrategyArgs | ConcreteEvmWalletStrategyArgs) & {
8
+ constructor(args: (ConcreteWalletStrategyArgs | ConcreteEthereumWalletStrategyArgs) & {
9
9
  wallet: Wallet;
10
10
  });
11
11
  EvmWalletException(error: Error, context?: ErrorContext): ThrownException;
@@ -16,7 +16,7 @@ export declare class EvmWallet extends BaseConcreteStrategy implements ConcreteW
16
16
  getSessionOrConfirm(address: AccountAddress): Promise<string>;
17
17
  sendEvmTransaction(transaction: unknown, _options: {
18
18
  address: AccountAddress;
19
- evmChainId: EvmChainId;
19
+ ethereumChainId: EthereumChainId;
20
20
  }): Promise<string>;
21
21
  sendTransaction(transaction: TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
22
22
  signEip712TypedData(eip712json: string, address: AccountAddress): Promise<string>;
@@ -1,4 +1,4 @@
1
1
  import { Wallet, BrowserEip1993Provider } from '@injectivelabs/wallet-base';
2
- import { EvmChainId } from '@injectivelabs/ts-types';
2
+ import { EthereumChainId } from '@injectivelabs/ts-types';
3
3
  export declare const getEvmProvider: (wallet: Wallet) => Promise<BrowserEip1993Provider>;
4
- export declare const updateEvmNetwork: (wallet: Wallet, chainId: EvmChainId) => Promise<unknown>;
4
+ export declare const updateEvmNetwork: (wallet: Wallet, chainId: EthereumChainId) => Promise<unknown>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-evm",
3
3
  "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.",
4
- "version": "1.16.2-alpha.0",
4
+ "version": "1.16.2",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -41,10 +41,10 @@
41
41
  }
42
42
  },
43
43
  "scripts": {
44
- "build": "pnpm build:cjs && pnpm build:esm && pnpm build:post",
44
+ "build": "yarn build:cjs && yarn build:esm && yarn 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 && pnpm build:post",
47
+ "build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && yarn 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",
@@ -56,17 +56,17 @@
56
56
  "start": "node dist/index.js"
57
57
  },
58
58
  "dependencies": {
59
- "@injectivelabs/exceptions": "1.16.2-alpha.0",
60
- "@injectivelabs/networks": "1.16.2-alpha.0",
61
- "@injectivelabs/sdk-ts": "1.16.2-alpha.0",
62
- "@injectivelabs/ts-types": "1.16.2-alpha.0",
63
- "@injectivelabs/utils": "1.16.2-alpha.0",
64
- "@injectivelabs/wallet-base": "1.16.2-alpha.0"
59
+ "@injectivelabs/exceptions": "^1.16.2",
60
+ "@injectivelabs/networks": "^1.16.2",
61
+ "@injectivelabs/sdk-ts": "^1.16.2",
62
+ "@injectivelabs/ts-types": "^1.16.2",
63
+ "@injectivelabs/utils": "^1.16.2",
64
+ "@injectivelabs/wallet-base": "^1.16.2"
65
65
  },
66
66
  "devDependencies": {
67
67
  "shx": "^0.3.3"
68
68
  },
69
- "gitHead": "0377b0c3b44d79b598d08ca01930057dc05d9c7a",
69
+ "gitHead": "56e3f6c8f399c2d881a65858e8e0b1b39828a917",
70
70
  "typedoc": {
71
71
  "entryPoint": "./src/index.ts",
72
72
  "readmeFile": "./README.md",