@hinkal/common 0.1.51 → 0.1.53

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.
Files changed (36) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +2 -1
  3. package/API/API.mjs +17 -16
  4. package/API/kycCalls.cjs +1 -1
  5. package/API/kycCalls.d.ts +5 -0
  6. package/API/kycCalls.mjs +27 -19
  7. package/constants/axelar.constants.cjs +1 -1
  8. package/constants/axelar.constants.mjs +27 -28
  9. package/constants/chains.constants.cjs +1 -1
  10. package/constants/chains.constants.mjs +49 -49
  11. package/constants/kyc.constants.cjs +1 -1
  12. package/constants/kyc.constants.d.ts +8 -1
  13. package/constants/kyc.constants.mjs +104 -28
  14. package/constants/server.constants.cjs +1 -1
  15. package/constants/server.constants.d.ts +1 -0
  16. package/constants/server.constants.mjs +3 -2
  17. package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
  18. package/data-structures/Hinkal/resetMerkleTrees.mjs +9 -10
  19. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
  20. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +1 -1
  21. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +38 -42
  22. package/data-structures/event-service/AbstractEventService.cjs +1 -1
  23. package/data-structures/event-service/AbstractEventService.d.ts +0 -1
  24. package/data-structures/event-service/AbstractEventService.mjs +8 -9
  25. package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +1 -1
  26. package/data-structures/snapshot/ClientCommitmentsSnapshotService.d.ts +1 -1
  27. package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +7 -7
  28. package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
  29. package/functions/web3/events/getInputUtxoAndBalance.mjs +18 -19
  30. package/index.cjs +1 -1
  31. package/index.mjs +545 -542
  32. package/package.json +1 -2
  33. package/types/IMultiThreadedUtxoUtils.d.ts +1 -1
  34. package/types/kyc.types.cjs +1 -1
  35. package/types/kyc.types.d.ts +8 -1
  36. package/types/kyc.types.mjs +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hinkal/common",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "homepage": "hinkal.pro",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -48,7 +48,6 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "axios": "^1.6.8",
51
- "@axelar-network/axelarjs-sdk": "0.16.0",
52
51
  "async-mutex": "^0.4.0",
53
52
  "circomlibjs": "^0.1.7",
54
53
  "dotenv": "^16.4.5",
@@ -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, ethAddress: string): Promise<OutputsWithSignAndLast>;
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
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var N=(E=>(E.USER="USER",E.BUSINESS="BUSINESS",E))(N||{});const D=["USER","BUSINESS"];var e=(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||{}),A=(E=>(E.APPROVED="APPROVED",E.DECLINED="DECLINED",E.REVIEW="REVIEW",E.UNKNOWN="UNKNOWN",E))(A||{}),r=(E=>(E.COMPLETED="COMPLETED",E.FAILED="FAILED",E.PENDING="PENDING",E.RUNNING="RUNNING",E.NOT_STARTED="NOT_STARTED",E))(r||{});exports.KycVerificationResult=A;exports.KycVerificationStatus=r;exports.Passports=e;exports.VERIFICATION_TYPE=N;exports.VerificationTypes=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(e=>(e.USER="USER",e.BUSINESS="BUSINESS",e))(E||{});const a=["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[e.ReclaimMexcPassport=13]="ReclaimMexcPassport",e[e.ReclaimHtxPassport=14]="ReclaimHtxPassport",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=a;
@@ -11,7 +11,14 @@ 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,
20
+ ReclaimMexcPassport = 13,
21
+ ReclaimHtxPassport = 14
15
22
  }
16
23
  export declare enum KycVerificationResult {
17
24
  APPROVED = "APPROVED",// The user is verified. The verification process successfully completed.
@@ -1,14 +1,14 @@
1
- var N = /* @__PURE__ */ ((E) => (E.USER = "USER", E.BUSINESS = "BUSINESS", E))(N || {});
2
- const I = [
1
+ var E = /* @__PURE__ */ ((e) => (e.USER = "USER", e.BUSINESS = "BUSINESS", e))(E || {});
2
+ const m = [
3
3
  "USER",
4
4
  "BUSINESS"
5
5
  /* BUSINESS */
6
6
  ];
7
- var A = /* @__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))(A || {}), D = /* @__PURE__ */ ((E) => (E.APPROVED = "APPROVED", E.DECLINED = "DECLINED", E.REVIEW = "REVIEW", E.UNKNOWN = "UNKNOWN", E))(D || {}), e = /* @__PURE__ */ ((E) => (E.COMPLETED = "COMPLETED", E.FAILED = "FAILED", E.PENDING = "PENDING", E.RUNNING = "RUNNING", E.NOT_STARTED = "NOT_STARTED", E))(e || {});
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[e.ReclaimMexcPassport = 13] = "ReclaimMexcPassport", e[e.ReclaimHtxPassport = 14] = "ReclaimHtxPassport", 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
- D as KycVerificationResult,
10
- e as KycVerificationStatus,
11
- A as Passports,
12
- N as VERIFICATION_TYPE,
13
- I as VerificationTypes
9
+ R as KycVerificationResult,
10
+ A as KycVerificationStatus,
11
+ N as Passports,
12
+ E as VERIFICATION_TYPE,
13
+ m as VerificationTypes
14
14
  };