@avalabs/types 2.8.0-canary.3c8de05.0 → 2.8.0-canary.3fecbb2.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,24 @@ 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;
29
33
  }
30
34
  interface CoreImportedAccount extends CoreBaseAccount {
31
- id: string;
32
35
  type: CoreAccountType.IMPORTED;
33
36
  }
37
+ declare enum WalletType {
38
+ Mnemonic = "mnemonic",
39
+ Ledger = "ledger",
40
+ LedgerLive = "ledger-live",
41
+ Keystone = "keystone",
42
+ Seedless = "seedless"
43
+ }
34
44
  type CoreAccount = CorePrimaryAccount | CoreImportedAccount;
35
45
 
36
- export { Contact, ContactsState, CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount };
46
+ export { Contact, ContactsState, CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount, WalletType };
package/dist/index.js CHANGED
@@ -5,5 +5,14 @@ var CoreAccountType = /* @__PURE__ */ ((CoreAccountType2) => {
5
5
  CoreAccountType2["IMPORTED"] = "imported";
6
6
  return CoreAccountType2;
7
7
  })(CoreAccountType || {});
8
+ var WalletType = /* @__PURE__ */ ((WalletType2) => {
9
+ WalletType2["Mnemonic"] = "mnemonic";
10
+ WalletType2["Ledger"] = "ledger";
11
+ WalletType2["LedgerLive"] = "ledger-live";
12
+ WalletType2["Keystone"] = "keystone";
13
+ WalletType2["Seedless"] = "seedless";
14
+ return WalletType2;
15
+ })(WalletType || {});
8
16
 
9
17
  exports.CoreAccountType = CoreAccountType;
18
+ exports.WalletType = WalletType;
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,24 @@ 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;
18
21
  }
19
22
  interface CoreImportedAccount extends CoreBaseAccount {
20
- id: string;
21
23
  type: CoreAccountType.IMPORTED;
22
24
  }
25
+ declare enum WalletType {
26
+ Mnemonic = "mnemonic",
27
+ Ledger = "ledger",
28
+ LedgerLive = "ledger-live",
29
+ Keystone = "keystone",
30
+ Seedless = "seedless"
31
+ }
23
32
  type CoreAccount = CorePrimaryAccount | CoreImportedAccount;
24
33
 
25
- export { CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount };
34
+ export { CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount, WalletType };
@@ -3,5 +3,13 @@ var CoreAccountType = /* @__PURE__ */ ((CoreAccountType2) => {
3
3
  CoreAccountType2["IMPORTED"] = "imported";
4
4
  return CoreAccountType2;
5
5
  })(CoreAccountType || {});
6
+ var WalletType = /* @__PURE__ */ ((WalletType2) => {
7
+ WalletType2["Mnemonic"] = "mnemonic";
8
+ WalletType2["Ledger"] = "ledger";
9
+ WalletType2["LedgerLive"] = "ledger-live";
10
+ WalletType2["Keystone"] = "keystone";
11
+ WalletType2["Seedless"] = "seedless";
12
+ return WalletType2;
13
+ })(WalletType || {});
6
14
 
7
- export { CoreAccountType };
15
+ export { CoreAccountType, 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.3c8de05.0+3c8de05",
3
+ "version": "2.8.0-canary.3fecbb2.0+3fecbb2",
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": "3c8de0511aa16eebdddae0d94205ab37f5692e78"
19
+ "gitHead": "3fecbb28e57a8506645aa7438b2ceb1bc41a1a2d"
20
20
  }