@injectivelabs/wallet-private-key 1.16.38-alpha.3 → 1.16.38-alpha.5

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.
@@ -74,6 +74,13 @@ var PrivateKeyWallet = class extends __injectivelabs_wallet_base.BaseConcreteStr
74
74
  });
75
75
  }
76
76
  }
77
+ async getAddressesInfo() {
78
+ throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("getAddressesInfo is not implemented"), {
79
+ code: __injectivelabs_exceptions.UnspecifiedErrorCode,
80
+ type: __injectivelabs_exceptions.ErrorType.WalletError,
81
+ contextModule: __injectivelabs_wallet_base.WalletAction.GetAccounts
82
+ });
83
+ }
77
84
  async getSessionOrConfirm(address) {
78
85
  return Promise.resolve(`0x${(0, __injectivelabs_sdk_ts_utils.uint8ArrayToHex)((0, __injectivelabs_sdk_ts_utils.stringToUint8Array)(`Confirmation for ${address} at time: ${Date.now()}`))}`);
79
86
  }
@@ -10,6 +10,11 @@ declare class PrivateKeyWallet extends BaseConcreteStrategy implements ConcreteW
10
10
  enable(): Promise<boolean>;
11
11
  disconnect(): Promise<void>;
12
12
  getAddresses(): Promise<string[]>;
13
+ getAddressesInfo(): Promise<{
14
+ address: string;
15
+ derivationPath: string;
16
+ baseDerivationPath: string;
17
+ }[]>;
13
18
  getSessionOrConfirm(address: AccountAddress): Promise<string>;
14
19
  sendEvmTransaction(_transaction: unknown, _options: {
15
20
  address: AccountAddress;
@@ -10,6 +10,11 @@ declare class PrivateKeyWallet extends BaseConcreteStrategy implements ConcreteW
10
10
  enable(): Promise<boolean>;
11
11
  disconnect(): Promise<void>;
12
12
  getAddresses(): Promise<string[]>;
13
+ getAddressesInfo(): Promise<{
14
+ address: string;
15
+ derivationPath: string;
16
+ baseDerivationPath: string;
17
+ }[]>;
13
18
  getSessionOrConfirm(address: AccountAddress): Promise<string>;
14
19
  sendEvmTransaction(_transaction: unknown, _options: {
15
20
  address: AccountAddress;
package/dist/esm/index.js CHANGED
@@ -74,6 +74,13 @@ var PrivateKeyWallet = class extends BaseConcreteStrategy {
74
74
  });
75
75
  }
76
76
  }
77
+ async getAddressesInfo() {
78
+ throw new WalletException(/* @__PURE__ */ new Error("getAddressesInfo is not implemented"), {
79
+ code: UnspecifiedErrorCode,
80
+ type: ErrorType.WalletError,
81
+ contextModule: WalletAction.GetAccounts
82
+ });
83
+ }
77
84
  async getSessionOrConfirm(address) {
78
85
  return Promise.resolve(`0x${uint8ArrayToHex(stringToUint8Array(`Confirmation for ${address} at time: ${Date.now()}`))}`);
79
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-private-key",
3
- "version": "1.16.38-alpha.3",
3
+ "version": "1.16.38-alpha.5",
4
4
  "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -38,10 +38,10 @@
38
38
  "dist"
39
39
  ],
40
40
  "dependencies": {
41
- "@injectivelabs/exceptions": "1.16.38-alpha.2",
42
- "@injectivelabs/sdk-ts": "1.16.38-alpha.3",
43
- "@injectivelabs/ts-types": "1.16.38-alpha.1",
44
- "@injectivelabs/wallet-base": "1.16.38-alpha.3"
41
+ "@injectivelabs/sdk-ts": "1.16.38-alpha.5",
42
+ "@injectivelabs/ts-types": "1.16.38-alpha.2",
43
+ "@injectivelabs/exceptions": "1.16.38-alpha.3",
44
+ "@injectivelabs/wallet-base": "1.16.38-alpha.5"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"