coinley-pay 0.29.0 → 0.30.0
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/{CoinleyPayment-DvR9sd7O.js → CoinleyPayment-BUCxlaSN.js} +19 -17
- package/dist/{appKitEVM--PzCfGQT.js → appKitEVM--OanO4zO.js} +2 -2
- package/dist/{appKitSolana-Brjblem7.js → appKitSolana-CNQLFPw3.js} +2 -2
- package/dist/coinley-vanilla.min.js +1 -1
- package/dist/{index-af6vtaZH.js → index-DXIE_oad.js} +3 -3
- package/dist/{index-fkUYCNSE.js → index-EgEF0eVy.js} +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
5
5
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
6
6
|
import { useConnect, useAccount, useSwitchChain, useSendTransaction, useWaitForTransactionReceipt, WagmiProvider, useDisconnect } from "wagmi";
|
|
7
7
|
import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
|
|
8
|
-
import { s as sdkAnalytics, c as clarityAnalytics, d as dist, a as Buffer2, B as Buffer$1, g as getCurrencyInfo, p as prefetchRates, i as isSupportedCurrency, b as convertToUSD, f as formatCurrency } from "./index-
|
|
8
|
+
import { s as sdkAnalytics, c as clarityAnalytics, d as dist, a as Buffer2, B as Buffer$1, g as getCurrencyInfo, p as prefetchRates, i as isSupportedCurrency, b as convertToUSD, f as formatCurrency } from "./index-EgEF0eVy.js";
|
|
9
9
|
import { createConfig, fallback, http, getAccount as getAccount$1, getWalletClient, simulateContract, writeContract, readContract, waitForTransactionReceipt, estimateFeesPerGas as estimateFeesPerGas$1 } from "@wagmi/core";
|
|
10
10
|
import { injected, metaMask, coinbaseWallet, walletConnect } from "@wagmi/connectors";
|
|
11
11
|
import { defineChain as defineChain$1, erc20Abi, http as http$1, createPublicClient, fallback as fallback$1 } from "viem";
|
|
@@ -21121,7 +21121,7 @@ const WalletSelector = ({
|
|
|
21121
21121
|
try {
|
|
21122
21122
|
setAppKitError(null);
|
|
21123
21123
|
setWalletConnectAddress(solanaAccountState.address);
|
|
21124
|
-
const { createWalletConnectAdapter } = await import("./appKitSolana-
|
|
21124
|
+
const { createWalletConnectAdapter } = await import("./appKitSolana-CNQLFPw3.js");
|
|
21125
21125
|
const adapter = createWalletConnectAdapter(solanaAccountState.address);
|
|
21126
21126
|
await solanaWallet.connectWalletConnect(adapter, solanaAccountState.address);
|
|
21127
21127
|
console.log("✅ WalletConnect synced with SDK");
|
|
@@ -21226,7 +21226,7 @@ const WalletSelector = ({
|
|
|
21226
21226
|
setAppKitLoading(true);
|
|
21227
21227
|
setAppKitError(null);
|
|
21228
21228
|
try {
|
|
21229
|
-
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM--
|
|
21229
|
+
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM--OanO4zO.js");
|
|
21230
21230
|
await initializeAppKitEVM(wagmiConfig);
|
|
21231
21231
|
await openAppKitModal();
|
|
21232
21232
|
} catch (error) {
|
|
@@ -21246,7 +21246,7 @@ const WalletSelector = ({
|
|
|
21246
21246
|
setAppKitError(null);
|
|
21247
21247
|
try {
|
|
21248
21248
|
console.log("📦 Loading AppKit Solana module...");
|
|
21249
|
-
const { initializeAppKitSolana } = await import("./appKitSolana-
|
|
21249
|
+
const { initializeAppKitSolana } = await import("./appKitSolana-CNQLFPw3.js");
|
|
21250
21250
|
console.log("✅ Module loaded, initializing...");
|
|
21251
21251
|
const modal = await initializeAppKitSolana(solanaWallet);
|
|
21252
21252
|
console.log("✅ AppKit Solana initialized successfully");
|
|
@@ -23998,11 +23998,6 @@ const CoinleyPaymentInternal = ({
|
|
|
23998
23998
|
try {
|
|
23999
23999
|
const statusResult = await paymentFlow.api.getDepositStatus(paymentData.id);
|
|
24000
24000
|
if (statusResult.success && statusResult.payment) {
|
|
24001
|
-
if (activateUnderpaymentFlow(statusResult.payment)) {
|
|
24002
|
-
clearInterval(pollInterval);
|
|
24003
|
-
setCurrentStep(PAYMENT_STEPS.CONFIRM);
|
|
24004
|
-
return;
|
|
24005
|
-
}
|
|
24006
24001
|
const status = statusResult.payment.status;
|
|
24007
24002
|
const txHash = statusResult.payment.depositTxHash || statusResult.payment.sweepTxHash || statusResult.payment.transactionHash;
|
|
24008
24003
|
if ((status === "completed" || status === "swept") && txHash) {
|
|
@@ -24034,6 +24029,12 @@ const CoinleyPaymentInternal = ({
|
|
|
24034
24029
|
paymentDetails: statusResult.payment
|
|
24035
24030
|
});
|
|
24036
24031
|
}
|
|
24032
|
+
return;
|
|
24033
|
+
}
|
|
24034
|
+
if (activateUnderpaymentFlow(statusResult.payment)) {
|
|
24035
|
+
clearInterval(pollInterval);
|
|
24036
|
+
setCurrentStep(PAYMENT_STEPS.CONFIRM);
|
|
24037
|
+
return;
|
|
24037
24038
|
} else if (status === "failed" || status === "sweep_failed") {
|
|
24038
24039
|
clearInterval(pollInterval);
|
|
24039
24040
|
clearUnderpaymentRecovery(paymentData.id);
|
|
@@ -25589,10 +25590,6 @@ const CoinleyPaymentInternal = ({
|
|
|
25589
25590
|
try {
|
|
25590
25591
|
const statusResult = await paymentFlow.api.getDepositStatus(paymentData.id);
|
|
25591
25592
|
if (statusResult.success && statusResult.payment) {
|
|
25592
|
-
if (activateUnderpaymentFlow(statusResult.payment)) {
|
|
25593
|
-
clearInterval(pollInterval);
|
|
25594
|
-
return;
|
|
25595
|
-
}
|
|
25596
25593
|
const status = statusResult.payment.status;
|
|
25597
25594
|
const txHash = statusResult.payment.depositTxHash || statusResult.payment.sweepTxHash || statusResult.payment.transactionHash;
|
|
25598
25595
|
if ((status === "completed" || status === "swept") && txHash) {
|
|
@@ -25612,6 +25609,11 @@ const CoinleyPaymentInternal = ({
|
|
|
25612
25609
|
paymentDetails: statusResult.payment
|
|
25613
25610
|
});
|
|
25614
25611
|
}
|
|
25612
|
+
return;
|
|
25613
|
+
}
|
|
25614
|
+
if (activateUnderpaymentFlow(statusResult.payment)) {
|
|
25615
|
+
clearInterval(pollInterval);
|
|
25616
|
+
return;
|
|
25615
25617
|
} else if (status === "processing" || statusResult.payment.depositDetectedAt) {
|
|
25616
25618
|
console.log("⏳ Auto-detected: Deposit received, processing...");
|
|
25617
25619
|
clearInterval(pollInterval);
|
|
@@ -25697,9 +25699,6 @@ const CoinleyPaymentInternal = ({
|
|
|
25697
25699
|
try {
|
|
25698
25700
|
const statusResult = await paymentFlow.api.getDepositStatus(paymentData.id);
|
|
25699
25701
|
if (statusResult.success && statusResult.payment) {
|
|
25700
|
-
if (activateUnderpaymentFlow(statusResult.payment)) {
|
|
25701
|
-
return;
|
|
25702
|
-
}
|
|
25703
25702
|
const status = statusResult.payment.status;
|
|
25704
25703
|
const txHash = statusResult.payment.depositTxHash || statusResult.payment.sweepTxHash || statusResult.payment.transactionHash;
|
|
25705
25704
|
if ((status === "completed" || status === "swept") && txHash) {
|
|
@@ -25720,6 +25719,9 @@ const CoinleyPaymentInternal = ({
|
|
|
25720
25719
|
}
|
|
25721
25720
|
return;
|
|
25722
25721
|
}
|
|
25722
|
+
if (activateUnderpaymentFlow(statusResult.payment)) {
|
|
25723
|
+
return;
|
|
25724
|
+
}
|
|
25723
25725
|
if (status === "processing" || statusResult.payment.depositDetectedAt) {
|
|
25724
25726
|
setManualCheckStatus(null);
|
|
25725
25727
|
clearUnderpaymentRecovery(paymentData.id);
|
|
@@ -27113,4 +27115,4 @@ export {
|
|
|
27113
27115
|
isFeatureEnabled as i,
|
|
27114
27116
|
logo as l
|
|
27115
27117
|
};
|
|
27116
|
-
//# sourceMappingURL=CoinleyPayment-
|
|
27118
|
+
//# sourceMappingURL=CoinleyPayment-BUCxlaSN.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID, l as logo } from "./CoinleyPayment-
|
|
1
|
+
import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID, l as logo } from "./CoinleyPayment-BUCxlaSN.js";
|
|
2
2
|
let appKitInstance = null;
|
|
3
3
|
let isInitializing = false;
|
|
4
4
|
let initializationPromise = null;
|
|
@@ -112,4 +112,4 @@ export {
|
|
|
112
112
|
initializeAppKitEVM,
|
|
113
113
|
openAppKitModal
|
|
114
114
|
};
|
|
115
|
-
//# sourceMappingURL=appKitEVM--
|
|
115
|
+
//# sourceMappingURL=appKitEVM--OanO4zO.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FEATURES, l as logo, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-
|
|
1
|
+
import { F as FEATURES, l as logo, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-BUCxlaSN.js";
|
|
2
2
|
let appKitInstance = null;
|
|
3
3
|
let isInitializing = false;
|
|
4
4
|
let initializationPromise = null;
|
|
@@ -242,4 +242,4 @@ export {
|
|
|
242
242
|
disconnectWalletConnect,
|
|
243
243
|
initializeAppKitSolana
|
|
244
244
|
};
|
|
245
|
-
//# sourceMappingURL=appKitSolana-
|
|
245
|
+
//# sourceMappingURL=appKitSolana-CNQLFPw3.js.map
|