@avalabs/types 2.8.0-alpha.41 → 2.8.0-alpha.43
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 +25 -1
- package/dist/index.js +7 -0
- package/esm/coreAccounts.d.ts +25 -0
- package/esm/coreAccounts.js +7 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,28 @@ interface ContactsState {
|
|
|
9
9
|
contacts: Contact[];
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
declare enum CoreAccountType {
|
|
13
|
+
PRIMARY = "primary",
|
|
14
|
+
IMPORTED = "imported"
|
|
15
|
+
}
|
|
16
|
+
interface CoreBaseAccount {
|
|
17
|
+
active?: boolean;
|
|
18
|
+
addressC: string;
|
|
19
|
+
addressBTC: string;
|
|
20
|
+
addressAVM?: string;
|
|
21
|
+
addressPVM?: string;
|
|
22
|
+
addressCoreEth?: string;
|
|
23
|
+
name: string;
|
|
24
|
+
type: CoreAccountType;
|
|
25
|
+
}
|
|
26
|
+
interface CorePrimaryAccount extends CoreBaseAccount {
|
|
27
|
+
index: number;
|
|
28
|
+
type: CoreAccountType.PRIMARY;
|
|
29
|
+
}
|
|
30
|
+
interface CoreImportedAccount extends CoreBaseAccount {
|
|
31
|
+
id: string;
|
|
32
|
+
type: CoreAccountType.IMPORTED;
|
|
33
|
+
}
|
|
34
|
+
declare type CoreAccount = CorePrimaryAccount | CoreImportedAccount;
|
|
35
|
+
|
|
36
|
+
export { Contact, ContactsState, CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var CoreAccountType = /* @__PURE__ */ ((CoreAccountType2) => {
|
|
4
|
+
CoreAccountType2["PRIMARY"] = "primary";
|
|
5
|
+
CoreAccountType2["IMPORTED"] = "imported";
|
|
6
|
+
return CoreAccountType2;
|
|
7
|
+
})(CoreAccountType || {});
|
|
8
|
+
|
|
9
|
+
exports.CoreAccountType = CoreAccountType;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare enum CoreAccountType {
|
|
2
|
+
PRIMARY = "primary",
|
|
3
|
+
IMPORTED = "imported"
|
|
4
|
+
}
|
|
5
|
+
interface CoreBaseAccount {
|
|
6
|
+
active?: boolean;
|
|
7
|
+
addressC: string;
|
|
8
|
+
addressBTC: string;
|
|
9
|
+
addressAVM?: string;
|
|
10
|
+
addressPVM?: string;
|
|
11
|
+
addressCoreEth?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
type: CoreAccountType;
|
|
14
|
+
}
|
|
15
|
+
interface CorePrimaryAccount extends CoreBaseAccount {
|
|
16
|
+
index: number;
|
|
17
|
+
type: CoreAccountType.PRIMARY;
|
|
18
|
+
}
|
|
19
|
+
interface CoreImportedAccount extends CoreBaseAccount {
|
|
20
|
+
id: string;
|
|
21
|
+
type: CoreAccountType.IMPORTED;
|
|
22
|
+
}
|
|
23
|
+
declare type CoreAccount = CorePrimaryAccount | CoreImportedAccount;
|
|
24
|
+
|
|
25
|
+
export { CoreAccount, CoreAccountType, CoreImportedAccount, CorePrimaryAccount };
|
package/esm/index.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { CoreAccountType } from './coreAccounts.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/types",
|
|
3
|
-
"version": "2.8.0-alpha.
|
|
3
|
+
"version": "2.8.0-alpha.43",
|
|
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": "
|
|
19
|
+
"gitHead": "b16841e4d074332b306bc17cc356848e355bc776"
|
|
20
20
|
}
|