@koralabs/kora-labs-common 6.4.7 → 6.4.9
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/handles/UTxO.d.ts +1 -0
- package/handles/interfaces/api.d.ts +10 -13
- package/handles/interfaces/api.js +1 -0
- package/package.json +2 -3
package/handles/UTxO.d.ts
CHANGED
|
@@ -19,8 +19,7 @@ export declare enum UTxOFunctionName {
|
|
|
19
19
|
}
|
|
20
20
|
export type UTxOFunctions = {
|
|
21
21
|
[UTxOFunctionName.ADD_UTXO]: (utxo: UTxOWithTxInfo) => void;
|
|
22
|
-
[UTxOFunctionName.
|
|
23
|
-
[UTxOFunctionName.UPDATE_HANDLE_INDEXES]: (utxo: UTxOWithTxInfo, mintingData?: Map<string, MintingData[]>, handles?: Map<string, StoredHandle>) => void;
|
|
22
|
+
[UTxOFunctionName.UPDATE_HANDLE_INDEXES]: (utxo: UTxOWithTxInfo, mintingData?: Map<string, MintingData[]>, handles?: Map<string, StoredHandle>, holders?: Map<string, HolderHandleNames>) => void;
|
|
24
23
|
};
|
|
25
24
|
export interface IApiStore {
|
|
26
25
|
initialize: () => Promise<IApiStore>;
|
|
@@ -31,10 +30,12 @@ export interface IApiStore {
|
|
|
31
30
|
slot: number;
|
|
32
31
|
id: string;
|
|
33
32
|
} | null>;
|
|
33
|
+
getValueFromIndex(index: IndexNames, key: string | number): string | undefined;
|
|
34
|
+
setValueOnIndex(index: IndexNames, key: string | number, value: string): void;
|
|
34
35
|
getIndex: (index: IndexNames, options?: SortAndLimitOptions) => Map<string | number, ApiIndexType>;
|
|
35
36
|
getKeysFromIndex: (index: IndexNames, options?: SortAndLimitOptions) => (string | number)[];
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
getHashFromIndex: (index: IndexNames, key: string | number) => ApiIndexType | undefined;
|
|
38
|
+
setHashOnIndex: (index: IndexNames, key: string | number, value: ApiIndexType) => void;
|
|
38
39
|
removeKeyFromIndex: (index: IndexNames, key: string | number) => void;
|
|
39
40
|
getValuesFromIndexedSet: (index: IndexNames, key: string | number, options?: SortAndLimitOptions) => Set<string> | undefined;
|
|
40
41
|
addValueToIndexedSet: (index: IndexNames, key: string | number, value: string) => void;
|
|
@@ -101,25 +102,20 @@ export interface IApiMetrics {
|
|
|
101
102
|
lockLambdas?: boolean;
|
|
102
103
|
lastMaxRollbackCheck?: number;
|
|
103
104
|
}
|
|
105
|
+
export type HolderHandleNames = Set<string>;
|
|
104
106
|
export interface DefaultHandleInfo {
|
|
105
107
|
name: string;
|
|
106
108
|
og_number: number;
|
|
107
109
|
created_slot_number: number;
|
|
108
110
|
}
|
|
109
111
|
export interface Holder {
|
|
110
|
-
handles:
|
|
111
|
-
defaultHandle: string;
|
|
112
|
-
manuallySet: boolean;
|
|
113
|
-
type: string;
|
|
114
|
-
knownOwnerName: string;
|
|
115
|
-
}
|
|
116
|
-
export interface HolderViewModel {
|
|
112
|
+
handles: string[];
|
|
117
113
|
total_handles: number;
|
|
118
114
|
address: string;
|
|
119
|
-
type: string;
|
|
120
|
-
known_owner_name: string;
|
|
121
115
|
default_handle: string;
|
|
122
116
|
manually_set: boolean;
|
|
117
|
+
type: string;
|
|
118
|
+
known_owner_name: string;
|
|
123
119
|
}
|
|
124
120
|
export interface IHandleSearchParams {
|
|
125
121
|
characters?: CharacterAttribute;
|
|
@@ -165,6 +161,7 @@ export declare enum IndexNames {
|
|
|
165
161
|
HANDLE = "handle",
|
|
166
162
|
HASH_OF_STAKE_KEY_HASH = "hashofstakekeyhash",
|
|
167
163
|
HOLDER = "holder",
|
|
164
|
+
DEFAULT_HANDLE = "defaulthandle",
|
|
168
165
|
LENGTH = "length",
|
|
169
166
|
LISTINGS = "listings",
|
|
170
167
|
NUMERIC_MODIFIER = "numericmodifiers",
|
|
@@ -14,6 +14,7 @@ var IndexNames;
|
|
|
14
14
|
IndexNames["HANDLE"] = "handle";
|
|
15
15
|
IndexNames["HASH_OF_STAKE_KEY_HASH"] = "hashofstakekeyhash";
|
|
16
16
|
IndexNames["HOLDER"] = "holder";
|
|
17
|
+
IndexNames["DEFAULT_HANDLE"] = "defaulthandle";
|
|
17
18
|
IndexNames["LENGTH"] = "length";
|
|
18
19
|
IndexNames["LISTINGS"] = "listings";
|
|
19
20
|
IndexNames["NUMERIC_MODIFIER"] = "numericmodifiers";
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koralabs/kora-labs-common",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.9",
|
|
4
4
|
"description": "Kora Labs Common Utilities",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"homepage": "https://github.com/koralabs/kora-labs-common",
|
|
8
8
|
"repository": {
|
|
9
|
-
"
|
|
10
|
-
"url": "git+https://github.com/koralabs/kora-labs-common.git"
|
|
9
|
+
"url": "https://github.com/koralabs/kora-labs-common"
|
|
11
10
|
},
|
|
12
11
|
"contributors": [
|
|
13
12
|
{
|