@avalabs/types 2.8.0-canary.0e734e4.0 → 2.8.0-canary.11cc3bb.0

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/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ interface Contact {
4
4
  address: string;
5
5
  isKnown?: boolean;
6
6
  addressBTC?: string;
7
+ addressXP?: string;
7
8
  }
8
9
  interface ContactsState {
9
10
  contacts: Contact[];
@@ -22,15 +23,25 @@ interface CoreBaseAccount {
22
23
  addressCoreEth: string;
23
24
  name: string;
24
25
  type: CoreAccountType;
26
+ id: string;
25
27
  }
26
28
  interface CorePrimaryAccount extends CoreBaseAccount {
27
29
  index: number;
28
30
  type: CoreAccountType.PRIMARY;
31
+ walletType: WalletType;
32
+ walletId: string;
33
+ walletName: string;
29
34
  }
30
35
  interface CoreImportedAccount extends CoreBaseAccount {
31
- id: string;
32
36
  type: CoreAccountType.IMPORTED;
33
37
  }
38
+ declare enum WalletType {
39
+ Mnemonic = "mnemonic",
40
+ Ledger = "ledger",
41
+ LedgerLive = "ledger-live",
42
+ Keystone = "keystone",
43
+ Seedless = "seedless"
44
+ }
34
45
  type CoreAccount = CorePrimaryAccount | CoreImportedAccount;
35
46
 
36
- export { Contact, ContactsState, CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount };
47
+ export { Contact, ContactsState, CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount, WalletType };
package/dist/index.js CHANGED
@@ -1,9 +1 @@
1
- 'use strict';
2
-
3
- var CoreAccountType = /* @__PURE__ */ ((CoreAccountType2) => {
4
- CoreAccountType2["PRIMARY"] = "primary";
5
- CoreAccountType2["IMPORTED"] = "imported";
6
- return CoreAccountType2;
7
- })(CoreAccountType || {});
8
-
9
- exports.CoreAccountType = CoreAccountType;
1
+ "use strict";var e=(e=>(e.PRIMARY="primary",e.IMPORTED="imported",e))(e||{}),r=(e=>(e.Mnemonic="mnemonic",e.Ledger="ledger",e.LedgerLive="ledger-live",e.Keystone="keystone",e.Seedless="seedless",e))(r||{});exports.CoreAccountType=e,exports.WalletType=r;
package/esm/contacts.d.ts CHANGED
@@ -4,6 +4,7 @@ interface Contact {
4
4
  address: string;
5
5
  isKnown?: boolean;
6
6
  addressBTC?: string;
7
+ addressXP?: string;
7
8
  }
8
9
  interface ContactsState {
9
10
  contacts: Contact[];
@@ -11,15 +11,25 @@ interface CoreBaseAccount {
11
11
  addressCoreEth: string;
12
12
  name: string;
13
13
  type: CoreAccountType;
14
+ id: string;
14
15
  }
15
16
  interface CorePrimaryAccount extends CoreBaseAccount {
16
17
  index: number;
17
18
  type: CoreAccountType.PRIMARY;
19
+ walletType: WalletType;
20
+ walletId: string;
21
+ walletName: string;
18
22
  }
19
23
  interface CoreImportedAccount extends CoreBaseAccount {
20
- id: string;
21
24
  type: CoreAccountType.IMPORTED;
22
25
  }
26
+ declare enum WalletType {
27
+ Mnemonic = "mnemonic",
28
+ Ledger = "ledger",
29
+ LedgerLive = "ledger-live",
30
+ Keystone = "keystone",
31
+ Seedless = "seedless"
32
+ }
23
33
  type CoreAccount = CorePrimaryAccount | CoreImportedAccount;
24
34
 
25
- export { CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount };
35
+ export { CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount, WalletType };
@@ -1,7 +1 @@
1
- var CoreAccountType = /* @__PURE__ */ ((CoreAccountType2) => {
2
- CoreAccountType2["PRIMARY"] = "primary";
3
- CoreAccountType2["IMPORTED"] = "imported";
4
- return CoreAccountType2;
5
- })(CoreAccountType || {});
6
-
7
- export { CoreAccountType };
1
+ var e=(e=>(e.PRIMARY="primary",e.IMPORTED="imported",e))(e||{}),r=(e=>(e.Mnemonic="mnemonic",e.Ledger="ledger",e.LedgerLive="ledger-live",e.Keystone="keystone",e.Seedless="seedless",e))(r||{});export{e as CoreAccountType,r as WalletType};
package/esm/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export { Contact, ContactsState } from './contacts.js';
2
- export { CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount } from './coreAccounts.js';
2
+ export { CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount, WalletType } from './coreAccounts.js';
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- export { CoreAccountType } from './coreAccounts.js';
1
+ export{CoreAccountType,WalletType}from"./coreAccounts.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/types",
3
- "version": "2.8.0-canary.0e734e4.0+0e734e4",
3
+ "version": "2.8.0-canary.11cc3bb.0+11cc3bb",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -16,5 +16,5 @@
16
16
  "build": "rollup -c",
17
17
  "lint": "eslint --fix -c ./.eslintrc.js \"src/**/*.ts*\""
18
18
  },
19
- "gitHead": "0e734e4003b40ffdaeb9727567a9a36970d1eeab"
19
+ "gitHead": "11cc3bb8240aafd01ea6ce0abd81bd33826f8320"
20
20
  }