@hinkal/common 0.1.51 → 0.1.52
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/API/API.cjs +1 -1
- package/API/API.d.ts +2 -1
- package/API/API.mjs +17 -16
- package/API/kycCalls.cjs +1 -1
- package/API/kycCalls.d.ts +5 -0
- package/API/kycCalls.mjs +27 -19
- package/constants/kyc.constants.cjs +1 -1
- package/constants/kyc.constants.d.ts +8 -1
- package/constants/kyc.constants.mjs +80 -28
- package/constants/server.constants.cjs +1 -1
- package/constants/server.constants.d.ts +1 -0
- package/constants/server.constants.mjs +3 -2
- package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
- package/data-structures/Hinkal/resetMerkleTrees.mjs +9 -10
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +1 -1
- package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +38 -42
- package/data-structures/event-service/AbstractEventService.cjs +1 -1
- package/data-structures/event-service/AbstractEventService.d.ts +0 -1
- package/data-structures/event-service/AbstractEventService.mjs +8 -9
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.d.ts +1 -1
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +7 -7
- package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
- package/functions/web3/events/getInputUtxoAndBalance.mjs +18 -19
- package/index.cjs +1 -1
- package/index.mjs +545 -542
- package/package.json +1 -1
- package/types/IMultiThreadedUtxoUtils.d.ts +1 -1
- package/types/kyc.types.cjs +1 -1
- package/types/kyc.types.d.ts +6 -1
- package/types/kyc.types.mjs +8 -8
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { type Utxo } from '../data-structures/utxo/Utxo';
|
|
|
2
2
|
import { type UserKeys } from '../data-structures/crypto-keys/keys';
|
|
3
3
|
import { EncryptedOutputWithSign, OutputsWithSignAndLast } from './commitments.types';
|
|
4
4
|
export interface IMultiThreadedUtxoUtils {
|
|
5
|
-
batchProcess(encryptedOutputs: EncryptedOutputWithSign[], lastOutput: string, userKeys: UserKeys
|
|
5
|
+
batchProcess(encryptedOutputs: EncryptedOutputWithSign[], lastOutput: string, userKeys: UserKeys): Promise<OutputsWithSignAndLast>;
|
|
6
6
|
buildBatchProcess(encryptedOutputs: EncryptedOutputWithSign[], userKeys: UserKeys): Promise<Utxo[]>;
|
|
7
7
|
batchFilterUtxosWithNullifier(allUtxos: Utxo[], nullifiers: Set<string>): Promise<Utxo[]>;
|
|
8
8
|
}
|
package/types/kyc.types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(e=>(e.USER="USER",e.BUSINESS="BUSINESS",e))(E||{});const n=["USER","BUSINESS"];var N=(e=>(e[e.AiPriseKyc=0]="AiPriseKyc",e[e.AiPriseKyb=1]="AiPriseKyb",e[e.BABPassport=2]="BABPassport",e[e.GalxePassport=3]="GalxePassport",e[e.ZkMePassport=4]="ZkMePassport",e[e.CoinbasePassport=5]="CoinbasePassport",e[e.AuthentoPassport=6]="AuthentoPassport",e[e.AuthentoPassportKyb=7]="AuthentoPassportKyb",e[e.ReclaimBinance=8]="ReclaimBinance",e[e.ReclaimBNBPassport=9]="ReclaimBNBPassport",e[e.ReclaimOKXPassport=10]="ReclaimOKXPassport",e[e.ReclaimGatePassport=11]="ReclaimGatePassport",e[e.ReclaimKucoinPassport=12]="ReclaimKucoinPassport",e))(N||{}),R=(e=>(e.APPROVED="APPROVED",e.DECLINED="DECLINED",e.REVIEW="REVIEW",e.UNKNOWN="UNKNOWN",e))(R||{}),i=(e=>(e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.PENDING="PENDING",e.RUNNING="RUNNING",e.NOT_STARTED="NOT_STARTED",e))(i||{});exports.KycVerificationResult=R;exports.KycVerificationStatus=i;exports.Passports=N;exports.VERIFICATION_TYPE=E;exports.VerificationTypes=n;
|
package/types/kyc.types.d.ts
CHANGED
|
@@ -11,7 +11,12 @@ export declare enum Passports {
|
|
|
11
11
|
ZkMePassport = 4,
|
|
12
12
|
CoinbasePassport = 5,
|
|
13
13
|
AuthentoPassport = 6,
|
|
14
|
-
AuthentoPassportKyb = 7
|
|
14
|
+
AuthentoPassportKyb = 7,
|
|
15
|
+
ReclaimBinance = 8,
|
|
16
|
+
ReclaimBNBPassport = 9,
|
|
17
|
+
ReclaimOKXPassport = 10,
|
|
18
|
+
ReclaimGatePassport = 11,
|
|
19
|
+
ReclaimKucoinPassport = 12
|
|
15
20
|
}
|
|
16
21
|
export declare enum KycVerificationResult {
|
|
17
22
|
APPROVED = "APPROVED",// The user is verified. The verification process successfully completed.
|
package/types/kyc.types.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
const
|
|
1
|
+
var E = /* @__PURE__ */ ((e) => (e.USER = "USER", e.BUSINESS = "BUSINESS", e))(E || {});
|
|
2
|
+
const D = [
|
|
3
3
|
"USER",
|
|
4
4
|
"BUSINESS"
|
|
5
5
|
/* BUSINESS */
|
|
6
6
|
];
|
|
7
|
-
var
|
|
7
|
+
var N = /* @__PURE__ */ ((e) => (e[e.AiPriseKyc = 0] = "AiPriseKyc", e[e.AiPriseKyb = 1] = "AiPriseKyb", e[e.BABPassport = 2] = "BABPassport", e[e.GalxePassport = 3] = "GalxePassport", e[e.ZkMePassport = 4] = "ZkMePassport", e[e.CoinbasePassport = 5] = "CoinbasePassport", e[e.AuthentoPassport = 6] = "AuthentoPassport", e[e.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", e[e.ReclaimBinance = 8] = "ReclaimBinance", e[e.ReclaimBNBPassport = 9] = "ReclaimBNBPassport", e[e.ReclaimOKXPassport = 10] = "ReclaimOKXPassport", e[e.ReclaimGatePassport = 11] = "ReclaimGatePassport", e[e.ReclaimKucoinPassport = 12] = "ReclaimKucoinPassport", e))(N || {}), R = /* @__PURE__ */ ((e) => (e.APPROVED = "APPROVED", e.DECLINED = "DECLINED", e.REVIEW = "REVIEW", e.UNKNOWN = "UNKNOWN", e))(R || {}), A = /* @__PURE__ */ ((e) => (e.COMPLETED = "COMPLETED", e.FAILED = "FAILED", e.PENDING = "PENDING", e.RUNNING = "RUNNING", e.NOT_STARTED = "NOT_STARTED", e))(A || {});
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
R as KycVerificationResult,
|
|
10
|
+
A as KycVerificationStatus,
|
|
11
|
+
N as Passports,
|
|
12
|
+
E as VERIFICATION_TYPE,
|
|
13
|
+
D as VerificationTypes
|
|
14
14
|
};
|