@huma-finance/widgets 0.0.69-beta.847 → 0.0.69-beta.852

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.
@@ -6210,6 +6210,7 @@ function PersonaEvaluation(_ref) {
6210
6210
  campaign,
6211
6211
  networkType,
6212
6212
  chainType,
6213
+ documentHash,
6213
6214
  handleClose
6214
6215
  } = _ref;
6215
6216
  const theme = material.useTheme();
@@ -6239,7 +6240,7 @@ function PersonaEvaluation(_ref) {
6239
6240
  try {
6240
6241
  isActionOngoingRef.current = true;
6241
6242
  setLoadingType('verificationStatus');
6242
- const verificationStatus = await shared.IdentityServiceV2.getVerificationStatusV2(networkType, isDev);
6243
+ const verificationStatus = await shared.IdentityServiceV2.getVerificationStatusV2(networkType, documentHash, isDev);
6243
6244
  setVerificationStatus(verificationStatus);
6244
6245
  setInquiryId(verificationStatus.personaInquiryId);
6245
6246
  switch (verificationStatus.status) {
@@ -6324,7 +6325,7 @@ function PersonaEvaluation(_ref) {
6324
6325
  } finally {
6325
6326
  isActionOngoingRef.current = false;
6326
6327
  }
6327
- }, [KYCCopies, dispatch, isDev, networkType, setAuthError]);
6328
+ }, [KYCCopies, dispatch, isDev, networkType, documentHash, setAuthError]);
6328
6329
  React.useEffect(() => {
6329
6330
  checkVerificationStatus();
6330
6331
  }, [checkVerificationStatus]);
@@ -6478,6 +6479,7 @@ function Evaluation$3(_ref) {
6478
6479
  poolInfo,
6479
6480
  networkType,
6480
6481
  campaign,
6482
+ documentHash,
6481
6483
  handleClose
6482
6484
  } = _ref;
6483
6485
  if ((_poolInfo$KYC = poolInfo.KYC) !== null && _poolInfo$KYC !== void 0 && _poolInfo$KYC.Persona) {
@@ -6490,7 +6492,8 @@ function Evaluation$3(_ref) {
6490
6492
  handleClose: handleClose,
6491
6493
  networkType: networkType,
6492
6494
  chainType: shared.CHAIN_TYPE.SOLANA,
6493
- campaign: campaign
6495
+ campaign: campaign,
6496
+ documentHash: documentHash
6494
6497
  });
6495
6498
  }
6496
6499
  return null;
@@ -6910,6 +6913,7 @@ function SolanaLendSupply(_ref) {
6910
6913
  let {
6911
6914
  poolInfo,
6912
6915
  poolState,
6916
+ documentHash,
6913
6917
  handleClose,
6914
6918
  handleSuccess
6915
6919
  } = _ref;
@@ -6970,6 +6974,7 @@ function SolanaLendSupply(_ref) {
6970
6974
  children: [step === WIDGET_STEP.Evaluation && jsxRuntime.jsx(Evaluation$3, {
6971
6975
  poolInfo: poolInfo,
6972
6976
  campaign: poolState.campaign,
6977
+ documentHash: documentHash,
6973
6978
  networkType: shared.getSolanaNetworkType(poolInfo.chainId),
6974
6979
  handleClose: handleClose
6975
6980
  }), step === WIDGET_STEP.ApproveLender && jsxRuntime.jsx(ApproveLender$1, {
@@ -7380,6 +7385,7 @@ function StellarTxSendModal(_ref) {
7380
7385
  handleSuccess();
7381
7386
  } catch (error) {
7382
7387
  const err = error;
7388
+ console.error(err);
7383
7389
  dispatch(setError({
7384
7390
  errorMessage: (err === null || err === void 0 ? void 0 : err.message) || ''
7385
7391
  }));
@@ -7422,7 +7428,7 @@ function Transfer$7(_ref) {
7422
7428
  const trancheVaultClient = new sorobanTrancheVault.Client({
7423
7429
  publicKey: stellarAddress,
7424
7430
  contractId: selectedTranche === 'senior' ? poolInfo.seniorTranche : poolInfo.juniorTranche,
7425
- ...webShared.getClientCommonParams(chainMetadata)
7431
+ ...webShared.getClientCommonParams(chainMetadata, stellarAddress)
7426
7432
  });
7427
7433
  const tx = await trancheVaultClient.deposit({
7428
7434
  lender: stellarAddress,
@@ -8570,8 +8576,9 @@ function Evaluation$1(_ref) {
8570
8576
  var _poolInfo$KYC, _poolInfo$KYC2;
8571
8577
  let {
8572
8578
  poolInfo,
8573
- campaign,
8574
8579
  networkType,
8580
+ campaign,
8581
+ documentHash,
8575
8582
  handleClose
8576
8583
  } = _ref;
8577
8584
  if ((_poolInfo$KYC = poolInfo.KYC) !== null && _poolInfo$KYC !== void 0 && _poolInfo$KYC.Securitize) {
@@ -8586,7 +8593,8 @@ function Evaluation$1(_ref) {
8586
8593
  handleClose: handleClose,
8587
8594
  campaign: campaign,
8588
8595
  networkType: networkType,
8589
- chainType: shared.CHAIN_TYPE.EVM
8596
+ chainType: shared.CHAIN_TYPE.EVM,
8597
+ documentHash: documentHash
8590
8598
  });
8591
8599
  }
8592
8600
  return null;
@@ -8850,6 +8858,7 @@ function LendSupplyV2(_ref) {
8850
8858
  let {
8851
8859
  poolName: poolNameStr,
8852
8860
  campaign,
8861
+ documentHash,
8853
8862
  handleClose,
8854
8863
  handleSuccess
8855
8864
  } = _ref;
@@ -8929,7 +8938,8 @@ function LendSupplyV2(_ref) {
8929
8938
  poolInfo: poolInfo,
8930
8939
  handleClose: handleClose,
8931
8940
  campaign: campaign,
8932
- networkType: shared.getEvmNetworkType(poolInfo.chainId)
8941
+ networkType: shared.getEvmNetworkType(poolInfo.chainId),
8942
+ documentHash: documentHash
8933
8943
  }), step === WIDGET_STEP.ApproveLender && jsxRuntime.jsx(ApproveLender, {
8934
8944
  poolInfo: poolInfo,
8935
8945
  isUniTranche: isUniTranche,