@koralabs/kora-labs-common 6.1.4 → 6.1.6
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.
|
@@ -93,6 +93,7 @@ export interface IGetAllQueryParams extends IHandleSearchParams {
|
|
|
93
93
|
page?: string;
|
|
94
94
|
sort?: Sort;
|
|
95
95
|
slot_number?: string;
|
|
96
|
+
minting_type?: 'nft' | 'virtual';
|
|
96
97
|
type?: 'bech32stake' | 'holder' | 'stakekeyhash' | 'assetname' | 'handlehex' | 'paymentkeyhash' | 'bech32address' | 'hexaddress';
|
|
97
98
|
}
|
|
98
99
|
export type ISearchBody = string[];
|
|
@@ -13,6 +13,7 @@ export interface IHandlesProvider {
|
|
|
13
13
|
setHandle: (key: string, value: StoredHandle) => void;
|
|
14
14
|
removeHandle: (handleName: string) => void;
|
|
15
15
|
getIndex: (index: IndexNames) => Map<string | number, Set<string> | Holder | ISlotHistory | StoredHandle>;
|
|
16
|
+
getKeysFromIndex: (index: IndexNames) => (string | number)[];
|
|
16
17
|
getValueFromIndex: (index: IndexNames, key: string | number) => Set<string> | Holder | ISlotHistory | StoredHandle | undefined;
|
|
17
18
|
setValueOnIndex: (index: IndexNames, key: string | number, value: Set<string> | Holder | ISlotHistory | StoredHandle) => void;
|
|
18
19
|
removeKeyFromIndex: (index: IndexNames, key: string | number) => void;
|
|
@@ -8,7 +8,6 @@ export declare class HandleSearchModel implements IHandleSearchInput {
|
|
|
8
8
|
holder_address?: string;
|
|
9
9
|
personalized?: boolean;
|
|
10
10
|
handle_type?: string;
|
|
11
|
-
public_subhandles?: boolean;
|
|
12
11
|
og?: 'true' | 'false';
|
|
13
12
|
handles?: string[];
|
|
14
13
|
constructor(input?: IHandleSearchInput);
|
package/handles/utils.js
CHANGED
|
@@ -128,7 +128,7 @@ const buildDrep = (address, id_hash) => {
|
|
|
128
128
|
const decoded = (_a = (0, utils_1.decodeAddress)(address)) === null || _a === void 0 ? void 0 : _a.slice(2, 58);
|
|
129
129
|
if (!decoded || decoded == '')
|
|
130
130
|
return undefined;
|
|
131
|
-
const hashed = crypto.createHash('md5').update(decoded).digest('hex');
|
|
131
|
+
const hashed = crypto.createHash('md5').update(Buffer.from(decoded, 'hex')).digest('hex');
|
|
132
132
|
if (!id_hash.startsWith(hashed))
|
|
133
133
|
return undefined;
|
|
134
134
|
const typeByte = id_hash.slice(32, 34);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koralabs/kora-labs-common",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6",
|
|
4
4
|
"description": "Kora Labs Common Utilities",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@aws-sdk/client-dynamodb": "^3.549.0",
|
|
31
31
|
"@aws-sdk/lib-dynamodb": "^3.549.0",
|
|
32
32
|
"@types/jest": "^28.1.1",
|
|
33
|
-
"@types/node": "^
|
|
33
|
+
"@types/node": "^22.15.17",
|
|
34
34
|
"@types/pluralize": "^0.0.29",
|
|
35
35
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
36
36
|
"@typescript-eslint/parser": "^7.6.0",
|