@b3dotfun/sdk 0.0.49-alpha.0 → 0.0.49-alpha.2

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 (78) hide show
  1. package/dist/cjs/anyspend/react/components/AnySpend.d.ts +2 -1
  2. package/dist/cjs/anyspend/react/components/AnySpend.js +8 -4
  3. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +12 -3
  4. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +11 -4
  5. package/dist/cjs/anyspend/react/components/common/CryptoPaySection.d.ts +3 -1
  6. package/dist/cjs/anyspend/react/components/common/CryptoPaySection.js +2 -2
  7. package/dist/cjs/anyspend/react/components/common/CryptoReceiveSection.d.ts +3 -1
  8. package/dist/cjs/anyspend/react/components/common/CryptoReceiveSection.js +17 -11
  9. package/dist/cjs/anyspend/react/components/common/FeeBreakDown.d.ts +12 -0
  10. package/dist/cjs/anyspend/react/components/common/FeeBreakDown.js +19 -0
  11. package/dist/cjs/anyspend/react/components/common/FeeDetailPanel.d.ts +8 -0
  12. package/dist/cjs/anyspend/react/components/common/FeeDetailPanel.js +116 -0
  13. package/dist/cjs/anyspend/react/components/common/OrderDetails.d.ts +1 -0
  14. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +6 -6
  15. package/dist/cjs/anyspend/react/components/common/OrderDetailsCollapsible.d.ts +1 -0
  16. package/dist/cjs/anyspend/react/components/common/OrderDetailsCollapsible.js +2 -2
  17. package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +2 -1
  18. package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +36 -21
  19. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +2 -1
  20. package/dist/cjs/anyspend/react/components/common/PointsDetailPanel.js +1 -2
  21. package/dist/cjs/anyspend/react/hooks/useAnyspendFlow.d.ts +3 -1
  22. package/dist/cjs/anyspend/react/hooks/useAnyspendFlow.js +1 -0
  23. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +24 -0
  24. package/dist/cjs/anyspend/types/api.d.ts +119 -176
  25. package/dist/cjs/global-account/react/components/ui/tooltip.js +1 -1
  26. package/dist/esm/anyspend/react/components/AnySpend.d.ts +2 -1
  27. package/dist/esm/anyspend/react/components/AnySpend.js +8 -4
  28. package/dist/esm/anyspend/react/components/AnySpendCustom.js +14 -5
  29. package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +11 -4
  30. package/dist/esm/anyspend/react/components/common/CryptoPaySection.d.ts +3 -1
  31. package/dist/esm/anyspend/react/components/common/CryptoPaySection.js +4 -4
  32. package/dist/esm/anyspend/react/components/common/CryptoReceiveSection.d.ts +3 -1
  33. package/dist/esm/anyspend/react/components/common/CryptoReceiveSection.js +19 -13
  34. package/dist/esm/anyspend/react/components/common/FeeBreakDown.d.ts +12 -0
  35. package/dist/esm/anyspend/react/components/common/FeeBreakDown.js +16 -0
  36. package/dist/esm/anyspend/react/components/common/FeeDetailPanel.d.ts +8 -0
  37. package/dist/esm/anyspend/react/components/common/FeeDetailPanel.js +113 -0
  38. package/dist/esm/anyspend/react/components/common/OrderDetails.d.ts +1 -0
  39. package/dist/esm/anyspend/react/components/common/OrderDetails.js +6 -6
  40. package/dist/esm/anyspend/react/components/common/OrderDetailsCollapsible.d.ts +1 -0
  41. package/dist/esm/anyspend/react/components/common/OrderDetailsCollapsible.js +3 -3
  42. package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +2 -1
  43. package/dist/esm/anyspend/react/components/common/PanelOnramp.js +38 -23
  44. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +2 -1
  45. package/dist/esm/anyspend/react/components/common/PointsDetailPanel.js +2 -3
  46. package/dist/esm/anyspend/react/hooks/useAnyspendFlow.d.ts +3 -1
  47. package/dist/esm/anyspend/react/hooks/useAnyspendFlow.js +1 -0
  48. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +24 -0
  49. package/dist/esm/anyspend/types/api.d.ts +119 -176
  50. package/dist/esm/global-account/react/components/ui/tooltip.js +1 -1
  51. package/dist/styles/index.css +1 -1
  52. package/dist/types/anyspend/react/components/AnySpend.d.ts +2 -1
  53. package/dist/types/anyspend/react/components/common/CryptoPaySection.d.ts +3 -1
  54. package/dist/types/anyspend/react/components/common/CryptoReceiveSection.d.ts +3 -1
  55. package/dist/types/anyspend/react/components/common/FeeBreakDown.d.ts +12 -0
  56. package/dist/types/anyspend/react/components/common/FeeDetailPanel.d.ts +8 -0
  57. package/dist/types/anyspend/react/components/common/OrderDetails.d.ts +1 -0
  58. package/dist/types/anyspend/react/components/common/OrderDetailsCollapsible.d.ts +1 -0
  59. package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +2 -1
  60. package/dist/types/anyspend/react/hooks/useAnyspendFlow.d.ts +3 -1
  61. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +24 -0
  62. package/dist/types/anyspend/types/api.d.ts +119 -176
  63. package/package.json +1 -1
  64. package/src/anyspend/react/components/AnySpend.tsx +20 -0
  65. package/src/anyspend/react/components/AnySpendCustom.tsx +69 -7
  66. package/src/anyspend/react/components/AnyspendDepositHype.tsx +24 -0
  67. package/src/anyspend/react/components/common/CryptoPaySection.tsx +14 -2
  68. package/src/anyspend/react/components/common/CryptoReceiveSection.tsx +31 -11
  69. package/src/anyspend/react/components/common/FeeBreakDown.tsx +105 -0
  70. package/src/anyspend/react/components/common/FeeDetailPanel.tsx +334 -0
  71. package/src/anyspend/react/components/common/OrderDetails.tsx +7 -0
  72. package/src/anyspend/react/components/common/OrderDetailsCollapsible.tsx +13 -0
  73. package/src/anyspend/react/components/common/PanelOnramp.tsx +58 -27
  74. package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +18 -6
  75. package/src/anyspend/react/components/common/PointsDetailPanel.tsx +1 -13
  76. package/src/anyspend/react/hooks/useAnyspendFlow.ts +1 -0
  77. package/src/anyspend/types/api.ts +121 -176
  78. package/src/global-account/react/components/ui/tooltip.tsx +11 -9
@@ -125,7 +125,7 @@ function roundTokenAmount(amount) {
125
125
  const roundedDecimalPart = digits.join("");
126
126
  return `${wholePart}.${roundedDecimalPart}`;
127
127
  }
128
- export const OrderDetails = memo(function OrderDetails({ mode = "modal", order, depositTxs, relayTxs, executeTx, refundTxs, cryptoPaymentMethod, selectedCryptoPaymentMethod, onPaymentMethodChange, onBack, disableUrlParamManagement = false, }) {
128
+ export const OrderDetails = memo(function OrderDetails({ mode = "modal", order, depositTxs, relayTxs, executeTx, refundTxs, cryptoPaymentMethod, selectedCryptoPaymentMethod, onPaymentMethodChange, onBack, disableUrlParamManagement = false, points, }) {
129
129
  const router = useRouter();
130
130
  const searchParams = useSearchParams();
131
131
  // Get theme from B3Provider context
@@ -411,7 +411,7 @@ export const OrderDetails = memo(function OrderDetails({ mode = "modal", order,
411
411
  }
412
412
  };
413
413
  if (refundTxs.length > 0) {
414
- return (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: order, selectedCryptoPaymentMethod: effectiveCryptoPaymentMethod }), _jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount }), _jsx(Accordion, { type: "single", collapsible: true, className: "order-details-accordion w-full", children: _jsxs(AccordionItem, { value: "refund-details", className: "order-details-refund-item", children: [_jsx(AccordionTrigger, { className: "accordion-trigger", children: "Transaction Details" }), _jsx(AccordionContent, { className: "accordion-content pl-2", children: _jsxs("div", { className: "relative flex w-full flex-col gap-4", children: [_jsx("div", { className: "bg-as-surface-secondary absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "bg-as-border-primary absolute left-[2px] top-0 z-10 w-[3px]", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1.5, ease: "easeInOut" } }) }), depositTxs
414
+ return (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: order, selectedCryptoPaymentMethod: effectiveCryptoPaymentMethod }), _jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount, points: points }), _jsx(Accordion, { type: "single", collapsible: true, className: "order-details-accordion w-full", children: _jsxs(AccordionItem, { value: "refund-details", className: "order-details-refund-item", children: [_jsx(AccordionTrigger, { className: "accordion-trigger", children: "Transaction Details" }), _jsx(AccordionContent, { className: "accordion-content pl-2", children: _jsxs("div", { className: "relative flex w-full flex-col gap-4", children: [_jsx("div", { className: "bg-as-surface-secondary absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "bg-as-border-primary absolute left-[2px] top-0 z-10 w-[3px]", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1.5, ease: "easeInOut" } }) }), depositTxs
415
415
  ? depositTxs.map(dTx => (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === "stripe-web2"
416
416
  ? `Received payment`
417
417
  : `Received ${formatTokenAmount(BigInt(dTx.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTx, isProcessing: false }, dTx.txHash)))
@@ -420,7 +420,7 @@ export const OrderDetails = memo(function OrderDetails({ mode = "modal", order,
420
420
  : null] }) })] }) }), order.errorDetails && (_jsx("div", { className: "flex justify-center", children: _jsx("span", { className: "text-as-primary/50 text-center text-sm", style: { maxWidth: "40ch" }, children: getErrorDisplay(order.errorDetails) }) })), _jsx("button", { className: "order-close-button order-details-close-btn bg-as-brand flex w-full items-center justify-center gap-2 rounded-lg p-2 font-semibold text-white", onClick: mode === "page" ? handleBack : handleCloseModal, children: mode === "page" ? (_jsxs(_Fragment, { children: ["Return to Home ", _jsx(Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") })] }));
421
421
  }
422
422
  if (executeTx) {
423
- return (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: order, selectedCryptoPaymentMethod: effectiveCryptoPaymentMethod }), _jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount }), _jsx(Accordion, { type: "single", collapsible: true, className: "order-details-accordion w-full", children: _jsxs(AccordionItem, { value: "execute-details", className: "order-details-execute-item", children: [_jsx(AccordionTrigger, { className: "accordion-trigger", children: "Transaction Details" }), _jsx(AccordionContent, { className: "accordion-content pl-2", children: _jsxs("div", { className: "relative flex w-full flex-col gap-4", children: [_jsx("div", { className: "bg-as-surface-secondary absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "bg-as-border-primary absolute left-[2px] top-0 z-10 w-[3px]", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1.5, ease: "easeInOut" } }) }), depositTxs
423
+ return (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: order, selectedCryptoPaymentMethod: effectiveCryptoPaymentMethod }), _jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount, points: points }), _jsx(Accordion, { type: "single", collapsible: true, className: "order-details-accordion w-full", children: _jsxs(AccordionItem, { value: "execute-details", className: "order-details-execute-item", children: [_jsx(AccordionTrigger, { className: "accordion-trigger", children: "Transaction Details" }), _jsx(AccordionContent, { className: "accordion-content pl-2", children: _jsxs("div", { className: "relative flex w-full flex-col gap-4", children: [_jsx("div", { className: "bg-as-surface-secondary absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "bg-as-border-primary absolute left-[2px] top-0 z-10 w-[3px]", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1.5, ease: "easeInOut" } }) }), depositTxs
424
424
  ? depositTxs.map(dTxs => (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === "stripe-web2"
425
425
  ? `Received payment`
426
426
  : `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
@@ -445,7 +445,7 @@ export const OrderDetails = memo(function OrderDetails({ mode = "modal", order,
445
445
  }), _jsx(ExternalLink, { className: "ml-2 h-4 w-4" })] }) }) }), order.type === "join_tournament" && order.status === "executed" && (_jsxs(ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-full items-center gap-2", disabled: txLoading || isSwitchingOrExecuting, onClick: handleCloseModal, children: [_jsx("span", { className: "pl-4", children: "Continue to Tournament" }), _jsx(ChevronRight, { className: "h-4 w-4" })] })), order.status === "executed" && (_jsx("button", { className: "order-close-button order-details-close-btn bg-as-brand flex w-full items-center justify-center gap-2 rounded-lg p-2 font-semibold text-white", onClick: mode === "page" ? handleBack : handleCloseModal, children: mode === "page" ? (_jsxs(_Fragment, { children: ["Return to Home ", _jsx(Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") }))] }));
446
446
  }
447
447
  if (relayTxs.length > 0 && relayTxs.every(tx => tx.status === "success")) {
448
- return (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: order, selectedCryptoPaymentMethod: effectiveCryptoPaymentMethod }), _jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount }), _jsx(Accordion, { type: "single", collapsible: true, className: "order-details-accordion w-full", children: _jsxs(AccordionItem, { value: "more-details", className: "order-details-more-item", children: [_jsx(AccordionTrigger, { className: "accordion-trigger", children: "More Details" }), _jsx(AccordionContent, { className: "accordion-content pl-2", children: _jsxs("div", { className: "relative flex w-full flex-col gap-4", children: [_jsx("div", { className: "bg-as-surface-secondary absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "bg-as-border-primary absolute left-[2px] top-0 z-10 w-[3px]", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1.5, ease: "easeInOut" } }) }), depositTxs
448
+ return (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: order, selectedCryptoPaymentMethod: effectiveCryptoPaymentMethod }), _jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount, points: points }), _jsx(Accordion, { type: "single", collapsible: true, className: "order-details-accordion w-full", children: _jsxs(AccordionItem, { value: "more-details", className: "order-details-more-item", children: [_jsx(AccordionTrigger, { className: "accordion-trigger", children: "More Details" }), _jsx(AccordionContent, { className: "accordion-content pl-2", children: _jsxs("div", { className: "relative flex w-full flex-col gap-4", children: [_jsx("div", { className: "bg-as-surface-secondary absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "bg-as-border-primary absolute left-[2px] top-0 z-10 w-[3px]", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1.5, ease: "easeInOut" } }) }), depositTxs
449
449
  ? depositTxs.map(dTxs => (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === "stripe-web2"
450
450
  ? `Received payment`
451
451
  : `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
@@ -464,7 +464,7 @@ export const OrderDetails = memo(function OrderDetails({ mode = "modal", order,
464
464
  // This boolean indicates that user finish payment, and waiting for the deposit to be confirmed. We get this from query params (waitingForDeposit=true)
465
465
  const waitingForDeposit = new URLSearchParams(window.location.search).get("waitingForDeposit") === "true";
466
466
  if (depositTxs?.length || waitingForDeposit) {
467
- return (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: order, selectedCryptoPaymentMethod: effectiveCryptoPaymentMethod }), _jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount }), _jsx(Accordion, { type: "single", collapsible: true, className: "order-details-accordion w-full", children: _jsxs(AccordionItem, { value: "deposit-details", className: "order-details-deposit-item", children: [_jsx(AccordionTrigger, { className: "accordion-trigger", children: "Transaction Details" }), _jsx(AccordionContent, { className: "accordion-content pl-2", children: _jsxs("div", { className: "relative flex w-full flex-col gap-6", children: [_jsx("div", { className: "bg-as-surface-secondary absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "from-as-brand/50 absolute left-[2px] top-0 z-10 w-[3px] bg-gradient-to-b from-20% via-purple-500/50 via-80% to-transparent", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1, ease: "easeInOut" } }) }), (depositTxs || []).map((dTxs, index) => (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === "stripe-web2"
467
+ return (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: order, selectedCryptoPaymentMethod: effectiveCryptoPaymentMethod }), _jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount, points: points }), _jsx(Accordion, { type: "single", collapsible: true, className: "order-details-accordion w-full", children: _jsxs(AccordionItem, { value: "deposit-details", className: "order-details-deposit-item", children: [_jsx(AccordionTrigger, { className: "accordion-trigger", children: "Transaction Details" }), _jsx(AccordionContent, { className: "accordion-content pl-2", children: _jsxs("div", { className: "relative flex w-full flex-col gap-6", children: [_jsx("div", { className: "bg-as-surface-secondary absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "from-as-brand/50 absolute left-[2px] top-0 z-10 w-[3px] bg-gradient-to-b from-20% via-purple-500/50 via-80% to-transparent", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1, ease: "easeInOut" } }) }), (depositTxs || []).map((dTxs, index) => (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === "stripe-web2"
468
468
  ? `Received payment`
469
469
  : `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: index < (depositTxs || []).length - 1 ? false : !depositEnoughAmount }, dTxs.txHash))), statusDisplay === "failure" ? (_jsx(TransactionDetails, { title: statusText, chainId: order.srcChain, tx: null, isProcessing: false, delay: 0.5 })) : depositEnoughAmount ? (_jsx(TransactionDetails, { title: order.type === "swap"
470
470
  ? "Processing Swap"
@@ -491,7 +491,7 @@ export const OrderDetails = memo(function OrderDetails({ mode = "modal", order,
491
491
  ? centerTruncate(phantomWalletAddress, 6)
492
492
  : centerTruncate(account?.address || "", 6)] })] }), _jsxs("div", { className: "flex w-full flex-col items-center gap-2", children: [_jsxs(ShinyButton, { accentColor: colorMode === "dark" ? "#ffffff" : "#000000", className: "flex w-5/6 items-center gap-2 sm:px-0", onClick: () => setShowQRCode(true), children: [_jsx("span", { className: "pl-4 text-lg md:text-sm", children: "Pay from a different wallet" }), _jsx(ChevronRight, { className: "h-4 w-4" })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(WalletMetamask, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletCoinbase, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletPhantom, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletTrust, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletWalletConnect, { className: "h-5 w-5", variant: "branded" }), _jsx("span", { className: "label-style text-as-primary/30 text-xs", children: "& more" })] })] })] }) })) : (
493
493
  // Default case - existing QR code flow
494
- _jsx(motion.div, { initial: { opacity: 0, filter: "blur(10px)" }, animate: { opacity: 1, filter: "blur(0px)" }, transition: { duration: 0.5, ease: "easeInOut" }, className: "flex w-full items-center justify-evenly gap-4", children: _jsxs("div", { className: "order-details-qr-container mt-8 flex flex-col items-center rounded-lg bg-white p-6 pb-3", children: [_jsx(QRCodeSVG, { value: getPaymentUrl(order.globalAddress, BigInt(order.srcAmount), order.srcTokenAddress === RELAY_ETH_ADDRESS ? srcToken?.symbol || "ETH" : order.srcTokenAddress, order.srcChain, srcToken?.decimals), className: "order-details-qr-code max-w-[200px]" }), _jsxs("div", { className: "order-details-qr-wallets mt-3 flex items-center justify-center gap-2 text-sm", children: [_jsx("span", { className: "label-style text-as-brand/70 text-sm", children: "Scan with" }), _jsxs(TextLoop, { interval: 3, children: [_jsx(WalletMetamask, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletCoinbase, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletPhantom, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletTrust, { className: "h-5 w-5", variant: "branded" })] })] })] }) }))] })) })), _jsxs("div", { className: "order-details-time-remaining flex w-full items-center justify-center gap-1 text-sm", children: [_jsx("div", { className: "text-as-primary/30 order-details-time-label", children: "Time remaining:" }), _jsx("div", { className: "text-as-primary order-details-time-value", children: depositEnoughAmount ? ("Received") : order.status === "expired" ? ("Expired") : (_jsx(TimeAgo, { date: new Date(order.expiredAt), live: true })) })] }), statusDisplay !== "processing" && (_jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount })), _jsxs("button", { className: "order-details-cancel-btn flex w-full items-center justify-center gap-2", onClick: handleBack, children: [_jsx(RefreshCcw, { className: "ml-2 h-4 w-4" }), " Cancel and start over"] })] }));
494
+ _jsx(motion.div, { initial: { opacity: 0, filter: "blur(10px)" }, animate: { opacity: 1, filter: "blur(0px)" }, transition: { duration: 0.5, ease: "easeInOut" }, className: "flex w-full items-center justify-evenly gap-4", children: _jsxs("div", { className: "order-details-qr-container mt-8 flex flex-col items-center rounded-lg bg-white p-6 pb-3", children: [_jsx(QRCodeSVG, { value: getPaymentUrl(order.globalAddress, BigInt(order.srcAmount), order.srcTokenAddress === RELAY_ETH_ADDRESS ? srcToken?.symbol || "ETH" : order.srcTokenAddress, order.srcChain, srcToken?.decimals), className: "order-details-qr-code max-w-[200px]" }), _jsxs("div", { className: "order-details-qr-wallets mt-3 flex items-center justify-center gap-2 text-sm", children: [_jsx("span", { className: "label-style text-as-brand/70 text-sm", children: "Scan with" }), _jsxs(TextLoop, { interval: 3, children: [_jsx(WalletMetamask, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletCoinbase, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletPhantom, { className: "h-5 w-5", variant: "branded" }), _jsx(WalletTrust, { className: "h-5 w-5", variant: "branded" })] })] })] }) }))] })) })), _jsxs("div", { className: "order-details-time-remaining flex w-full items-center justify-center gap-1 text-sm", children: [_jsx("div", { className: "text-as-primary/30 order-details-time-label", children: "Time remaining:" }), _jsx("div", { className: "text-as-primary order-details-time-value", children: depositEnoughAmount ? ("Received") : order.status === "expired" ? ("Expired") : (_jsx(TimeAgo, { date: new Date(order.expiredAt), live: true })) })] }), statusDisplay !== "processing" && (_jsx(OrderDetailsCollapsible, { order: order, dstToken: dstToken, tournament: tournament, nft: nft, recipientName: recipientName, formattedExpectedDstAmount: formattedExpectedDstAmount, points: points })), _jsxs("button", { className: "order-details-cancel-btn flex w-full items-center justify-center gap-2", onClick: handleBack, children: [_jsx(RefreshCcw, { className: "ml-2 h-4 w-4" }), " Cancel and start over"] })] }));
495
495
  });
496
496
  function TransactionDetails({ title, chainId, tx, isProcessing, delay, }) {
497
497
  return (_jsxs("div", { className: "order-details-transaction-item relative flex w-full flex-1 items-center justify-between gap-4", children: [_jsxs("div", { className: "order-details-transaction-content flex grow items-center gap-4", children: [_jsx(motion.div, { className: "bg-as-surface-secondary relative h-10 w-10 rounded-full", children: isProcessing ? (_jsx(motion.div, { initial: { opacity: 0, scale: 0.3 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.5, ease: "easeInOut", delay }, className: "border-as-border-secondary absolute z-10 m-2 flex h-6 w-6 items-center justify-center rounded-full border-2 shadow-lg backdrop-blur-sm", children: _jsx(Loader2, { className: "text-as-primary h-4 w-4 animate-spin" }) })) : (_jsx(motion.div, { initial: { opacity: 0, scale: 0.3 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.5, ease: "easeOut", delay }, className: "bg-as-success-secondary absolute z-10 m-2 flex h-6 w-6 items-center justify-center rounded-full border border-white/30 shadow-lg backdrop-blur-sm", children: _jsx(CheckIcon, { className: "text-as-content-icon-success h-4 w-4" }) })) }), _jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 0.3, ease: "easeInOut", delay }, className: "shrink-0 text-base", children: isProcessing ? (_jsx(TextShimmer, { duration: 1, children: title })) : (_jsx("span", { className: "text-as-primary", children: title })) })] }), _jsx("div", { className: "flex flex-col gap-1", children: tx ? (_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 0.3, ease: "easeInOut", delay: (delay || 0) + 0.3 }, className: "flex items-center gap-3", children: _jsx("a", { href: getExplorerTxUrl(chainId, tx.txHash), target: "_blank", children: _jsx("div", { className: "text-as-primary/30 font-mono text-xs", children: centerTruncate(tx?.txHash, 6) }) }) })) : null })] }));
@@ -13,6 +13,7 @@ interface OrderDetailsCollapsibleProps {
13
13
  className?: string;
14
14
  showTotal?: boolean;
15
15
  totalAmount?: string;
16
+ points?: number;
16
17
  }
17
18
  export declare const OrderDetailsCollapsible: import("react").NamedExoticComponent<OrderDetailsCollapsibleProps>;
18
19
  export {};
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { ALL_CHAINS, capitalizeFirstLetter, getChainName } from "../../../../anyspend/index.js";
4
4
  import { CopyToClipboard } from "../../../../global-account/react/index.js";
5
5
  import { cn } from "../../../../shared/utils/index.js";
@@ -10,7 +10,7 @@ import { motion } from "motion/react";
10
10
  import { memo, useState } from "react";
11
11
  import { toast } from "sonner";
12
12
  import { b3 } from "viem/chains";
13
- export const OrderDetailsCollapsible = memo(function OrderDetailsCollapsible({ order, dstToken, tournament, nft, recipientName, formattedExpectedDstAmount, className, showTotal = false, totalAmount, }) {
13
+ export const OrderDetailsCollapsible = memo(function OrderDetailsCollapsible({ order, dstToken, tournament, nft, recipientName, formattedExpectedDstAmount, className, showTotal = false, totalAmount, points, }) {
14
14
  const [showOrderDetails, setShowOrderDetails] = useState(true);
15
15
  // Calculate expected amount if not provided
16
16
  const expectedDstAmount = order.type === "mint_nft" ||
@@ -33,5 +33,5 @@ export const OrderDetailsCollapsible = memo(function OrderDetailsCollapsible({ o
33
33
  ? order.metadata.action
34
34
  ? capitalizeFirstLetter(order.metadata.action)
35
35
  : "Contract execution"
36
- : "" }), _jsxs("div", { className: "order-details-expected-value flex items-end gap-2", children: [order.type === "swap" ? (`~${finalFormattedExpectedDstAmount} ${dstToken.symbol}`) : order.type === "mint_nft" ? (_jsxs("div", { className: "order-details-nft-info flex items-center gap-2", children: [_jsx("img", { src: nft?.imageUrl, alt: nft?.name || "NFT", className: "order-details-nft-image h-5 w-5" }), _jsx("div", { className: "order-details-nft-name", children: nft?.name || "NFT" })] })) : order.type === "join_tournament" || order.type === "fund_tournament" ? (_jsxs("div", { className: "order-details-tournament-info flex items-center gap-2", children: [_jsx("img", { src: tournament?.imageUrl, alt: tournament?.name || "Tournament", className: "order-details-tournament-image h-5 w-5" }), _jsx("div", { className: "order-details-tournament-name", children: tournament?.name || "Tournament" })] })) : order.type === "hype_duel" ? (_jsx("div", { className: "order-details-hype-info flex items-center gap-2", children: _jsxs("div", { className: "order-details-hype-amount", children: [formatTokenAmount(BigInt(order.payload.expectedDstAmount), dstToken.decimals), " HYPE"] }) })) : null, _jsxs("div", { className: "order-details-chain-info text-as-primary/50 flex items-center gap-2", children: [_jsxs("span", { className: "order-details-chain-text", children: ["on ", order.dstChain !== b3.id && getChainName(order.dstChain)] }), _jsx("img", { src: ALL_CHAINS[order.dstChain].logoUrl, alt: getChainName(order.dstChain), className: cn("order-details-chain-logo h-3", order.dstChain !== b3.id && "w-3 rounded-full", order.dstChain === b3.id && "h-4") })] })] })] }), _jsx("div", { className: "order-details-divider divider w-full" }), _jsxs("div", { className: "order-details-id-total-section flex w-full justify-between gap-4", children: [_jsx("div", { className: "order-details-id-total-label text-as-tertiarry", children: showTotal ? "Total (included fee)" : "Order ID" }), _jsx("div", { className: "order-details-id-total-value text-as-primary overflow-hidden text-ellipsis whitespace-nowrap", children: showTotal && totalAmount ? totalAmount : order.id })] })] }) })) : (_jsxs("div", { className: "order-details-collapsed flex w-full items-center", children: [_jsx("div", { className: "order-details-collapsed-divider divider w-full" }), _jsx("button", { className: "order-details-collapsed-button whitespace-nowrap text-sm", onClick: () => setShowOrderDetails(true), children: "Order Details" }), _jsx(ChevronDown, { className: "order-details-collapsed-chevron text-as-primary mx-1 h-4 min-h-4 w-4 min-w-4" }), _jsx("div", { className: "order-details-collapsed-divider divider w-full" })] })) }));
36
+ : "" }), _jsxs("div", { className: "order-details-expected-value flex items-end gap-2", children: [order.type === "swap" ? (`~${finalFormattedExpectedDstAmount} ${dstToken.symbol}`) : order.type === "mint_nft" ? (_jsxs("div", { className: "order-details-nft-info flex items-center gap-2", children: [_jsx("img", { src: nft?.imageUrl, alt: nft?.name || "NFT", className: "order-details-nft-image h-5 w-5" }), _jsx("div", { className: "order-details-nft-name", children: nft?.name || "NFT" })] })) : order.type === "join_tournament" || order.type === "fund_tournament" ? (_jsxs("div", { className: "order-details-tournament-info flex items-center gap-2", children: [_jsx("img", { src: tournament?.imageUrl, alt: tournament?.name || "Tournament", className: "order-details-tournament-image h-5 w-5" }), _jsx("div", { className: "order-details-tournament-name", children: tournament?.name || "Tournament" })] })) : order.type === "hype_duel" ? (_jsx("div", { className: "order-details-hype-info flex items-center gap-2", children: _jsxs("div", { className: "order-details-hype-amount", children: [formatTokenAmount(BigInt(order.payload.expectedDstAmount), dstToken.decimals), " HYPE"] }) })) : null, _jsxs("div", { className: "order-details-chain-info text-as-primary/50 flex items-center gap-2", children: [_jsxs("span", { className: "order-details-chain-text", children: ["on ", order.dstChain !== b3.id && getChainName(order.dstChain)] }), _jsx("img", { src: ALL_CHAINS[order.dstChain].logoUrl, alt: getChainName(order.dstChain), className: cn("order-details-chain-logo h-3", order.dstChain !== b3.id && "w-3 rounded-full", order.dstChain === b3.id && "h-4") })] })] })] }), points && points > 0 && (_jsxs(_Fragment, { children: [_jsx("div", { className: "order-details-divider divider w-full" }), _jsxs("div", { className: "order-details-points-section flex w-full justify-between gap-4", children: [_jsx("div", { className: "order-details-points-label text-as-tertiarry", children: "Points" }), _jsxs("div", { className: "order-details-points-value text-as-brand font-semibold", children: ["+", points, " pts"] })] })] })), _jsx("div", { className: "order-details-divider divider w-full" }), _jsxs("div", { className: "order-details-id-total-section flex w-full justify-between gap-4", children: [_jsx("div", { className: "order-details-id-total-label text-as-tertiarry", children: showTotal ? "Total (included fee)" : "Order ID" }), _jsx("div", { className: "order-details-id-total-value text-as-primary overflow-hidden text-ellipsis whitespace-nowrap", children: showTotal && totalAmount ? totalAmount : order.id })] })] }) })) : (_jsxs("div", { className: "order-details-collapsed flex w-full items-center", children: [_jsx("div", { className: "order-details-collapsed-divider divider w-full" }), _jsx("button", { className: "order-details-collapsed-button whitespace-nowrap text-sm", onClick: () => setShowOrderDetails(true), children: "Order Details" }), _jsx(ChevronDown, { className: "order-details-collapsed-chevron text-as-primary mx-1 h-4 min-h-4 w-4 min-w-4" }), _jsx("div", { className: "order-details-collapsed-divider divider w-full" })] })) }));
37
37
  });
@@ -1,7 +1,7 @@
1
1
  import { components } from "../../../../anyspend/types/api";
2
2
  import { GetQuoteResponse } from "../../../../anyspend/types/api_req_res";
3
3
  import { FiatPaymentMethod } from "./FiatPaymentMethod";
4
- export declare function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, selectedPaymentMethod, setActivePanel, _recipientAddress, destinationToken, destinationChainId, destinationAmount, onDestinationTokenChange, onDestinationChainChange, fiatPaymentMethodIndex, recipientSelectionPanelIndex, dstTokenSymbol, hideDstToken, anyspendQuote, onShowPointsDetail, customUsdInputValues, }: {
4
+ export declare function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, selectedPaymentMethod, setActivePanel, _recipientAddress, destinationToken, destinationChainId, destinationAmount, onDestinationTokenChange, onDestinationChainChange, fiatPaymentMethodIndex, recipientSelectionPanelIndex, dstTokenSymbol, hideDstToken, anyspendQuote, onShowPointsDetail, onShowFeeDetail, customUsdInputValues, }: {
5
5
  srcAmountOnRamp: string;
6
6
  setSrcAmountOnRamp: (amount: string) => void;
7
7
  selectedPaymentMethod?: FiatPaymentMethod;
@@ -18,5 +18,6 @@ export declare function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, selec
18
18
  hideDstToken?: boolean;
19
19
  anyspendQuote?: GetQuoteResponse;
20
20
  onShowPointsDetail?: () => void;
21
+ onShowFeeDetail?: () => void;
21
22
  customUsdInputValues?: string[];
22
23
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,44 +1,48 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useCoinbaseOnrampOptions, useGeoOnrampOptions } from "../../../../anyspend/react/index.js";
2
+ import { useCoinbaseOnrampOptions } from "../../../../anyspend/react/index.js";
3
3
  import { ALL_CHAINS } from "../../../../anyspend/utils/chain.js";
4
4
  import { Input, useGetGeo, useProfile } from "../../../../global-account/react/index.js";
5
5
  import { cn, formatUsername } from "../../../../shared/utils/index.js";
6
6
  import { formatAddress } from "../../../../shared/utils/formatAddress.js";
7
- import { ChevronRight, Wallet } from "lucide-react";
7
+ import { ChevronRight, Info, Wallet } from "lucide-react";
8
8
  import { useRef } from "react";
9
9
  import { toast } from "sonner";
10
10
  import { useFeatureFlags } from "../../contexts/FeatureFlagsContext.js";
11
11
  import { FiatPaymentMethod } from "./FiatPaymentMethod.js";
12
12
  import { OrderTokenAmountFiat } from "./OrderTokenAmountFiat.js";
13
13
  import { PointsBadge } from "./PointsBadge.js";
14
- export function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, selectedPaymentMethod, setActivePanel, _recipientAddress, destinationToken, destinationChainId, destinationAmount, onDestinationTokenChange, onDestinationChainChange, fiatPaymentMethodIndex, recipientSelectionPanelIndex, dstTokenSymbol, hideDstToken = false, anyspendQuote, onShowPointsDetail, customUsdInputValues = ["5", "10", "20", "25"], }) {
14
+ export function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, selectedPaymentMethod, setActivePanel, _recipientAddress, destinationToken, destinationChainId, destinationAmount, onDestinationTokenChange, onDestinationChainChange, fiatPaymentMethodIndex, recipientSelectionPanelIndex, dstTokenSymbol, hideDstToken = false, anyspendQuote, onShowPointsDetail, onShowFeeDetail, customUsdInputValues = ["5", "10", "20", "25"], }) {
15
15
  const featureFlags = useFeatureFlags();
16
- // Get geo-based onramp options to access fee information
17
- const { stripeWeb2Support } = useGeoOnrampOptions(srcAmountOnRamp);
18
- // Helper function to get fees from API data
16
+ // Helper function to get fees from anyspend quote
19
17
  const getFeeFromApi = (paymentMethod) => {
18
+ // Try to get fee from anyspend quote first (most accurate)
19
+ if (anyspendQuote?.data?.fee) {
20
+ const fee = anyspendQuote.data.fee;
21
+ if (fee.type === "stripeweb2_fee") {
22
+ // Calculate total fee in USD from originalAmount - finalAmount
23
+ const originalAmount = Number(fee.originalAmount) / 1e6; // Convert from wei to USD
24
+ const finalAmount = Number(fee.finalAmount) / 1e6;
25
+ return originalAmount - finalAmount;
26
+ }
27
+ }
28
+ // Fallback to payment method defaults
20
29
  switch (paymentMethod) {
21
30
  case FiatPaymentMethod.COINBASE_PAY:
22
- // Coinbase doesn't provide fee info in API, return 0
23
- return 0;
31
+ return 0; // Coinbase has no additional fees
24
32
  case FiatPaymentMethod.STRIPE:
25
- // Get fee from Stripe API response
26
- if (stripeWeb2Support && "formattedFeeUsd" in stripeWeb2Support) {
27
- return parseFloat(stripeWeb2Support.formattedFeeUsd) || 0;
28
- }
29
- return null;
33
+ return null; // No quote available yet
30
34
  default:
31
- return null; // No fee when no payment method selected
35
+ return null;
32
36
  }
33
37
  };
34
38
  // Helper function to get total amount from API (for Stripe) or calculate it (for others)
35
39
  const getTotalAmount = (paymentMethod) => {
36
40
  const baseAmount = parseFloat(srcAmountOnRamp) || 5;
37
- const fee = getFeeFromApi(paymentMethod);
38
- if (paymentMethod === FiatPaymentMethod.STRIPE && stripeWeb2Support && "formattedTotalUsd" in stripeWeb2Support) {
39
- // Use the total from Stripe API if available
40
- return parseFloat(stripeWeb2Support.formattedTotalUsd) || baseAmount;
41
+ // Try to get from anyspend quote first (most accurate)
42
+ if (anyspendQuote?.data?.fee?.type === "stripeweb2_fee") {
43
+ return Number(anyspendQuote.data.fee.originalAmount) / 1e6; // Convert from wei to USD
41
44
  }
45
+ const fee = getFeeFromApi(paymentMethod);
42
46
  // For Coinbase or when fee is available, calculate manually
43
47
  if (fee !== null) {
44
48
  return baseAmount + fee;
@@ -75,10 +79,21 @@ export function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, selectedPayme
75
79
  .filter(v => !isNaN(Number(v)))
76
80
  .map(value => (_jsxs("button", { onClick: () => handleQuickAmount(value), className: `bg-as-surface-secondary border-as-border-secondary hover:border-as-border-secondary h-7 w-14 rounded-lg border text-sm font-medium transition-all duration-200 ${srcAmountOnRamp === value
77
81
  ? "border-as-border-secondary bg-as-surface-secondary"
78
- : "bg-as-surface-secondary hover:bg-as-surface-secondary"}`, children: ["$", value] }, value))) }), destinationToken && destinationChainId && !hideDstToken && (_jsx(OrderTokenAmountFiat, { address: _recipientAddress, context: "to", inputValue: destinationAmount || "0", onChangeInput: () => { }, chainId: destinationChainId, setChainId: onDestinationChainChange || (() => { }), token: destinationToken, setToken: onDestinationTokenChange || (() => { }) }))] }), _jsxs("div", { className: "border-as-border-secondary bg-as-surface-secondary mt-4 flex w-full flex-col gap-3 rounded-xl border p-4", children: [_jsxs("div", { className: "flex w-full items-center justify-between gap-2", children: [_jsx("span", { className: "text-as-tertiarry flex items-center text-sm", children: "Recipient" }), _recipientAddress ? (_jsxs("button", { className: "text-as-tertiarry flex h-7 items-center gap-1 text-sm transition-colors hover:text-blue-700", onClick: () => setActivePanel(recipientSelectionPanelIndex), children: [_jsx("span", { className: "text-sm", children: recipientName ? formatUsername(recipientName) : formatAddress(_recipientAddress) }), _jsx(ChevronRight, { size: 16 })] })) : (_jsxs("button", { className: "text-as-tertiarry flex h-7 items-center gap-1 text-sm transition-colors hover:text-blue-700", onClick: () => setActivePanel(5), children: [_jsx(Wallet, { className: "text-as-brand", size: 16 }), "Select recipient", _jsx(ChevronRight, { size: 16 })] }))] }), _jsx("div", { className: "divider w-full" }), _jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-as-tertiarry text-sm", children: "Expected to receive" }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("span", { className: "text-as-primary font-semibold", children: [destinationAmount || "0", " ", dstTokenSymbol || destinationToken?.symbol || ""] }), _jsxs("span", { className: "text-as-tertiarry text-sm", children: ["on ", destinationChainId ? ALL_CHAINS[destinationChainId]?.name : ""] }), destinationToken && destinationChainId && destinationToken.metadata?.logoURI && (_jsx("img", { src: ALL_CHAINS[destinationChainId]?.logoUrl, alt: "Chain", className: "h-4 w-4 rounded-full" }))] })] }), _jsx("div", { className: "divider w-full" }), _jsx("div", { className: "", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-as-tertiarry text-sm", children: (() => {
79
- const fee = getFeeFromApi(selectedPaymentMethod || FiatPaymentMethod.NONE);
80
- return fee !== null ? `Total (included $${fee.toFixed(2)} fee)` : "Total";
81
- })() }), featureFlags.showPoints &&
82
+ : "bg-as-surface-secondary hover:bg-as-surface-secondary"}`, children: ["$", value] }, value))) }), destinationToken && destinationChainId && !hideDstToken && (_jsx(OrderTokenAmountFiat, { address: _recipientAddress, context: "to", inputValue: destinationAmount || "0", onChangeInput: () => { }, chainId: destinationChainId, setChainId: onDestinationChainChange || (() => { }), token: destinationToken, setToken: onDestinationTokenChange || (() => { }) }))] }), _jsxs("div", { className: "border-as-border-secondary bg-as-surface-secondary mt-4 flex w-full flex-col gap-3 rounded-xl border p-4", children: [_jsxs("div", { className: "flex w-full items-center justify-between gap-2", children: [_jsx("span", { className: "text-as-tertiarry flex items-center text-sm", children: "Recipient" }), _recipientAddress ? (_jsxs("button", { className: "text-as-tertiarry flex h-7 items-center gap-1 text-sm transition-colors hover:text-blue-700", onClick: () => setActivePanel(recipientSelectionPanelIndex), children: [_jsx("span", { className: "text-sm", children: recipientName ? formatUsername(recipientName) : formatAddress(_recipientAddress) }), _jsx(ChevronRight, { size: 16 })] })) : (_jsxs("button", { className: "text-as-tertiarry flex h-7 items-center gap-1 text-sm transition-colors hover:text-blue-700", onClick: () => setActivePanel(5), children: [_jsx(Wallet, { className: "text-as-brand", size: 16 }), "Select recipient", _jsx(ChevronRight, { size: 16 })] }))] }), _jsx("div", { className: "divider w-full" }), _jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-as-tertiarry text-sm", children: "Expected to receive" }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("span", { className: "text-as-primary font-semibold", children: [destinationAmount || "0", " ", dstTokenSymbol || destinationToken?.symbol || ""] }), _jsxs("span", { className: "text-as-tertiarry text-sm", children: ["on ", destinationChainId ? ALL_CHAINS[destinationChainId]?.name : ""] }), destinationToken && destinationChainId && destinationToken.metadata?.logoURI && (_jsx("img", { src: ALL_CHAINS[destinationChainId]?.logoUrl, alt: "Chain", className: "h-4 w-4 rounded-full" }))] })] }), _jsx("div", { className: "divider w-full" }), _jsx("div", { className: "", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx("span", { className: "text-as-tertiarry text-sm", children: "Total" }), anyspendQuote?.data?.fee && onShowFeeDetail && (_jsx("button", { onClick: onShowFeeDetail, className: "text-as-primary/40 hover:text-as-primary/60 transition-colors", children: _jsx(Info, { className: "h-4 w-4" }) })), featureFlags.showPoints &&
82
83
  anyspendQuote?.data?.pointsAmount &&
83
- anyspendQuote?.data?.pointsAmount > 0 && (_jsx(PointsBadge, { pointsAmount: anyspendQuote.data.pointsAmount, pointsMultiplier: anyspendQuote.data.pointsMultiplier, onClick: () => onShowPointsDetail?.() }))] }), _jsxs("span", { className: "text-as-primary font-semibold", children: ["$", getTotalAmount(selectedPaymentMethod || FiatPaymentMethod.NONE).toFixed(2)] })] }) })] })] }));
84
+ anyspendQuote?.data?.pointsAmount > 0 && (_jsx(PointsBadge, { pointsAmount: anyspendQuote.data.pointsAmount, pointsMultiplier: anyspendQuote.data.pointsMultiplier, onClick: () => onShowPointsDetail?.() }))] }), _jsxs("div", { className: "flex flex-col items-end gap-0.5", children: [_jsxs("span", { className: "text-as-primary font-semibold", children: ["$", getTotalAmount(selectedPaymentMethod || FiatPaymentMethod.NONE).toFixed(2)] }), (() => {
85
+ // For fiat payments, show the fee from the payment method
86
+ const fiatFee = getFeeFromApi(selectedPaymentMethod || FiatPaymentMethod.NONE);
87
+ if (fiatFee !== null && fiatFee > 0) {
88
+ return _jsxs("span", { className: "text-as-secondary text-xs", children: ["incl. $", fiatFee.toFixed(2), " fee"] });
89
+ }
90
+ // For crypto payments (standard_fee), calculate from the quote
91
+ if (anyspendQuote?.data?.fee?.type === "standard_fee" && anyspendQuote.data.currencyIn?.amountUsd) {
92
+ const cryptoFee = (Number(anyspendQuote.data.currencyIn.amountUsd) * anyspendQuote.data.fee.finalFeeBps) / 10000;
93
+ if (cryptoFee > 0) {
94
+ return _jsxs("span", { className: "text-as-secondary text-xs", children: ["incl. $", cryptoFee.toFixed(2), " fee"] });
95
+ }
96
+ }
97
+ return null;
98
+ })()] })] }) })] })] }));
84
99
  }
@@ -92,7 +92,8 @@ function PanelOnrampPaymentInner(props) {
92
92
  ? "Receive NFT at"
93
93
  : orderType === "join_tournament"
94
94
  ? "Join for"
95
- : "Recipient" }), _jsxs("div", { className: "flex items-center gap-2", children: [recipientImageUrl && (_jsx("img", { src: recipientImageUrl, alt: recipientImageUrl, className: "bg-b3-react-foreground size-7 rounded-full object-cover opacity-100" })), _jsxs("div", { className: "flex flex-col items-end gap-1", children: [recipientEnsName && _jsxs("span", { className: "text-b3-react-foreground/80", children: ["@", recipientEnsName] }), _jsx("span", { className: "text-b3-react-foreground/80", children: centerTruncate(recipientAddress) })] })] })] })), _jsx("div", { className: "border-b3-react-border border-t pt-3", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsx("p", { className: "text-b3-react-foreground font-semibold", children: "Amount" }), _jsxs("p", { className: "text-b3-react-foreground hover:text-b3-react-foreground/80 cursor-pointer text-xl font-semibold transition-colors", onClick: onBack, children: ["$", parseFloat(srcAmountOnRamp).toFixed(2)] })] }) })] })] }), isCreatingOrder ? (_jsxs("div", { className: "bg-b3-react-background border-b3-react-border flex items-center justify-center gap-3 rounded-lg border p-6", children: [_jsx(Loader2, { className: "h-4 w-4 animate-spin" }), _jsx("span", { className: "text-as-primary/70", children: "Creating onramp order..." })] })) : isLoading ? (_jsxs("div", { className: "bg-b3-react-background border-b3-react-border flex items-center justify-center gap-3 rounded-lg border p-6", children: [_jsx(Loader2, { className: "h-4 w-4 animate-spin" }), _jsx("span", { className: "text-as-primary/70", children: "Loading payment options..." })] })) : (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mb-3 flex items-center justify-between", children: [_jsx("h2", { className: "text-lg font-semibold", children: "Payment method" }), _jsx("div", { className: "flex items-center gap-1", children: coinbaseAvailablePaymentMethods.length > 0 &&
95
+ : "Recipient" }), _jsxs("div", { className: "flex items-center gap-2", children: [recipientImageUrl && (_jsx("img", { src: recipientImageUrl, alt: recipientImageUrl, className: "bg-b3-react-foreground size-7 rounded-full object-cover opacity-100" })), _jsxs("div", { className: "flex flex-col items-end gap-1", children: [recipientEnsName && _jsxs("span", { className: "text-b3-react-foreground/80", children: ["@", recipientEnsName] }), _jsx("span", { className: "text-b3-react-foreground/80", children: centerTruncate(recipientAddress) })] })] })] })), _jsx("div", { className: "border-b3-react-border border-t pt-3", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsx("p", { className: "text-b3-react-foreground font-semibold", children: "Amount" }), _jsxs("div", { className: "flex flex-col items-end gap-0.5", children: [_jsxs("p", { className: "text-b3-react-foreground hover:text-b3-react-foreground/80 cursor-pointer text-xl font-semibold transition-colors", onClick: onBack, children: ["$", parseFloat(srcAmountOnRamp).toFixed(2)] }), anyspendQuote?.data?.fee?.type === "standard_fee" && anyspendQuote.data.currencyIn?.amountUsd && (_jsxs("p", { className: "text-b3-react-foreground/60 text-xs", children: ["incl. $", ((Number(anyspendQuote.data.currencyIn.amountUsd) * anyspendQuote.data.fee.finalFeeBps) /
96
+ 10000).toFixed(2), " ", "fee"] }))] })] }) })] })] }), isCreatingOrder ? (_jsxs("div", { className: "bg-b3-react-background border-b3-react-border flex items-center justify-center gap-3 rounded-lg border p-6", children: [_jsx(Loader2, { className: "h-4 w-4 animate-spin" }), _jsx("span", { className: "text-as-primary/70", children: "Creating onramp order..." })] })) : isLoading ? (_jsxs("div", { className: "bg-b3-react-background border-b3-react-border flex items-center justify-center gap-3 rounded-lg border p-6", children: [_jsx(Loader2, { className: "h-4 w-4 animate-spin" }), _jsx("span", { className: "text-as-primary/70", children: "Loading payment options..." })] })) : (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mb-3 flex items-center justify-between", children: [_jsx("h2", { className: "text-lg font-semibold", children: "Payment method" }), _jsx("div", { className: "flex items-center gap-1", children: coinbaseAvailablePaymentMethods.length > 0 &&
96
97
  (() => {
97
98
  const hasCard = coinbaseAvailablePaymentMethods.some(m => m.id === "CARD");
98
99
  const hasApplePay = coinbaseAvailablePaymentMethods.some(m => m.id === "APPLE_PAY");
@@ -1,8 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Button, ShinyButton } from "../../../../global-account/react/index.js";
2
+ import { ShinyButton } from "../../../../global-account/react/index.js";
3
3
  import { cn } from "../../../../shared/utils/cn.js";
4
- import { ArrowDown } from "lucide-react";
5
4
  import Link from "next/link";
6
5
  export function PointsDetailPanel({ pointsAmount = 0, onBack }) {
7
- return (_jsxs("div", { className: "mx-auto flex w-[460px] max-w-full flex-col items-center gap-4", children: [_jsx("div", { className: "flex w-full items-center justify-between", children: _jsxs(Button, { variant: "ghost", onClick: onBack, className: "text-as-primary/70 hover:text-as-primary flex items-center gap-2", children: [_jsx(ArrowDown, { className: "h-4 w-4 rotate-90" }), "Back"] }) }), _jsxs("div", { className: "flex flex-col items-center gap-4 text-center", children: [_jsx("h3", { className: "text-as-primary text-xl font-bold", children: "Earn Points with Every Swap" }), _jsxs("p", { className: "text-as-primary/70 text-balance text-sm leading-relaxed", children: ["You'll earn ", _jsxs("span", { className: "text-as-brand font-semibold", children: ["+", pointsAmount.toLocaleString(), " points"] }), " ", "towards the", " ", _jsx(Link, { href: "https://anyspend.com/points", target: "_blank", className: "text-as-brand underline", children: "next AnySpend airdrop" }), " ", "when you complete this transaction."] }), _jsxs("div", { className: "bg-as-surface-primary border-as-border-secondary mt-2 w-full rounded-lg border p-4 text-left", children: [_jsx("h4", { className: "text-as-primary mb-2 font-semibold", children: "How it works:" }), _jsxs("ul", { className: "text-as-primary/70 space-y-1 text-sm", children: [_jsx("li", { children: "\u2022 Points are earned based on transaction volume" }), _jsx("li", { children: "\u2022 Higher volume = more points" }), _jsx("li", { children: "\u2022 Points contribute to future airdrops" }), _jsx("li", { children: "\u2022 Keep swapping to maximize your rewards" })] })] }), _jsx(ShinyButton, { accentColor: "hsl(var(--as-brand))", onClick: onBack, className: cn("as-main-button !bg-as-brand relative w-full"), textClassName: cn("text-white"), children: "Back to Swap" })] })] }));
6
+ return (_jsx("div", { className: "mx-auto flex w-[460px] max-w-full flex-col items-center gap-4", children: _jsxs("div", { className: "flex flex-col items-center gap-4 text-center", children: [_jsx("h3", { className: "text-as-primary text-xl font-bold", children: "Earn Points with Every Swap" }), _jsxs("p", { className: "text-as-primary/70 text-balance text-sm leading-relaxed", children: ["You'll earn ", _jsxs("span", { className: "text-as-brand font-semibold", children: ["+", pointsAmount.toLocaleString(), " points"] }), " ", "towards the", " ", _jsx(Link, { href: "https://anyspend.com/points", target: "_blank", className: "text-as-brand underline", children: "next AnySpend airdrop" }), " ", "when you complete this transaction."] }), _jsxs("div", { className: "bg-as-surface-primary border-as-border-secondary mt-2 w-full rounded-lg border p-4 text-left", children: [_jsx("h4", { className: "text-as-primary mb-2 font-semibold", children: "How it works:" }), _jsxs("ul", { className: "text-as-primary/70 space-y-1 text-sm", children: [_jsx("li", { children: "\u2022 Points are earned based on transaction volume" }), _jsx("li", { children: "\u2022 Higher volume = more points" }), _jsx("li", { children: "\u2022 Points contribute to future airdrops" }), _jsx("li", { children: "\u2022 Keep swapping to maximize your rewards" })] })] }), _jsx(ShinyButton, { accentColor: "hsl(var(--as-brand))", onClick: onBack, className: cn("as-main-button !bg-as-brand relative w-full"), textClassName: cn("text-white"), children: "Back to Swap" })] }) }));
8
7
  }
@@ -8,7 +8,8 @@ export declare enum PanelView {
8
8
  RECIPIENT_SELECTION = 3,
9
9
  ORDER_DETAILS = 4,
10
10
  LOADING = 5,
11
- POINTS_DETAIL = 6
11
+ POINTS_DETAIL = 6,
12
+ FEE_DETAIL = 7
12
13
  }
13
14
  interface UseAnyspendFlowProps {
14
15
  paymentType?: "crypto" | "fiat";
@@ -144,6 +145,7 @@ export declare function useAnyspendFlow({ paymentType, recipientAddress, loadOrd
144
145
  userBalance?: string;
145
146
  pointsAmount?: number;
146
147
  pointsMultiplier?: number;
148
+ fee: components["schemas"]["Fee"];
147
149
  };
148
150
  statusCode: number;
149
151
  } | undefined;
@@ -19,6 +19,7 @@ export var PanelView;
19
19
  PanelView[PanelView["ORDER_DETAILS"] = 4] = "ORDER_DETAILS";
20
20
  PanelView[PanelView["LOADING"] = 5] = "LOADING";
21
21
  PanelView[PanelView["POINTS_DETAIL"] = 6] = "POINTS_DETAIL";
22
+ PanelView[PanelView["FEE_DETAIL"] = 7] = "FEE_DETAIL";
22
23
  })(PanelView || (PanelView = {}));
23
24
  export function useAnyspendFlow({ paymentType = "crypto", recipientAddress, loadOrder, isDepositMode = false, onOrderSuccess, onTransactionSuccess, sourceTokenAddress, sourceTokenChainId, slippage = 0, disableUrlParamManagement = false, }) {
24
25
  const searchParams = useSearchParamsSSR();
@@ -13,6 +13,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
13
13
  createdAt: number;
14
14
  expiredAt: number;
15
15
  filledAt: number | null;
16
+ receivedDepositAt: number | null;
16
17
  creatorAddress: string | null;
17
18
  partnerId: string | null;
18
19
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -21,6 +22,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
21
22
  settlement: {
22
23
  actualDstAmount: string | null;
23
24
  } | null;
25
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
24
26
  } & {
25
27
  type: "swap";
26
28
  payload: import("../..").components["schemas"]["SwapPayload"];
@@ -39,6 +41,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
39
41
  createdAt: number;
40
42
  expiredAt: number;
41
43
  filledAt: number | null;
44
+ receivedDepositAt: number | null;
42
45
  creatorAddress: string | null;
43
46
  partnerId: string | null;
44
47
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -47,6 +50,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
47
50
  settlement: {
48
51
  actualDstAmount: string | null;
49
52
  } | null;
53
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
50
54
  } & {
51
55
  type: "hype_duel";
52
56
  payload: import("../..").components["schemas"]["HypeDuelPayload"];
@@ -65,6 +69,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
65
69
  createdAt: number;
66
70
  expiredAt: number;
67
71
  filledAt: number | null;
72
+ receivedDepositAt: number | null;
68
73
  creatorAddress: string | null;
69
74
  partnerId: string | null;
70
75
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -73,6 +78,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
73
78
  settlement: {
74
79
  actualDstAmount: string | null;
75
80
  } | null;
81
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
76
82
  } & {
77
83
  type: "custom";
78
84
  payload: import("../..").components["schemas"]["CustomPayload"];
@@ -91,6 +97,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
91
97
  createdAt: number;
92
98
  expiredAt: number;
93
99
  filledAt: number | null;
100
+ receivedDepositAt: number | null;
94
101
  creatorAddress: string | null;
95
102
  partnerId: string | null;
96
103
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -99,6 +106,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
99
106
  settlement: {
100
107
  actualDstAmount: string | null;
101
108
  } | null;
109
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
102
110
  } & {
103
111
  type: "mint_nft";
104
112
  payload: import("../..").components["schemas"]["MintNftPayload"];
@@ -117,6 +125,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
117
125
  createdAt: number;
118
126
  expiredAt: number;
119
127
  filledAt: number | null;
128
+ receivedDepositAt: number | null;
120
129
  creatorAddress: string | null;
121
130
  partnerId: string | null;
122
131
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -125,6 +134,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
125
134
  settlement: {
126
135
  actualDstAmount: string | null;
127
136
  } | null;
137
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
128
138
  } & {
129
139
  type: "join_tournament";
130
140
  payload: import("../..").components["schemas"]["JoinTournamentPayload"];
@@ -143,6 +153,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
143
153
  createdAt: number;
144
154
  expiredAt: number;
145
155
  filledAt: number | null;
156
+ receivedDepositAt: number | null;
146
157
  creatorAddress: string | null;
147
158
  partnerId: string | null;
148
159
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -151,6 +162,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
151
162
  settlement: {
152
163
  actualDstAmount: string | null;
153
164
  } | null;
165
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
154
166
  } & {
155
167
  type: "fund_tournament";
156
168
  payload: import("../..").components["schemas"]["FundTournamentPayload"];
@@ -172,6 +184,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
172
184
  createdAt: number;
173
185
  expiredAt: number;
174
186
  filledAt: number | null;
187
+ receivedDepositAt: number | null;
175
188
  creatorAddress: string | null;
176
189
  partnerId: string | null;
177
190
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -180,6 +193,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
180
193
  settlement: {
181
194
  actualDstAmount: string | null;
182
195
  } | null;
196
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
183
197
  } & {
184
198
  type: "swap";
185
199
  payload: import("../..").components["schemas"]["SwapPayload"];
@@ -198,6 +212,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
198
212
  createdAt: number;
199
213
  expiredAt: number;
200
214
  filledAt: number | null;
215
+ receivedDepositAt: number | null;
201
216
  creatorAddress: string | null;
202
217
  partnerId: string | null;
203
218
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -206,6 +221,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
206
221
  settlement: {
207
222
  actualDstAmount: string | null;
208
223
  } | null;
224
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
209
225
  } & {
210
226
  type: "hype_duel";
211
227
  payload: import("../..").components["schemas"]["HypeDuelPayload"];
@@ -224,6 +240,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
224
240
  createdAt: number;
225
241
  expiredAt: number;
226
242
  filledAt: number | null;
243
+ receivedDepositAt: number | null;
227
244
  creatorAddress: string | null;
228
245
  partnerId: string | null;
229
246
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -232,6 +249,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
232
249
  settlement: {
233
250
  actualDstAmount: string | null;
234
251
  } | null;
252
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
235
253
  } & {
236
254
  type: "custom";
237
255
  payload: import("../..").components["schemas"]["CustomPayload"];
@@ -250,6 +268,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
250
268
  createdAt: number;
251
269
  expiredAt: number;
252
270
  filledAt: number | null;
271
+ receivedDepositAt: number | null;
253
272
  creatorAddress: string | null;
254
273
  partnerId: string | null;
255
274
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -258,6 +277,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
258
277
  settlement: {
259
278
  actualDstAmount: string | null;
260
279
  } | null;
280
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
261
281
  } & {
262
282
  type: "mint_nft";
263
283
  payload: import("../..").components["schemas"]["MintNftPayload"];
@@ -276,6 +296,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
276
296
  createdAt: number;
277
297
  expiredAt: number;
278
298
  filledAt: number | null;
299
+ receivedDepositAt: number | null;
279
300
  creatorAddress: string | null;
280
301
  partnerId: string | null;
281
302
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -284,6 +305,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
284
305
  settlement: {
285
306
  actualDstAmount: string | null;
286
307
  } | null;
308
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
287
309
  } & {
288
310
  type: "join_tournament";
289
311
  payload: import("../..").components["schemas"]["JoinTournamentPayload"];
@@ -302,6 +324,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
302
324
  createdAt: number;
303
325
  expiredAt: number;
304
326
  filledAt: number | null;
327
+ receivedDepositAt: number | null;
305
328
  creatorAddress: string | null;
306
329
  partnerId: string | null;
307
330
  onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
@@ -310,6 +333,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
310
333
  settlement: {
311
334
  actualDstAmount: string | null;
312
335
  } | null;
336
+ fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
313
337
  } & {
314
338
  type: "fund_tournament";
315
339
  payload: import("../..").components["schemas"]["FundTournamentPayload"];