@volr/react 0.1.69 → 0.1.70

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/dist/index.js CHANGED
@@ -18866,10 +18866,8 @@ function useDepositListener(input) {
18866
18866
  try {
18867
18867
  if (!rpcUrlRef.current) {
18868
18868
  rpcUrlRef.current = await getRpcUrl(input.chainId);
18869
- console.log("[DepositListener] RPC URL:", rpcUrlRef.current);
18870
18869
  }
18871
18870
  const initial = await fetchBalance();
18872
- console.log("[DepositListener] Initial balance:", initial.toString());
18873
18871
  if (cancelled) return;
18874
18872
  setStatus({ state: "listening", balance: initial });
18875
18873
  } catch (e) {
@@ -18879,16 +18877,13 @@ function useDepositListener(input) {
18879
18877
  return;
18880
18878
  }
18881
18879
  const intervalMs = input.pollIntervalMs ?? config.deposit?.pollIntervalMs ?? 6e3;
18882
- console.log("[DepositListener] Polling interval:", intervalMs, "ms");
18883
18880
  intervalRef.current = window.setInterval(async () => {
18884
18881
  try {
18885
18882
  const current = await fetchBalance();
18886
- console.log("[DepositListener] Current balance:", current.toString());
18887
18883
  if (cancelled) return;
18888
18884
  setStatus((prev) => {
18889
18885
  if (prev.state === "listening") {
18890
18886
  if (current > prev.balance) {
18891
- console.log("[DepositListener] \u2705 DEPOSIT DETECTED! Previous:", prev.balance.toString(), "New:", current.toString());
18892
18887
  return {
18893
18888
  state: "detected",
18894
18889
  previousBalance: prev.balance,
@@ -18897,7 +18892,6 @@ function useDepositListener(input) {
18897
18892
  };
18898
18893
  }
18899
18894
  if (current !== prev.balance) {
18900
- console.log("[DepositListener] \u26A0\uFE0F Balance changed (decreased or other). Previous:", prev.balance.toString(), "New:", current.toString());
18901
18895
  return {
18902
18896
  state: "detected",
18903
18897
  previousBalance: prev.balance,
@@ -18908,7 +18902,6 @@ function useDepositListener(input) {
18908
18902
  return prev;
18909
18903
  }
18910
18904
  if (prev.state === "detected") {
18911
- console.log("[DepositListener] Resuming listening from new balance:", current.toString());
18912
18905
  return { state: "listening", balance: current };
18913
18906
  }
18914
18907
  return prev;