@injectivelabs/wallet-base 1.16.13-alpha.0 → 1.16.13-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.
@@ -3,7 +3,7 @@ export declare const BroadcastMode: {
3
3
  readonly Sync: "sync";
4
4
  readonly Async: "async";
5
5
  };
6
- export type BroadcastMode = typeof BroadcastMode[keyof typeof BroadcastMode];
6
+ export type BroadcastMode = (typeof BroadcastMode)[keyof typeof BroadcastMode];
7
7
  export declare const Wallet: {
8
8
  readonly Leap: "leap";
9
9
  readonly Keplr: "keplr";
@@ -28,7 +28,7 @@ export declare const Wallet: {
28
28
  readonly WalletConnect: "wallet-connect";
29
29
  readonly CosmostationEth: "cosmostation-eth";
30
30
  };
31
- export type Wallet = typeof Wallet[keyof typeof Wallet];
31
+ export type Wallet = (typeof Wallet)[keyof typeof Wallet];
32
32
  export declare const MagicProvider: {
33
33
  readonly Email: "email";
34
34
  readonly Apple: "apple";
@@ -38,19 +38,19 @@ export declare const MagicProvider: {
38
38
  readonly Twitter: "twitter";
39
39
  readonly Facebook: "facebook";
40
40
  };
41
- export type MagicProvider = typeof MagicProvider[keyof typeof MagicProvider];
41
+ export type MagicProvider = (typeof MagicProvider)[keyof typeof MagicProvider];
42
42
  export declare const WalletDeviceType: {
43
43
  readonly Mobile: "mobile";
44
44
  readonly Other: "other";
45
45
  readonly Browser: "browser";
46
46
  readonly Hardware: "hardware";
47
47
  };
48
- export type WalletDeviceType = typeof WalletDeviceType[keyof typeof WalletDeviceType];
48
+ export type WalletDeviceType = (typeof WalletDeviceType)[keyof typeof WalletDeviceType];
49
49
  export declare const WalletEventListener: {
50
50
  readonly AccountChange: "account-change";
51
51
  readonly ChainIdChange: "chain-id-change";
52
52
  };
53
- export type WalletEventListener = typeof WalletEventListener[keyof typeof WalletEventListener];
53
+ export type WalletEventListener = (typeof WalletEventListener)[keyof typeof WalletEventListener];
54
54
  export declare const WalletAction: {
55
55
  GetChainId: "get-chain-id";
56
56
  GetAccounts: "get-accounts";
@@ -51,7 +51,7 @@ export declare const TurnkeyProvider: {
51
51
  readonly Google: "google";
52
52
  readonly Apple: "apple";
53
53
  };
54
- export type TurnkeyProvider = typeof TurnkeyProvider[keyof typeof TurnkeyProvider];
54
+ export type TurnkeyProvider = (typeof TurnkeyProvider)[keyof typeof TurnkeyProvider];
55
55
  export type TurnkeySession = {
56
56
  sessionType: any;
57
57
  userId: string;
@@ -1,6 +1,6 @@
1
- import { BigNumber, BigNumberInBase } from '@injectivelabs/utils';
1
+ import type { BigNumber } from '@injectivelabs/utils';
2
2
  export declare const GWEI_IN_WEI: BigNumber;
3
- export declare const TIP_IN_GWEI: BigNumberInBase;
3
+ export declare const TIP_IN_GWEI: BigNumber;
4
4
  export declare const DEFAULT_BASE_DERIVATION_PATH = "m/44'/60'";
5
5
  export declare const DEFAULT_NUM_ADDRESSES_TO_FETCH = 5;
6
6
  export declare const DEFAULT_ADDRESS_SEARCH_LIMIT = 100;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_ADDRESS_SEARCH_LIMIT = exports.DEFAULT_NUM_ADDRESSES_TO_FETCH = exports.DEFAULT_BASE_DERIVATION_PATH = exports.TIP_IN_GWEI = exports.GWEI_IN_WEI = void 0;
4
4
  const utils_1 = require("@injectivelabs/utils");
5
- exports.GWEI_IN_WEI = new utils_1.BigNumber(1000000000);
6
- exports.TIP_IN_GWEI = new utils_1.BigNumberInBase(2).times(exports.GWEI_IN_WEI);
5
+ exports.GWEI_IN_WEI = (0, utils_1.toBigNumber)(1000000000);
6
+ exports.TIP_IN_GWEI = (0, utils_1.toBigNumber)(2).times(exports.GWEI_IN_WEI);
7
7
  exports.DEFAULT_BASE_DERIVATION_PATH = "m/44'/60'";
8
8
  exports.DEFAULT_NUM_ADDRESSES_TO_FETCH = 5;
9
9
  exports.DEFAULT_ADDRESS_SEARCH_LIMIT = 100;
@@ -3,7 +3,7 @@ export declare const BroadcastMode: {
3
3
  readonly Sync: "sync";
4
4
  readonly Async: "async";
5
5
  };
6
- export type BroadcastMode = typeof BroadcastMode[keyof typeof BroadcastMode];
6
+ export type BroadcastMode = (typeof BroadcastMode)[keyof typeof BroadcastMode];
7
7
  export declare const Wallet: {
8
8
  readonly Leap: "leap";
9
9
  readonly Keplr: "keplr";
@@ -28,7 +28,7 @@ export declare const Wallet: {
28
28
  readonly WalletConnect: "wallet-connect";
29
29
  readonly CosmostationEth: "cosmostation-eth";
30
30
  };
31
- export type Wallet = typeof Wallet[keyof typeof Wallet];
31
+ export type Wallet = (typeof Wallet)[keyof typeof Wallet];
32
32
  export declare const MagicProvider: {
33
33
  readonly Email: "email";
34
34
  readonly Apple: "apple";
@@ -38,19 +38,19 @@ export declare const MagicProvider: {
38
38
  readonly Twitter: "twitter";
39
39
  readonly Facebook: "facebook";
40
40
  };
41
- export type MagicProvider = typeof MagicProvider[keyof typeof MagicProvider];
41
+ export type MagicProvider = (typeof MagicProvider)[keyof typeof MagicProvider];
42
42
  export declare const WalletDeviceType: {
43
43
  readonly Mobile: "mobile";
44
44
  readonly Other: "other";
45
45
  readonly Browser: "browser";
46
46
  readonly Hardware: "hardware";
47
47
  };
48
- export type WalletDeviceType = typeof WalletDeviceType[keyof typeof WalletDeviceType];
48
+ export type WalletDeviceType = (typeof WalletDeviceType)[keyof typeof WalletDeviceType];
49
49
  export declare const WalletEventListener: {
50
50
  readonly AccountChange: "account-change";
51
51
  readonly ChainIdChange: "chain-id-change";
52
52
  };
53
- export type WalletEventListener = typeof WalletEventListener[keyof typeof WalletEventListener];
53
+ export type WalletEventListener = (typeof WalletEventListener)[keyof typeof WalletEventListener];
54
54
  export declare const WalletAction: {
55
55
  GetChainId: "get-chain-id";
56
56
  GetAccounts: "get-accounts";
@@ -51,7 +51,7 @@ export declare const TurnkeyProvider: {
51
51
  readonly Google: "google";
52
52
  readonly Apple: "apple";
53
53
  };
54
- export type TurnkeyProvider = typeof TurnkeyProvider[keyof typeof TurnkeyProvider];
54
+ export type TurnkeyProvider = (typeof TurnkeyProvider)[keyof typeof TurnkeyProvider];
55
55
  export type TurnkeySession = {
56
56
  sessionType: any;
57
57
  userId: string;
@@ -1,6 +1,6 @@
1
- import { BigNumber, BigNumberInBase } from '@injectivelabs/utils';
1
+ import type { BigNumber } from '@injectivelabs/utils';
2
2
  export declare const GWEI_IN_WEI: BigNumber;
3
- export declare const TIP_IN_GWEI: BigNumberInBase;
3
+ export declare const TIP_IN_GWEI: BigNumber;
4
4
  export declare const DEFAULT_BASE_DERIVATION_PATH = "m/44'/60'";
5
5
  export declare const DEFAULT_NUM_ADDRESSES_TO_FETCH = 5;
6
6
  export declare const DEFAULT_ADDRESS_SEARCH_LIMIT = 100;
@@ -1,6 +1,6 @@
1
- import { BigNumber, BigNumberInBase } from '@injectivelabs/utils';
2
- export const GWEI_IN_WEI = new BigNumber(1000000000);
3
- export const TIP_IN_GWEI = new BigNumberInBase(2).times(GWEI_IN_WEI);
1
+ import { toBigNumber } from '@injectivelabs/utils';
2
+ export const GWEI_IN_WEI = toBigNumber(1000000000);
3
+ export const TIP_IN_GWEI = toBigNumber(2).times(GWEI_IN_WEI);
4
4
  export const DEFAULT_BASE_DERIVATION_PATH = "m/44'/60'";
5
5
  export const DEFAULT_NUM_ADDRESSES_TO_FETCH = 5;
6
6
  export const DEFAULT_ADDRESS_SEARCH_LIMIT = 100;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-base",
3
3
  "description": "Base wallet strategy for use with @injectivelabs/wallet-core.",
4
- "version": "1.16.13-alpha.0",
4
+ "version": "1.16.13-alpha.1",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -56,14 +56,14 @@
56
56
  "start": "node dist/index.js"
57
57
  },
58
58
  "dependencies": {
59
- "@injectivelabs/exceptions": "1.16.13-alpha.0",
60
- "@injectivelabs/networks": "1.16.13-alpha.0",
61
- "@injectivelabs/sdk-ts": "1.16.13-alpha.0",
62
- "@injectivelabs/ts-types": "1.16.13-alpha.0",
59
+ "@injectivelabs/exceptions": "1.16.13-alpha.1",
60
+ "@injectivelabs/networks": "1.16.13-alpha.1",
61
+ "@injectivelabs/sdk-ts": "1.16.13-alpha.1",
62
+ "@injectivelabs/ts-types": "1.16.13-alpha.1",
63
63
  "eip1193-provider": "^1.0.1"
64
64
  },
65
65
  "devDependencies": {
66
66
  "shx": "^0.3.3"
67
67
  },
68
- "gitHead": "bb71ac9147c0a2f0946ea0c316caf094fbbe2f2c"
68
+ "gitHead": "feb3e8f6bd6fa67bb489c94f6373a8d68a9846ae"
69
69
  }