coinley-pay 0.46.0 → 0.47.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-BZZKQO96.js → CoinleyPayment-kt3eOJlB.js} +100 -28
- package/dist/{appKitEVM-zLHXb4kV.js → appKitEVM-CA1A3oZb.js} +2 -2
- package/dist/{appKitSolana-CcEv9c6h.js → appKitSolana-mYWu1Cjx.js} +2 -2
- package/dist/coinley-vanilla.min.js +580 -580
- package/dist/{index-Fh9oknzD.js → index-C00n-j2g.js} +3 -3
- package/dist/{index-BFwilphb.js → index-DEozbpiN.js} +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +4 -4
- 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-DEozbpiN.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";
|
|
@@ -21122,7 +21122,7 @@ const WalletSelector = ({
|
|
|
21122
21122
|
try {
|
|
21123
21123
|
setAppKitError(null);
|
|
21124
21124
|
setWalletConnectAddress(solanaAccountState.address);
|
|
21125
|
-
const { createWalletConnectAdapter } = await import("./appKitSolana-
|
|
21125
|
+
const { createWalletConnectAdapter } = await import("./appKitSolana-mYWu1Cjx.js");
|
|
21126
21126
|
const adapter = createWalletConnectAdapter(solanaAccountState.address);
|
|
21127
21127
|
await solanaWallet.connectWalletConnect(adapter, solanaAccountState.address);
|
|
21128
21128
|
console.log("✅ WalletConnect synced with SDK");
|
|
@@ -21227,7 +21227,7 @@ const WalletSelector = ({
|
|
|
21227
21227
|
setAppKitLoading(true);
|
|
21228
21228
|
setAppKitError(null);
|
|
21229
21229
|
try {
|
|
21230
|
-
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-
|
|
21230
|
+
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-CA1A3oZb.js");
|
|
21231
21231
|
await initializeAppKitEVM(wagmiConfig);
|
|
21232
21232
|
await openAppKitModal();
|
|
21233
21233
|
} catch (error) {
|
|
@@ -21247,7 +21247,7 @@ const WalletSelector = ({
|
|
|
21247
21247
|
setAppKitError(null);
|
|
21248
21248
|
try {
|
|
21249
21249
|
console.log("📦 Loading AppKit Solana module...");
|
|
21250
|
-
const { initializeAppKitSolana } = await import("./appKitSolana-
|
|
21250
|
+
const { initializeAppKitSolana } = await import("./appKitSolana-mYWu1Cjx.js");
|
|
21251
21251
|
console.log("✅ Module loaded, initializing...");
|
|
21252
21252
|
const modal = await initializeAppKitSolana(solanaWallet);
|
|
21253
21253
|
console.log("✅ AppKit Solana initialized successfully");
|
|
@@ -23656,15 +23656,19 @@ const CoinleyPaymentInternal = ({
|
|
|
23656
23656
|
paymentState: payment.paymentState || (raw == null ? void 0 : raw.paymentState) || statusText || "underpaid"
|
|
23657
23657
|
};
|
|
23658
23658
|
}, [paymentAmount, selectedNetwork, selectedToken]);
|
|
23659
|
-
const activateUnderpaymentFlow = useCallback((payment) => {
|
|
23659
|
+
const activateUnderpaymentFlow = useCallback((payment, options = {}) => {
|
|
23660
23660
|
const normalized = normalizeUnderpaymentInfo(payment);
|
|
23661
23661
|
if (!normalized) return false;
|
|
23662
|
+
const forceRefund = options.forceRefund === true;
|
|
23662
23663
|
const recoveryState = readUnderpaymentRecovery((payment == null ? void 0 : payment.id) || (paymentData == null ? void 0 : paymentData.id));
|
|
23663
|
-
const recoveryChoice = (recoveryState == null ? void 0 : recoveryState.choice) === "offset" || (recoveryState == null ? void 0 : recoveryState.choice) === "refund" ? recoveryState.choice : null;
|
|
23664
|
-
const recoveryView = recoveryChoice ? (recoveryState == null ? void 0 : recoveryState.view) === "refund" ? "refund" : "offset" : null;
|
|
23664
|
+
const recoveryChoice = forceRefund ? "refund" : (recoveryState == null ? void 0 : recoveryState.choice) === "offset" || (recoveryState == null ? void 0 : recoveryState.choice) === "refund" ? recoveryState.choice : null;
|
|
23665
|
+
const recoveryView = forceRefund ? "refund" : recoveryChoice ? (recoveryState == null ? void 0 : recoveryState.view) === "refund" ? "refund" : "offset" : null;
|
|
23665
23666
|
setUnderpaymentInfo(normalized);
|
|
23666
|
-
setUnderpaymentChoice((currentChoice) => currentChoice || recoveryChoice);
|
|
23667
|
+
setUnderpaymentChoice((currentChoice) => forceRefund ? "refund" : currentChoice || recoveryChoice);
|
|
23667
23668
|
setUnderpaymentView((currentView) => {
|
|
23669
|
+
if (forceRefund) {
|
|
23670
|
+
return "refund";
|
|
23671
|
+
}
|
|
23668
23672
|
if (currentView && currentView !== "choice") {
|
|
23669
23673
|
return currentView;
|
|
23670
23674
|
}
|
|
@@ -23708,7 +23712,7 @@ const CoinleyPaymentInternal = ({
|
|
|
23708
23712
|
currency: (underpayment == null ? void 0 : underpayment.tokenSymbol) || (underpayment == null ? void 0 : underpayment.currency) || rawPayment.currency || statusResult.currency || (ccOriginToken == null ? void 0 : ccOriginToken.symbol),
|
|
23709
23713
|
refundNetworkLabel: (underpayment == null ? void 0 : underpayment.refundNetworkLabel) || rawPayment.refundNetworkLabel || ccChainName(relay.originChainId || (ccResult == null ? void 0 : ccResult.originChainId) || ccOriginChainId),
|
|
23710
23714
|
underpayment
|
|
23711
|
-
});
|
|
23715
|
+
}, { forceRefund: true });
|
|
23712
23716
|
}, [activateUnderpaymentFlow, ccOriginChainId, ccOriginToken == null ? void 0 : ccOriginToken.symbol, ccResult == null ? void 0 : ccResult.id, ccResult == null ? void 0 : ccResult.originChainId, ccResult == null ? void 0 : ccResult.relayDepositAddress]);
|
|
23713
23717
|
const clearUnderpaymentUiState = useCallback((paymentId) => {
|
|
23714
23718
|
setUnderpaymentInfo(null);
|
|
@@ -24628,9 +24632,29 @@ const CoinleyPaymentInternal = ({
|
|
|
24628
24632
|
};
|
|
24629
24633
|
}, [useGenericMobileTokenList, selectedNetwork == null ? void 0 : selectedNetwork.isExtraNetwork, selectedNetwork == null ? void 0 : selectedNetwork.chainId, selectedNetwork == null ? void 0 : selectedNetwork.shortName, selectedNetwork == null ? void 0 : selectedNetwork.name, paymentFlow.api]);
|
|
24630
24634
|
const availableTokens = useMemo(() => {
|
|
24635
|
+
var _a2;
|
|
24631
24636
|
if (!selectedNetwork) return [];
|
|
24632
24637
|
const networkTokens = [];
|
|
24633
|
-
if (selectedNetwork.
|
|
24638
|
+
if (selectedNetwork.isCrossChainSource) {
|
|
24639
|
+
const sourceTokens = ((_a2 = selectedNetwork.crossChainSource) == null ? void 0 : _a2.tokens) || [];
|
|
24640
|
+
for (const token of sourceTokens) {
|
|
24641
|
+
const symbol = String(token.symbol || "").toUpperCase();
|
|
24642
|
+
const address2 = token.address || token.contractAddress || symbol;
|
|
24643
|
+
networkTokens.push({
|
|
24644
|
+
id: `cross-chain-${selectedNetwork.chainId}-${address2}`,
|
|
24645
|
+
symbol,
|
|
24646
|
+
name: token.name || symbol,
|
|
24647
|
+
address: address2,
|
|
24648
|
+
contractAddress: address2,
|
|
24649
|
+
decimals: token.decimals || 18,
|
|
24650
|
+
isStablecoin: ["USDC", "USDT", "DAI"].includes(symbol),
|
|
24651
|
+
balance: null,
|
|
24652
|
+
balanceFormatted: null,
|
|
24653
|
+
logo: token.logoURI || token.logo || getTokenLogoUrl(symbol),
|
|
24654
|
+
Network: { shortName: selectedNetwork.shortName, name: selectedNetwork.name }
|
|
24655
|
+
});
|
|
24656
|
+
}
|
|
24657
|
+
} else if (selectedNetwork.isBridgeNetwork && selectedNetwork.bridgeDestination) {
|
|
24634
24658
|
const bt = selectedNetwork.bridgeTokens;
|
|
24635
24659
|
if (bt == null ? void 0 : bt.usdc) {
|
|
24636
24660
|
networkTokens.push({
|
|
@@ -24655,8 +24679,8 @@ const CoinleyPaymentInternal = ({
|
|
|
24655
24679
|
} else {
|
|
24656
24680
|
const serverTokens = tokens.filter(
|
|
24657
24681
|
(token) => {
|
|
24658
|
-
var
|
|
24659
|
-
return ((
|
|
24682
|
+
var _a3;
|
|
24683
|
+
return ((_a3 = token.Network) == null ? void 0 : _a3.shortName) === (selectedNetwork == null ? void 0 : selectedNetwork.shortName) || token.networkId === (selectedNetwork == null ? void 0 : selectedNetwork.id);
|
|
24660
24684
|
}
|
|
24661
24685
|
);
|
|
24662
24686
|
if (useGenericMobileTokenList) {
|
|
@@ -24719,8 +24743,8 @@ const CoinleyPaymentInternal = ({
|
|
|
24719
24743
|
for (const st of serverTokens) {
|
|
24720
24744
|
const walletMatch = walletTokens.find(
|
|
24721
24745
|
(wt) => {
|
|
24722
|
-
var
|
|
24723
|
-
return ((
|
|
24746
|
+
var _a3, _b, _c, _d;
|
|
24747
|
+
return ((_a3 = wt.symbol) == null ? void 0 : _a3.toUpperCase()) === ((_b = st.symbol) == null ? void 0 : _b.toUpperCase()) || ((_c = wt.contractAddress) == null ? void 0 : _c.toLowerCase()) === ((_d = st.contractAddress) == null ? void 0 : _d.toLowerCase());
|
|
24724
24748
|
}
|
|
24725
24749
|
);
|
|
24726
24750
|
networkTokens.push({
|
|
@@ -24734,8 +24758,8 @@ const CoinleyPaymentInternal = ({
|
|
|
24734
24758
|
for (const wt of walletTokens) {
|
|
24735
24759
|
const alreadyListed = networkTokens.some(
|
|
24736
24760
|
(t) => {
|
|
24737
|
-
var
|
|
24738
|
-
return ((
|
|
24761
|
+
var _a3, _b, _c, _d;
|
|
24762
|
+
return ((_a3 = t.symbol) == null ? void 0 : _a3.toUpperCase()) === ((_b = wt.symbol) == null ? void 0 : _b.toUpperCase()) || ((_c = t.contractAddress) == null ? void 0 : _c.toLowerCase()) === ((_d = wt.contractAddress) == null ? void 0 : _d.toLowerCase());
|
|
24739
24763
|
}
|
|
24740
24764
|
);
|
|
24741
24765
|
if (!alreadyListed) {
|
|
@@ -24747,7 +24771,7 @@ const CoinleyPaymentInternal = ({
|
|
|
24747
24771
|
}
|
|
24748
24772
|
}
|
|
24749
24773
|
}
|
|
24750
|
-
const filteredTokens = networkTokens.filter((t) => {
|
|
24774
|
+
const filteredTokens = (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? networkTokens : networkTokens.filter((t) => {
|
|
24751
24775
|
if (t.isSwapToken) return true;
|
|
24752
24776
|
return isTokenBridgeSupported(selectedNetwork == null ? void 0 : selectedNetwork.shortName, t.symbol);
|
|
24753
24777
|
});
|
|
@@ -25107,6 +25131,12 @@ const CoinleyPaymentInternal = ({
|
|
|
25107
25131
|
setError("");
|
|
25108
25132
|
setQrCodeDataUrl("");
|
|
25109
25133
|
setQrWalletChoiceConfirmed(false);
|
|
25134
|
+
setCcResult(null);
|
|
25135
|
+
setCcQrCode("");
|
|
25136
|
+
setCcPhase("idle");
|
|
25137
|
+
setCcManualCheckStatus("idle");
|
|
25138
|
+
setCcOriginChainId((network == null ? void 0 : network.isCrossChainSource) ? String(network.chainId) : "");
|
|
25139
|
+
setCcOriginToken(null);
|
|
25110
25140
|
setSelectedNetwork(network);
|
|
25111
25141
|
setSelectedToken(null);
|
|
25112
25142
|
if (network == null ? void 0 : network.isBridgeNetwork) {
|
|
@@ -25129,6 +25159,7 @@ const CoinleyPaymentInternal = ({
|
|
|
25129
25159
|
setQrCodeDataUrl("");
|
|
25130
25160
|
setQrWalletChoiceConfirmed(false);
|
|
25131
25161
|
setSelectedToken(token);
|
|
25162
|
+
setCcOriginToken((selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? token : null);
|
|
25132
25163
|
createNewAttempt("token-selected", {
|
|
25133
25164
|
snapshot: buildSelectionSnapshot(selectedNetwork, token, address, solanaWallet == null ? void 0 : solanaWallet.publicKey)
|
|
25134
25165
|
});
|
|
@@ -25152,24 +25183,38 @@ const CoinleyPaymentInternal = ({
|
|
|
25152
25183
|
return c ? c.tokens : [];
|
|
25153
25184
|
}, [ccSources, ccOriginChainId]);
|
|
25154
25185
|
const handleGenerateCrossChain = async () => {
|
|
25155
|
-
|
|
25186
|
+
var _a2, _b, _c;
|
|
25187
|
+
const originChainId = (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? selectedNetwork.chainId : ccOriginChainId;
|
|
25188
|
+
const originToken = (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? selectedToken : ccOriginToken;
|
|
25189
|
+
const originCurrency = (originToken == null ? void 0 : originToken.address) || (originToken == null ? void 0 : originToken.contractAddress) || (originToken == null ? void 0 : originToken.symbol);
|
|
25190
|
+
if (!originChainId || !originToken || !originCurrency) return;
|
|
25191
|
+
const originNetwork = (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? selectedNetwork : { id: `cross-chain-${originChainId}`, chainId: originChainId, shortName: `chain-${originChainId}` };
|
|
25192
|
+
const attempt = createNewAttempt("cross-chain-transfer", {
|
|
25193
|
+
snapshot: buildSelectionSnapshot(originNetwork, originToken, address, solanaWallet == null ? void 0 : solanaWallet.publicKey)
|
|
25194
|
+
});
|
|
25156
25195
|
setCcError(null);
|
|
25157
25196
|
setCcGenerating(true);
|
|
25197
|
+
setCcOriginChainId(String(originChainId));
|
|
25198
|
+
setCcOriginToken(originToken);
|
|
25158
25199
|
try {
|
|
25159
25200
|
const r = await paymentFlow.api.createCrossChainPayment({
|
|
25160
|
-
amount:
|
|
25161
|
-
originChainId: Number(
|
|
25162
|
-
originCurrency
|
|
25201
|
+
amount: String((config == null ? void 0 : config.amount) ?? paymentAmount),
|
|
25202
|
+
originChainId: Number(originChainId),
|
|
25203
|
+
originCurrency
|
|
25163
25204
|
});
|
|
25205
|
+
if (((_a2 = activeAttemptRef.current) == null ? void 0 : _a2.id) !== attempt.id) return;
|
|
25164
25206
|
const p = r.payment || r;
|
|
25165
25207
|
setCcResult(p);
|
|
25166
25208
|
setCcPhase("awaiting_deposit");
|
|
25167
25209
|
setCcManualCheckStatus("idle");
|
|
25168
25210
|
setCcQrCode(await QRCode.toDataURL(p.relayDepositAddress, { width: 220, margin: 1 }));
|
|
25169
25211
|
} catch (e) {
|
|
25212
|
+
if (((_b = activeAttemptRef.current) == null ? void 0 : _b.id) !== attempt.id) return;
|
|
25170
25213
|
setCcError(e.message || "Could not generate payment address");
|
|
25171
25214
|
} finally {
|
|
25172
|
-
|
|
25215
|
+
if (((_c = activeAttemptRef.current) == null ? void 0 : _c.id) === attempt.id) {
|
|
25216
|
+
setCcGenerating(false);
|
|
25217
|
+
}
|
|
25173
25218
|
}
|
|
25174
25219
|
};
|
|
25175
25220
|
const startRecoveryLoading = useCallback((action) => {
|
|
@@ -25257,11 +25302,15 @@ const CoinleyPaymentInternal = ({
|
|
|
25257
25302
|
setCcManualCheckStatus("idle");
|
|
25258
25303
|
});
|
|
25259
25304
|
}
|
|
25260
|
-
} else if (
|
|
25305
|
+
} else if (status.phase === "settled" && !ccSucceeded.current) {
|
|
25261
25306
|
finishRecoveryLoading(() => {
|
|
25262
25307
|
ccSucceeded.current = true;
|
|
25263
25308
|
onSuccess == null ? void 0 : onSuccess(status);
|
|
25264
25309
|
});
|
|
25310
|
+
} else if (status.phase === "received") {
|
|
25311
|
+
finishRecoveryLoading(() => {
|
|
25312
|
+
setCcManualCheckStatus("idle");
|
|
25313
|
+
});
|
|
25265
25314
|
} else if (status.phase === "failed") {
|
|
25266
25315
|
finishRecoveryLoading(() => {
|
|
25267
25316
|
setCcManualCheckStatus("failed");
|
|
@@ -25293,7 +25342,7 @@ const CoinleyPaymentInternal = ({
|
|
|
25293
25342
|
setCcManualCheckStatus(null);
|
|
25294
25343
|
} else if (s.phase === "bridging") {
|
|
25295
25344
|
clearUnderpaymentUiState(s.paymentId || ccResult.id);
|
|
25296
|
-
} else if (
|
|
25345
|
+
} else if (s.phase === "settled" && !ccSucceeded.current) {
|
|
25297
25346
|
ccSucceeded.current = true;
|
|
25298
25347
|
onSuccess == null ? void 0 : onSuccess(s);
|
|
25299
25348
|
}
|
|
@@ -26713,11 +26762,27 @@ const CoinleyPaymentInternal = ({
|
|
|
26713
26762
|
),
|
|
26714
26763
|
refundRequestMessage && /* @__PURE__ */ jsx("p", { className: `mt-2 text-center text-xs leading-5 ${refundRequestStatus === "error" ? "text-red-600" : "text-[#8B8E98]"}`, children: refundRequestMessage })
|
|
26715
26764
|
] });
|
|
26716
|
-
const
|
|
26765
|
+
const directTransferNetworks = networks.filter((network) => {
|
|
26717
26766
|
const chainId = parseInt(network.chainId);
|
|
26718
26767
|
const supportedChains = [8453, 56, 42161, 137, 10, 43114, 143, 59144, 534352, 130];
|
|
26719
26768
|
return supportedChains.includes(chainId);
|
|
26720
26769
|
});
|
|
26770
|
+
const directTransferChainIds = new Set(directTransferNetworks.map((network) => Number(network.chainId)));
|
|
26771
|
+
const crossChainSourceNetworks = ccSources.filter((source) => !directTransferChainIds.has(Number(source.chainId))).map((source) => {
|
|
26772
|
+
const chainId = Number(source.chainId);
|
|
26773
|
+
const knownChain = ALCHEMY_EVM_CHAINS.find((chain) => Number(chain.id) === chainId);
|
|
26774
|
+
return {
|
|
26775
|
+
id: `cross-chain-${chainId}`,
|
|
26776
|
+
name: (knownChain == null ? void 0 : knownChain.displayName) || ccChainName(chainId),
|
|
26777
|
+
shortName: (knownChain == null ? void 0 : knownChain.shortName) || `chain-${chainId}`,
|
|
26778
|
+
chainId,
|
|
26779
|
+
chainType: "evm",
|
|
26780
|
+
isCrossChainSource: true,
|
|
26781
|
+
crossChainSource: source,
|
|
26782
|
+
logo: ccChainIcon(chainId)
|
|
26783
|
+
};
|
|
26784
|
+
});
|
|
26785
|
+
const transferNetworks = [...directTransferNetworks, ...crossChainSourceNetworks];
|
|
26721
26786
|
const renderCheckoutSelect = ({ id, label, value, placeholder, disabled, onChange, options, getLabel, getIcon, compact = false, elevated = false, maxVisibleItems = 4 }) => {
|
|
26722
26787
|
const dropdownId = id || label;
|
|
26723
26788
|
const selectedOption = options.find((option) => String(option.id) === String(value));
|
|
@@ -27290,6 +27355,13 @@ const CoinleyPaymentInternal = ({
|
|
|
27290
27355
|
disabled: !ccOriginToken || ccGenerating || isConverting
|
|
27291
27356
|
});
|
|
27292
27357
|
}
|
|
27358
|
+
if (activeTab === PAYMENT_TABS.TRANSFER && (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) && selectedToken && !ccResult && !(paymentData == null ? void 0 : paymentData.depositAddress)) {
|
|
27359
|
+
return renderFooterPrimaryButton({
|
|
27360
|
+
label: ccGenerating ? "Generating Address..." : `Pay ${paymentAmountLabel}`,
|
|
27361
|
+
onClick: handleGenerateCrossChain,
|
|
27362
|
+
disabled: ccGenerating || isConverting
|
|
27363
|
+
});
|
|
27364
|
+
}
|
|
27293
27365
|
if (activeTab === PAYMENT_TABS.TRANSFER && activeTransferDepositAddress && underpaymentInfo) {
|
|
27294
27366
|
if (underpaymentView === "choice") {
|
|
27295
27367
|
return renderFooterPrimaryButton({
|
|
@@ -27320,7 +27392,7 @@ const CoinleyPaymentInternal = ({
|
|
|
27320
27392
|
return null;
|
|
27321
27393
|
}
|
|
27322
27394
|
return renderFooterPrimaryButton({
|
|
27323
|
-
label: refundRequestSubmitted ? "Refund request submitted" : "Submit
|
|
27395
|
+
label: refundRequestSubmitted ? "Refund request submitted" : "Submit Refund request",
|
|
27324
27396
|
onClick: handleRefundRequestSubmit,
|
|
27325
27397
|
disabled: !refundAddress.trim() || refundRequestStatus === "submitting" || refundRequestStatus === "pending" || refundRequestStatus === "refunded"
|
|
27326
27398
|
});
|
|
@@ -27761,7 +27833,7 @@ const CoinleyPaymentInternal = ({
|
|
|
27761
27833
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27762
27834
|
renderUnderpaymentWarning(
|
|
27763
27835
|
"Important!",
|
|
27764
|
-
|
|
27836
|
+
`Send exactly ${ccResult.amountToSendFormatted || ccResult.amountToSend} ${(ccOriginToken == null ? void 0 : ccOriginToken.symbol) || (selectedToken == null ? void 0 : selectedToken.symbol) || ccResult.originCurrency || ""} on ${ccChainName(ccResult.originChainId || ccOriginChainId)} to this wallet address. Include enough native token for network fees.`
|
|
27765
27837
|
),
|
|
27766
27838
|
ccPhase === "failed" ? /* @__PURE__ */ jsx("div", { className: "rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-center text-xs font-medium text-red-600", children: "Payment failed — please try again" }) : ccPhase === "received" || ccPhase === "settled" ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2 text-xs font-medium text-green-600", children: [
|
|
27767
27839
|
/* @__PURE__ */ jsx("span", { className: "relative inline-flex h-2 w-2 rounded-full bg-green-500" }),
|
|
@@ -27942,4 +28014,4 @@ export {
|
|
|
27942
28014
|
chainTransports as c,
|
|
27943
28015
|
isFeatureEnabled as i
|
|
27944
28016
|
};
|
|
27945
|
-
//# sourceMappingURL=CoinleyPayment-
|
|
28017
|
+
//# sourceMappingURL=CoinleyPayment-kt3eOJlB.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-
|
|
1
|
+
import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-kt3eOJlB.js";
|
|
2
2
|
const logo = "https://coinley.io/logo.png";
|
|
3
3
|
let appKitInstance = null;
|
|
4
4
|
let isInitializing = false;
|
|
@@ -113,4 +113,4 @@ export {
|
|
|
113
113
|
initializeAppKitEVM,
|
|
114
114
|
openAppKitModal
|
|
115
115
|
};
|
|
116
|
-
//# sourceMappingURL=appKitEVM-
|
|
116
|
+
//# sourceMappingURL=appKitEVM-CA1A3oZb.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FEATURES, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-
|
|
1
|
+
import { F as FEATURES, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-kt3eOJlB.js";
|
|
2
2
|
const logo = "https://coinley.io/logo.png";
|
|
3
3
|
let appKitInstance = null;
|
|
4
4
|
let isInitializing = false;
|
|
@@ -243,4 +243,4 @@ export {
|
|
|
243
243
|
disconnectWalletConnect,
|
|
244
244
|
initializeAppKitSolana
|
|
245
245
|
};
|
|
246
|
-
//# sourceMappingURL=appKitSolana-
|
|
246
|
+
//# sourceMappingURL=appKitSolana-mYWu1Cjx.js.map
|