@b3dotfun/sdk 0.0.29-alpha.1 → 0.0.29-alpha.3

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 (48) hide show
  1. package/dist/cjs/anyspend/constants/index.d.ts +1 -0
  2. package/dist/cjs/anyspend/constants/index.js +2 -1
  3. package/dist/cjs/anyspend/react/components/AnySpend.js +1 -1
  4. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +1 -1
  5. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.d.ts +4 -2
  6. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +9 -8
  7. package/dist/cjs/anyspend/react/components/common/OrderDetailsCollapsible.js +6 -4
  8. package/dist/cjs/anyspend/react/components/common/OrderStatus.d.ts +2 -0
  9. package/dist/cjs/anyspend/react/components/common/OrderStatus.js +2 -2
  10. package/dist/cjs/bondkit/abis/BondkitTokenABI.d.ts +60 -12
  11. package/dist/cjs/bondkit/abis/BondkitTokenABI.js +39 -6
  12. package/dist/cjs/bondkit/abis/BondkitTokenFactoryABI.d.ts +0 -25
  13. package/dist/cjs/bondkit/abis/BondkitTokenFactoryABI.js +0 -9
  14. package/dist/cjs/bondkit/constants.js +1 -1
  15. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +2 -0
  16. package/dist/esm/anyspend/constants/index.d.ts +1 -0
  17. package/dist/esm/anyspend/constants/index.js +1 -0
  18. package/dist/esm/anyspend/react/components/AnySpend.js +1 -1
  19. package/dist/esm/anyspend/react/components/AnySpendCustom.js +1 -1
  20. package/dist/esm/anyspend/react/components/AnyspendDepositHype.d.ts +4 -2
  21. package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +11 -10
  22. package/dist/esm/anyspend/react/components/common/OrderDetailsCollapsible.js +7 -5
  23. package/dist/esm/anyspend/react/components/common/OrderStatus.d.ts +2 -0
  24. package/dist/esm/anyspend/react/components/common/OrderStatus.js +2 -2
  25. package/dist/esm/bondkit/abis/BondkitTokenABI.d.ts +60 -12
  26. package/dist/esm/bondkit/abis/BondkitTokenABI.js +39 -6
  27. package/dist/esm/bondkit/abis/BondkitTokenFactoryABI.d.ts +0 -25
  28. package/dist/esm/bondkit/abis/BondkitTokenFactoryABI.js +0 -9
  29. package/dist/esm/bondkit/constants.js +1 -1
  30. package/dist/esm/global-account/react/stores/useModalStore.d.ts +2 -0
  31. package/dist/styles/index.css +1 -1
  32. package/dist/types/anyspend/constants/index.d.ts +1 -0
  33. package/dist/types/anyspend/react/components/AnyspendDepositHype.d.ts +4 -2
  34. package/dist/types/anyspend/react/components/common/OrderStatus.d.ts +2 -0
  35. package/dist/types/bondkit/abis/BondkitTokenABI.d.ts +60 -12
  36. package/dist/types/bondkit/abis/BondkitTokenFactoryABI.d.ts +0 -25
  37. package/dist/types/global-account/react/stores/useModalStore.d.ts +2 -0
  38. package/package.json +1 -1
  39. package/src/anyspend/constants/index.ts +2 -0
  40. package/src/anyspend/react/components/AnySpend.tsx +1 -1
  41. package/src/anyspend/react/components/AnySpendCustom.tsx +1 -1
  42. package/src/anyspend/react/components/AnyspendDepositHype.tsx +131 -129
  43. package/src/anyspend/react/components/common/OrderDetailsCollapsible.tsx +10 -4
  44. package/src/anyspend/react/components/common/OrderStatus.tsx +9 -2
  45. package/src/bondkit/abis/BondkitTokenABI.ts +39 -6
  46. package/src/bondkit/abis/BondkitTokenFactoryABI.ts +0 -9
  47. package/src/bondkit/constants.ts +1 -1
  48. package/src/global-account/react/stores/useModalStore.ts +2 -0
@@ -1,5 +1,5 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { B3_TOKEN } from "../../../anyspend/index.js";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { B3_TOKEN, DEPOSIT_HYPE_ACTION } from "../../../anyspend/index.js";
3
3
  import { Button, ShinyButton, StyleRoot, TransitionPanel } from "../../../global-account/react/index.js";
4
4
  import { cn } from "../../../shared/utils/cn.js";
5
5
  import invariant from "invariant";
@@ -34,7 +34,7 @@ export function AnySpendDepositHype(props) {
34
34
  const fingerprintConfig = getFingerprintConfig();
35
35
  return (_jsx(AnySpendFingerprintWrapper, { fingerprint: fingerprintConfig, children: _jsx(AnySpendDepositHypeInner, { ...props }) }));
36
36
  }
37
- function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress, paymentType = "crypto", sourceTokenAddress, sourceTokenChainId, onSuccess, depositContractAddress, }) {
37
+ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress, paymentType = "crypto", sourceTokenAddress, sourceTokenChainId, onSuccess, depositContractAddress, mainFooter, }) {
38
38
  // Use shared flow hook
39
39
  const { activePanel, setActivePanel, orderId, oat, selectedSrcChainId, setSelectedSrcChainId, selectedSrcToken, setSelectedSrcToken, srcAmount, setSrcAmount, dstAmount, setIsSrcInputDirty, selectedCryptoPaymentMethod, setSelectedCryptoPaymentMethod, selectedFiatPaymentMethod, setSelectedFiatPaymentMethod, selectedRecipientAddress, setSelectedRecipientAddress, recipientName, globalAddress, anyspendQuote, isLoadingAnyspendQuote, getAnyspendQuoteError, activeInputAmountInWei, geoData, coinbaseAvailablePaymentMethods, stripeWeb2Support, createOrder, isCreatingOrder, createOnrampOrder, isCreatingOnrampOrder, } = useAnyspendFlow({
40
40
  paymentType,
@@ -116,6 +116,10 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
116
116
  await handleFiatOrder();
117
117
  }
118
118
  };
119
+ const mainView = (_jsxs("div", { className: "mx-auto flex w-[460px] max-w-full flex-col items-center gap-2", children: [_jsx("div", { className: "mb-4 flex flex-col items-center gap-3 text-center", children: _jsx("div", { children: _jsx("h1", { className: "text-as-primary text-xl font-bold", children: paymentType === "crypto" ? "Deposit Crypto" : "Fund with Fiat" }) }) }), _jsx("div", { className: "relative flex w-full max-w-[calc(100vw-32px)] flex-col gap-2", children: _jsxs("div", { className: "relative flex w-full max-w-[calc(100vw-32px)] flex-col gap-2", children: [paymentType === "crypto" ? (_jsx(PaySection, { paymentType: "crypto", selectedSrcChainId: selectedSrcChainId, setSelectedSrcChainId: setSelectedSrcChainId, selectedSrcToken: selectedSrcToken, setSelectedSrcToken: setSelectedSrcToken, srcAmount: srcAmount, setSrcAmount: setSrcAmount, setIsSrcInputDirty: setIsSrcInputDirty, selectedCryptoPaymentMethod: selectedCryptoPaymentMethod, selectedFiatPaymentMethod: selectedFiatPaymentMethod, onSelectCryptoPaymentMethod: () => setActivePanel(PanelView.CRYPTO_PAYMENT_METHOD), onSelectFiatPaymentMethod: () => setActivePanel(PanelView.FIAT_PAYMENT_METHOD), anyspendQuote: anyspendQuote })) : (_jsx(motion.div, { initial: { opacity: 0, y: 20, filter: "blur(10px)" }, animate: { opacity: 1, y: 0, filter: "blur(0px)" }, transition: { duration: 0.3, delay: 0, ease: "easeInOut" }, children: _jsx(PanelOnramp, { srcAmountOnRamp: srcAmount, setSrcAmountOnRamp: setSrcAmount, selectedPaymentMethod: selectedFiatPaymentMethod, setActivePanel: setActivePanel, _recipientAddress: recipientAddress, destinationToken: B3_TOKEN, destinationChainId: base.id, destinationAmount: dstAmount, onDestinationTokenChange: () => { }, onDestinationChainChange: () => { }, fiatPaymentMethodIndex: PanelView.FIAT_PAYMENT_METHOD }) })), _jsx("div", { className: cn("relative -my-1 flex h-0 items-center justify-center", paymentType === "fiat" && "hidden"), children: _jsx(Button, { variant: "ghost", className: cn("swap-direction-button border-as-stroke bg-as-surface-primary z-10 h-10 w-10 cursor-default rounded-xl border-2 sm:h-8 sm:w-8 sm:rounded-xl"), children: _jsx("div", { className: "relative flex items-center justify-center transition-opacity", children: _jsx(ArrowDown, { className: "text-as-primary/50 h-5 w-5" }) }) }) }), paymentType === "crypto" && (_jsx(CryptoReceiveSection, { isDepositMode: false, isBuyMode: true, selectedRecipientAddress: recipientAddress, recipientName: recipientName || undefined, onSelectRecipient: () => setActivePanel(PanelView.RECIPIENT_SELECTION), dstAmount: dstAmount, dstToken: B3_TOKEN, selectedDstChainId: base.id, setSelectedDstChainId: () => { }, setSelectedDstToken: () => { }, onChangeDstAmount: value => {
120
+ setIsSrcInputDirty(false);
121
+ setSrcAmount(value);
122
+ }, anyspendQuote: anyspendQuote }))] }) }), _jsx(ErrorSection, { error: getAnyspendQuoteError }), _jsx(motion.div, { initial: { opacity: 0, y: 20, filter: "blur(10px)" }, animate: { opacity: 1, y: 0, filter: "blur(0px)" }, transition: { duration: 0.3, delay: 0.2, ease: "easeInOut" }, className: cn("mt-4 flex w-full max-w-[460px] flex-col gap-2", getAnyspendQuoteError && "mt-0"), children: _jsx(ShinyButton, { accentColor: "hsl(var(--as-brand))", disabled: btnInfo.disable, onClick: onMainButtonClick, className: cn("as-main-button relative w-full", btnInfo.error ? "!bg-as-red" : btnInfo.disable ? "!bg-as-on-surface-2" : "!bg-as-brand"), textClassName: cn(btnInfo.error ? "text-white" : btnInfo.disable ? "text-as-secondary" : "text-white"), children: btnInfo.text }) }), mainFooter ? mainFooter : null] }));
119
123
  // Handle crypto order creation
120
124
  const handleCryptoOrder = async () => {
121
125
  try {
@@ -138,7 +142,7 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
138
142
  amount: depositAmountWei,
139
143
  data: encodedData,
140
144
  to: depositContractAddress,
141
- action: "deposit HYPE",
145
+ action: DEPOSIT_HYPE_ACTION,
142
146
  },
143
147
  });
144
148
  }
@@ -200,7 +204,7 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
200
204
  amount: depositAmountWei,
201
205
  data: encodedData,
202
206
  to: depositContractAddress,
203
- action: "deposit HYPE",
207
+ action: DEPOSIT_HYPE_ACTION,
204
208
  },
205
209
  });
206
210
  }
@@ -210,7 +214,7 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
210
214
  }
211
215
  };
212
216
  // Order details view
213
- const orderDetailsView = (_jsx("div", { className: "mx-auto w-[460px] max-w-full", children: _jsx("div", { className: "relative flex flex-col gap-4", children: oat && (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: oat.data.order }), _jsx(OrderDetails, { mode: mode, order: oat.data.order, depositTxs: oat.data.depositTxs, relayTx: oat.data.relayTx, executeTx: oat.data.executeTx, refundTxs: oat.data.refundTxs, cryptoPaymentMethod: paymentType === "fiat" ? CryptoPaymentMethodType.NONE : selectedCryptoPaymentMethod, onBack: () => {
217
+ const orderDetailsView = (_jsx("div", { className: "mx-auto w-[460px] max-w-full", children: _jsx("div", { className: "relative flex flex-col gap-4", children: oat && (_jsxs(_Fragment, { children: [_jsx(OrderStatus, { order: oat.data.order, selectedCryptoPaymentMethod: selectedCryptoPaymentMethod }), _jsx(OrderDetails, { mode: mode, order: oat.data.order, depositTxs: oat.data.depositTxs, relayTx: oat.data.relayTx, executeTx: oat.data.executeTx, refundTxs: oat.data.refundTxs, cryptoPaymentMethod: paymentType === "fiat" ? CryptoPaymentMethodType.NONE : selectedCryptoPaymentMethod, onBack: () => {
214
218
  setActivePanel(PanelView.MAIN);
215
219
  onSuccess?.();
216
220
  } })] })) }) }));
@@ -244,10 +248,7 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
244
248
  center: { x: 0, opacity: 1 },
245
249
  exit: { x: -300, opacity: 0 },
246
250
  }, transition: { type: "spring", stiffness: 300, damping: 30 }, children: [
247
- _jsx("div", { className: cn(mode === "page" && "p-6"), children: _jsxs("div", { className: "mx-auto flex w-[460px] max-w-full flex-col items-center gap-2", children: [_jsx("div", { className: "mb-4 flex flex-col items-center gap-3 text-center", children: _jsx("div", { children: _jsx("h1", { className: "text-as-primary text-xl font-bold", children: paymentType === "crypto" ? "Deposit Crypto" : "Fund with Fiat" }) }) }), _jsx("div", { className: "relative flex w-full max-w-[calc(100vw-32px)] flex-col gap-2", children: _jsxs("div", { className: "relative flex w-full max-w-[calc(100vw-32px)] flex-col gap-2", children: [paymentType === "crypto" ? (_jsx(PaySection, { paymentType: "crypto", selectedSrcChainId: selectedSrcChainId, setSelectedSrcChainId: setSelectedSrcChainId, selectedSrcToken: selectedSrcToken, setSelectedSrcToken: setSelectedSrcToken, srcAmount: srcAmount, setSrcAmount: setSrcAmount, setIsSrcInputDirty: setIsSrcInputDirty, selectedCryptoPaymentMethod: selectedCryptoPaymentMethod, selectedFiatPaymentMethod: selectedFiatPaymentMethod, onSelectCryptoPaymentMethod: () => setActivePanel(PanelView.CRYPTO_PAYMENT_METHOD), onSelectFiatPaymentMethod: () => setActivePanel(PanelView.FIAT_PAYMENT_METHOD), anyspendQuote: anyspendQuote })) : (_jsx(motion.div, { initial: { opacity: 0, y: 20, filter: "blur(10px)" }, animate: { opacity: 1, y: 0, filter: "blur(0px)" }, transition: { duration: 0.3, delay: 0, ease: "easeInOut" }, children: _jsx(PanelOnramp, { srcAmountOnRamp: srcAmount, setSrcAmountOnRamp: setSrcAmount, selectedPaymentMethod: selectedFiatPaymentMethod, setActivePanel: setActivePanel, _recipientAddress: recipientAddress, destinationToken: B3_TOKEN, destinationChainId: base.id, destinationAmount: dstAmount, onDestinationTokenChange: () => { }, onDestinationChainChange: () => { }, fiatPaymentMethodIndex: PanelView.FIAT_PAYMENT_METHOD }) })), _jsx(Button, { variant: "ghost", className: cn("swap-direction-button border-as-stroke bg-as-surface-primary absolute left-1/2 top-[calc(50%+56px)] z-10 h-10 w-10 -translate-x-1/2 -translate-y-1/2 cursor-default rounded-xl border-2 sm:h-8 sm:w-8 sm:rounded-xl", paymentType === "fiat" && "hidden"), children: _jsx("div", { className: "relative flex items-center justify-center transition-opacity", children: _jsx(ArrowDown, { className: "text-as-primary/50 h-5 w-5" }) }) }), paymentType === "crypto" && (_jsx(CryptoReceiveSection, { isDepositMode: false, isBuyMode: true, selectedRecipientAddress: recipientAddress, recipientName: recipientName || undefined, onSelectRecipient: () => setActivePanel(PanelView.RECIPIENT_SELECTION), dstAmount: dstAmount, dstToken: B3_TOKEN, selectedDstChainId: base.id, setSelectedDstChainId: () => { }, setSelectedDstToken: () => { }, onChangeDstAmount: value => {
248
- setIsSrcInputDirty(false);
249
- setSrcAmount(value);
250
- }, anyspendQuote: anyspendQuote }))] }) }), _jsx(ErrorSection, { error: getAnyspendQuoteError }), _jsx(motion.div, { initial: { opacity: 0, y: 20, filter: "blur(10px)" }, animate: { opacity: 1, y: 0, filter: "blur(0px)" }, transition: { duration: 0.3, delay: 0.2, ease: "easeInOut" }, className: cn("mt-4 flex w-full max-w-[460px] flex-col gap-2", getAnyspendQuoteError && "mt-0"), children: _jsx(ShinyButton, { accentColor: "hsl(var(--as-brand))", disabled: btnInfo.disable, onClick: onMainButtonClick, className: cn("as-main-button relative w-full", btnInfo.error ? "!bg-as-red" : btnInfo.disable ? "!bg-as-on-surface-2" : "!bg-as-brand"), textClassName: cn(btnInfo.error ? "text-white" : btnInfo.disable ? "text-as-secondary" : "text-white"), children: btnInfo.text }) })] }) }, "main-view"),
251
+ _jsx("div", { className: cn(mode === "page" && "p-6"), children: mainView }, "main-view"),
251
252
  _jsx("div", { className: cn(mode === "page" && "p-6"), children: cryptoPaymentMethodView }, "crypto-payment-method-view"),
252
253
  _jsx("div", { className: cn(mode === "page" && "p-6"), children: fiatPaymentMethodView }, "fiat-payment-method-view"),
253
254
  _jsx("div", { className: cn(mode === "page" && "p-6"), children: recipientSelectionView }, "recipient-selection-view"),
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { ALL_CHAINS, capitalizeFirstLetter, getChainName } from "../../../../anyspend/index.js";
3
+ import { ALL_CHAINS, capitalizeFirstLetter, DEPOSIT_HYPE_ACTION, getChainName } from "../../../../anyspend/index.js";
4
4
  import { CopyToClipboard } from "../../../../global-account/react/index.js";
5
5
  import { cn } from "../../../../shared/utils/index.js";
6
6
  import centerTruncate from "../../../../shared/utils/centerTruncate.js";
@@ -29,8 +29,10 @@ export const OrderDetailsCollapsible = memo(function OrderDetailsCollapsible({ o
29
29
  : order.type === "fund_tournament"
30
30
  ? "Fund tournament"
31
31
  : order.type === "custom"
32
- ? order.metadata.action
33
- ? capitalizeFirstLetter(order.metadata.action)
34
- : "Contract execution"
35
- : "" }), _jsxs("div", { className: "flex items-end gap-2", children: [order.type === "swap" ? (`~${finalFormattedExpectedDstAmount} ${dstToken.symbol}`) : order.type === "mint_nft" ? (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("img", { src: nft?.imageUrl, alt: nft?.name || "NFT", className: "h-5 w-5" }), _jsx("div", { children: nft?.name || "NFT" })] })) : order.type === "join_tournament" || order.type === "fund_tournament" ? (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("img", { src: tournament?.imageUrl, alt: tournament?.name || "Tournament", className: "h-5 w-5" }), _jsx("div", { children: tournament?.name || "Tournament" })] })) : null, _jsxs("div", { className: "text-as-primary/50 flex items-center gap-2", children: [_jsxs("span", { children: ["on ", order.dstChain !== b3.id && getChainName(order.dstChain)] }), _jsx("img", { src: ALL_CHAINS[order.dstChain].logoUrl, alt: getChainName(order.dstChain), className: cn("h-3", order.dstChain !== b3.id && "w-3 rounded-full", order.dstChain === b3.id && "h-4") })] })] })] }), _jsx("div", { className: "divider w-full" }), _jsxs("div", { className: "flex w-full justify-between gap-4", children: [_jsx("div", { className: "text-as-tertiarry", children: showTotal ? "Total (included fee)" : "Order ID" }), _jsx("div", { className: "text-as-primary overflow-hidden text-ellipsis whitespace-nowrap", children: showTotal && totalAmount ? totalAmount : order.id })] })] }) })) : (_jsxs("div", { className: "flex w-full items-center", children: [_jsx("div", { className: "divider w-full" }), _jsx("button", { className: "whitespace-nowrap text-sm", onClick: () => setShowOrderDetails(true), children: "Order Details" }), _jsx(ChevronDown, { className: "text-as-primary mx-1 h-4 min-h-4 w-4 min-w-4" }), _jsx("div", { className: "divider w-full" })] })) }));
32
+ ? order.metadata.action === DEPOSIT_HYPE_ACTION
33
+ ? "Deposit HYPE"
34
+ : order.metadata.action
35
+ ? capitalizeFirstLetter(order.metadata.action)
36
+ : "Contract execution"
37
+ : "" }), _jsxs("div", { className: "flex items-end gap-2", children: [order.type === "swap" ? (`~${finalFormattedExpectedDstAmount} ${dstToken.symbol}`) : order.type === "mint_nft" ? (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("img", { src: nft?.imageUrl, alt: nft?.name || "NFT", className: "h-5 w-5" }), _jsx("div", { children: nft?.name || "NFT" })] })) : order.type === "join_tournament" || order.type === "fund_tournament" ? (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("img", { src: tournament?.imageUrl, alt: tournament?.name || "Tournament", className: "h-5 w-5" }), _jsx("div", { children: tournament?.name || "Tournament" })] })) : order.type === "custom" && order.metadata.action === DEPOSIT_HYPE_ACTION ? (_jsx("div", { className: "flex items-center gap-2", children: _jsxs("div", { children: [formatTokenAmount(BigInt(order.payload.amount), dstToken.decimals), " HYPE"] }) })) : null, _jsxs("div", { className: "text-as-primary/50 flex items-center gap-2", children: [_jsxs("span", { children: ["on ", order.dstChain !== b3.id && getChainName(order.dstChain)] }), _jsx("img", { src: ALL_CHAINS[order.dstChain].logoUrl, alt: getChainName(order.dstChain), className: cn("h-3", order.dstChain !== b3.id && "w-3 rounded-full", order.dstChain === b3.id && "h-4") })] })] })] }), _jsx("div", { className: "divider w-full" }), _jsxs("div", { className: "flex w-full justify-between gap-4", children: [_jsx("div", { className: "text-as-tertiarry", children: showTotal ? "Total (included fee)" : "Order ID" }), _jsx("div", { className: "text-as-primary overflow-hidden text-ellipsis whitespace-nowrap", children: showTotal && totalAmount ? totalAmount : order.id })] })] }) })) : (_jsxs("div", { className: "flex w-full items-center", children: [_jsx("div", { className: "divider w-full" }), _jsx("button", { className: "whitespace-nowrap text-sm", onClick: () => setShowOrderDetails(true), children: "Order Details" }), _jsx(ChevronDown, { className: "text-as-primary mx-1 h-4 min-h-4 w-4 min-w-4" }), _jsx("div", { className: "divider w-full" })] })) }));
36
38
  });
@@ -1,4 +1,6 @@
1
1
  import { components } from "../../../../anyspend/types/api";
2
+ import { CryptoPaymentMethodType } from "./CryptoPaymentMethod";
2
3
  export declare const OrderStatus: import("react").NamedExoticComponent<{
3
4
  order: components["schemas"]["Order"];
5
+ selectedCryptoPaymentMethod?: CryptoPaymentMethodType;
4
6
  }>;
@@ -4,11 +4,11 @@ import { useSearchParams } from "../../../../shared/react/index.js";
4
4
  import { Check, X } from "lucide-react";
5
5
  import { memo } from "react";
6
6
  import { StepProgress } from "./StepProgress.js";
7
- export const OrderStatus = memo(function OrderStatus({ order }) {
7
+ export const OrderStatus = memo(function OrderStatus({ order, selectedCryptoPaymentMethod, }) {
8
8
  const isComplete = order.status === "executed";
9
9
  const { text, status: displayStatus, description } = getStatusDisplay(order);
10
10
  const searchParams = useSearchParams();
11
- const cryptoPaymentMethod = searchParams.get("cryptoPaymentMethod");
11
+ const cryptoPaymentMethod = selectedCryptoPaymentMethod || searchParams.get("cryptoPaymentMethod");
12
12
  console.log("OrderStatus", displayStatus);
13
13
  console.log("OrderStatus", order);
14
14
  const paymentSteps = [
@@ -286,14 +286,6 @@ export declare const BondkitTokenABI: readonly [{
286
286
  }];
287
287
  readonly name: "ValidationInvalidLPSplitRatio";
288
288
  readonly type: "error";
289
- }, {
290
- readonly inputs: readonly [{
291
- readonly internalType: "address";
292
- readonly name: "providedAddress";
293
- readonly type: "address";
294
- }];
295
- readonly name: "ValidationInvalidMigrationAdminAddress";
296
- readonly type: "error";
297
289
  }, {
298
290
  readonly inputs: readonly [{
299
291
  readonly internalType: "uint24";
@@ -330,6 +322,21 @@ export declare const BondkitTokenABI: readonly [{
330
322
  }];
331
323
  readonly name: "Approval";
332
324
  readonly type: "event";
325
+ }, {
326
+ readonly anonymous: false;
327
+ readonly inputs: readonly [{
328
+ readonly indexed: true;
329
+ readonly internalType: "address";
330
+ readonly name: "previousAdmin";
331
+ readonly type: "address";
332
+ }, {
333
+ readonly indexed: true;
334
+ readonly internalType: "address";
335
+ readonly name: "newAdmin";
336
+ readonly type: "address";
337
+ }];
338
+ readonly name: "B3AdminUpdated";
339
+ readonly type: "event";
333
340
  }, {
334
341
  readonly anonymous: false;
335
342
  readonly inputs: readonly [{
@@ -465,6 +472,21 @@ export declare const BondkitTokenABI: readonly [{
465
472
  }];
466
473
  readonly name: "BondkitTokenMigrated";
467
474
  readonly type: "event";
475
+ }, {
476
+ readonly anonymous: false;
477
+ readonly inputs: readonly [{
478
+ readonly indexed: false;
479
+ readonly internalType: "uint256";
480
+ readonly name: "totalRaisedBonding";
481
+ readonly type: "uint256";
482
+ }, {
483
+ readonly indexed: false;
484
+ readonly internalType: "uint256";
485
+ readonly name: "targetAmount";
486
+ readonly type: "uint256";
487
+ }];
488
+ readonly name: "DexTriggerThresholdMet";
489
+ readonly type: "event";
468
490
  }, {
469
491
  readonly anonymous: false;
470
492
  readonly inputs: readonly [{
@@ -591,6 +613,16 @@ export declare const BondkitTokenABI: readonly [{
591
613
  }];
592
614
  readonly stateMutability: "nonpayable";
593
615
  readonly type: "function";
616
+ }, {
617
+ readonly inputs: readonly [];
618
+ readonly name: "b3Admin";
619
+ readonly outputs: readonly [{
620
+ readonly internalType: "address";
621
+ readonly name: "";
622
+ readonly type: "address";
623
+ }];
624
+ readonly stateMutability: "view";
625
+ readonly type: "function";
594
626
  }, {
595
627
  readonly inputs: readonly [{
596
628
  readonly internalType: "address";
@@ -743,6 +775,16 @@ export declare const BondkitTokenABI: readonly [{
743
775
  }];
744
776
  readonly stateMutability: "view";
745
777
  readonly type: "function";
778
+ }, {
779
+ readonly inputs: readonly [];
780
+ readonly name: "getB3Admin";
781
+ readonly outputs: readonly [{
782
+ readonly internalType: "address";
783
+ readonly name: "";
784
+ readonly type: "address";
785
+ }];
786
+ readonly stateMutability: "view";
787
+ readonly type: "function";
746
788
  }, {
747
789
  readonly inputs: readonly [];
748
790
  readonly name: "getBondingCurveConfig";
@@ -979,10 +1021,6 @@ export declare const BondkitTokenABI: readonly [{
979
1021
  readonly internalType: "address";
980
1022
  readonly name: "tradingToken";
981
1023
  readonly type: "address";
982
- }, {
983
- readonly internalType: "address";
984
- readonly name: "migrationAdminAddress";
985
- readonly type: "address";
986
1024
  }, {
987
1025
  readonly internalType: "address";
988
1026
  readonly name: "bondingPhaseSplitter";
@@ -1182,6 +1220,16 @@ export declare const BondkitTokenABI: readonly [{
1182
1220
  readonly outputs: readonly [];
1183
1221
  readonly stateMutability: "nonpayable";
1184
1222
  readonly type: "function";
1223
+ }, {
1224
+ readonly inputs: readonly [{
1225
+ readonly internalType: "address";
1226
+ readonly name: "_newAdmin";
1227
+ readonly type: "address";
1228
+ }];
1229
+ readonly name: "updateB3Admin";
1230
+ readonly outputs: readonly [];
1231
+ readonly stateMutability: "nonpayable";
1232
+ readonly type: "function";
1185
1233
  }, {
1186
1234
  readonly inputs: readonly [{
1187
1235
  readonly internalType: "address";
@@ -158,11 +158,6 @@ export const BondkitTokenABI = [
158
158
  name: "ValidationInvalidLPSplitRatio",
159
159
  type: "error",
160
160
  },
161
- {
162
- inputs: [{ internalType: "address", name: "providedAddress", type: "address" }],
163
- name: "ValidationInvalidMigrationAdminAddress",
164
- type: "error",
165
- },
166
161
  {
167
162
  inputs: [{ internalType: "uint24", name: "value", type: "uint24" }],
168
163
  name: "ValidationInvalidV4PoolFee",
@@ -183,6 +178,15 @@ export const BondkitTokenABI = [
183
178
  name: "Approval",
184
179
  type: "event",
185
180
  },
181
+ {
182
+ anonymous: false,
183
+ inputs: [
184
+ { indexed: true, internalType: "address", name: "previousAdmin", type: "address" },
185
+ { indexed: true, internalType: "address", name: "newAdmin", type: "address" },
186
+ ],
187
+ name: "B3AdminUpdated",
188
+ type: "event",
189
+ },
186
190
  {
187
191
  anonymous: false,
188
192
  inputs: [
@@ -234,6 +238,15 @@ export const BondkitTokenABI = [
234
238
  name: "BondkitTokenMigrated",
235
239
  type: "event",
236
240
  },
241
+ {
242
+ anonymous: false,
243
+ inputs: [
244
+ { indexed: false, internalType: "uint256", name: "totalRaisedBonding", type: "uint256" },
245
+ { indexed: false, internalType: "uint256", name: "targetAmount", type: "uint256" },
246
+ ],
247
+ name: "DexTriggerThresholdMet",
248
+ type: "event",
249
+ },
237
250
  {
238
251
  anonymous: false,
239
252
  inputs: [
@@ -302,6 +315,13 @@ export const BondkitTokenABI = [
302
315
  stateMutability: "nonpayable",
303
316
  type: "function",
304
317
  },
318
+ {
319
+ inputs: [],
320
+ name: "b3Admin",
321
+ outputs: [{ internalType: "address", name: "", type: "address" }],
322
+ stateMutability: "view",
323
+ type: "function",
324
+ },
305
325
  {
306
326
  inputs: [{ internalType: "address", name: "account", type: "address" }],
307
327
  name: "balanceOf",
@@ -397,6 +417,13 @@ export const BondkitTokenABI = [
397
417
  stateMutability: "view",
398
418
  type: "function",
399
419
  },
420
+ {
421
+ inputs: [],
422
+ name: "getB3Admin",
423
+ outputs: [{ internalType: "address", name: "", type: "address" }],
424
+ stateMutability: "view",
425
+ type: "function",
426
+ },
400
427
  {
401
428
  inputs: [],
402
429
  name: "getBondingCurveConfig",
@@ -539,7 +566,6 @@ export const BondkitTokenABI = [
539
566
  { internalType: "uint256", name: "lpSplitRatioFeeRecipientBps", type: "uint256" },
540
567
  { internalType: "uint256", name: "targetAmount", type: "uint256" },
541
568
  { internalType: "address", name: "tradingToken", type: "address" },
542
- { internalType: "address", name: "migrationAdminAddress", type: "address" },
543
569
  { internalType: "address", name: "bondingPhaseSplitter", type: "address" },
544
570
  { internalType: "address", name: "v4PoolManager", type: "address" },
545
571
  { internalType: "address", name: "v4Hook", type: "address" },
@@ -659,6 +685,13 @@ export const BondkitTokenABI = [
659
685
  stateMutability: "nonpayable",
660
686
  type: "function",
661
687
  },
688
+ {
689
+ inputs: [{ internalType: "address", name: "_newAdmin", type: "address" }],
690
+ name: "updateB3Admin",
691
+ outputs: [],
692
+ stateMutability: "nonpayable",
693
+ type: "function",
694
+ },
662
695
  {
663
696
  inputs: [{ internalType: "address", name: "_bondingPhaseSplitter", type: "address" }],
664
697
  name: "updateSplitter",
@@ -106,14 +106,6 @@ export declare const BondkitTokenFactoryABI: readonly [{
106
106
  }];
107
107
  readonly name: "ValidationInvalidLPSplitRatio";
108
108
  readonly type: "error";
109
- }, {
110
- readonly inputs: readonly [{
111
- readonly internalType: "address";
112
- readonly name: "providedAddress";
113
- readonly type: "address";
114
- }];
115
- readonly name: "ValidationInvalidMigrationAdminAddress";
116
- readonly type: "error";
117
109
  }, {
118
110
  readonly inputs: readonly [{
119
111
  readonly internalType: "uint24";
@@ -157,11 +149,6 @@ export declare const BondkitTokenFactoryABI: readonly [{
157
149
  readonly internalType: "address";
158
150
  readonly name: "feeRecipient";
159
151
  readonly type: "address";
160
- }, {
161
- readonly indexed: false;
162
- readonly internalType: "address";
163
- readonly name: "migrationAdmin";
164
- readonly type: "address";
165
152
  }];
166
153
  readonly name: "BondkitTokenCreated";
167
154
  readonly type: "event";
@@ -259,10 +246,6 @@ export declare const BondkitTokenFactoryABI: readonly [{
259
246
  readonly internalType: "address";
260
247
  readonly name: "tradingToken";
261
248
  readonly type: "address";
262
- }, {
263
- readonly internalType: "address";
264
- readonly name: "migrationAdminAddress";
265
- readonly type: "address";
266
249
  }, {
267
250
  readonly internalType: "address";
268
251
  readonly name: "bondingPhaseSplitter";
@@ -350,10 +333,6 @@ export declare const BondkitTokenFactoryABI: readonly [{
350
333
  readonly internalType: "address";
351
334
  readonly name: "tradingToken";
352
335
  readonly type: "address";
353
- }, {
354
- readonly internalType: "address";
355
- readonly name: "migrationAdminAddress";
356
- readonly type: "address";
357
336
  }, {
358
337
  readonly internalType: "address";
359
338
  readonly name: "bondingPhaseSplitter";
@@ -461,10 +440,6 @@ export declare const BondkitTokenFactoryABI: readonly [{
461
440
  readonly internalType: "address";
462
441
  readonly name: "tradingToken";
463
442
  readonly type: "address";
464
- }, {
465
- readonly internalType: "address";
466
- readonly name: "migrationAdminAddress";
467
- readonly type: "address";
468
443
  }, {
469
444
  readonly internalType: "address";
470
445
  readonly name: "bondingPhaseSplitter";
@@ -57,11 +57,6 @@ export const BondkitTokenFactoryABI = [
57
57
  name: "ValidationInvalidLPSplitRatio",
58
58
  type: "error",
59
59
  },
60
- {
61
- inputs: [{ internalType: "address", name: "providedAddress", type: "address" }],
62
- name: "ValidationInvalidMigrationAdminAddress",
63
- type: "error",
64
- },
65
60
  {
66
61
  inputs: [{ internalType: "uint24", name: "value", type: "uint24" }],
67
62
  name: "ValidationInvalidV4PoolFee",
@@ -80,7 +75,6 @@ export const BondkitTokenFactoryABI = [
80
75
  { indexed: false, internalType: "string", name: "name", type: "string" },
81
76
  { indexed: false, internalType: "string", name: "symbol", type: "string" },
82
77
  { indexed: true, internalType: "address", name: "feeRecipient", type: "address" },
83
- { indexed: false, internalType: "address", name: "migrationAdmin", type: "address" },
84
78
  ],
85
79
  name: "BondkitTokenCreated",
86
80
  type: "event",
@@ -132,7 +126,6 @@ export const BondkitTokenFactoryABI = [
132
126
  { internalType: "uint256", name: "lpSplitRatioFeeRecipientBps", type: "uint256" },
133
127
  { internalType: "uint256", name: "targetAmount", type: "uint256" },
134
128
  { internalType: "address", name: "tradingToken", type: "address" },
135
- { internalType: "address", name: "migrationAdminAddress", type: "address" },
136
129
  { internalType: "address", name: "bondingPhaseSplitter", type: "address" },
137
130
  { internalType: "address", name: "v4PoolManager", type: "address" },
138
131
  { internalType: "address", name: "v4Hook", type: "address" },
@@ -175,7 +168,6 @@ export const BondkitTokenFactoryABI = [
175
168
  { internalType: "uint256", name: "lpSplitRatioFeeRecipientBps", type: "uint256" },
176
169
  { internalType: "uint256", name: "targetAmount", type: "uint256" },
177
170
  { internalType: "address", name: "tradingToken", type: "address" },
178
- { internalType: "address", name: "migrationAdminAddress", type: "address" },
179
171
  { internalType: "address", name: "bondingPhaseSplitter", type: "address" },
180
172
  { internalType: "address", name: "v4PoolManager", type: "address" },
181
173
  { internalType: "address", name: "v4Hook", type: "address" },
@@ -227,7 +219,6 @@ export const BondkitTokenFactoryABI = [
227
219
  { internalType: "uint256", name: "lpSplitRatioFeeRecipientBps", type: "uint256" },
228
220
  { internalType: "uint256", name: "targetAmount", type: "uint256" },
229
221
  { internalType: "address", name: "tradingToken", type: "address" },
230
- { internalType: "address", name: "migrationAdminAddress", type: "address" },
231
222
  { internalType: "address", name: "bondingPhaseSplitter", type: "address" },
232
223
  { internalType: "address", name: "v4PoolManager", type: "address" },
233
224
  { internalType: "address", name: "v4Hook", type: "address" },
@@ -1,2 +1,2 @@
1
- export const BaseBondkitTokenFactoryContractAddress = "0x0ccA36e9BE8Fdf456dE4BC20b378B1560Aeb6653";
1
+ export const BaseBondkitTokenFactoryContractAddress = "0x5d641bbB206d4B5585eCCd919F36270200A9A2Ad";
2
2
  export const BaseMainnetRpcUrl = "https://base-rpc.publicnode.com";
@@ -300,6 +300,8 @@ export interface AnySpendDepositHypeProps extends BaseModalProps {
300
300
  paymentType?: "crypto" | "fiat";
301
301
  /** Deposit contract address */
302
302
  depositContractAddress: string;
303
+ /** Main footer */
304
+ mainFooter?: React.ReactNode;
303
305
  /** Callback function called when the deposit is successful */
304
306
  onSuccess?: () => void;
305
307
  }