@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.
- package/dist/cjs/anyspend/constants/index.d.ts +1 -0
- package/dist/cjs/anyspend/constants/index.js +2 -1
- package/dist/cjs/anyspend/react/components/AnySpend.js +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +1 -1
- package/dist/cjs/anyspend/react/components/AnyspendDepositHype.d.ts +4 -2
- package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +9 -8
- package/dist/cjs/anyspend/react/components/common/OrderDetailsCollapsible.js +6 -4
- package/dist/cjs/anyspend/react/components/common/OrderStatus.d.ts +2 -0
- package/dist/cjs/anyspend/react/components/common/OrderStatus.js +2 -2
- package/dist/cjs/bondkit/abis/BondkitTokenABI.d.ts +60 -12
- package/dist/cjs/bondkit/abis/BondkitTokenABI.js +39 -6
- package/dist/cjs/bondkit/abis/BondkitTokenFactoryABI.d.ts +0 -25
- package/dist/cjs/bondkit/abis/BondkitTokenFactoryABI.js +0 -9
- package/dist/cjs/bondkit/constants.js +1 -1
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +2 -0
- package/dist/esm/anyspend/constants/index.d.ts +1 -0
- package/dist/esm/anyspend/constants/index.js +1 -0
- package/dist/esm/anyspend/react/components/AnySpend.js +1 -1
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +1 -1
- package/dist/esm/anyspend/react/components/AnyspendDepositHype.d.ts +4 -2
- package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +11 -10
- package/dist/esm/anyspend/react/components/common/OrderDetailsCollapsible.js +7 -5
- package/dist/esm/anyspend/react/components/common/OrderStatus.d.ts +2 -0
- package/dist/esm/anyspend/react/components/common/OrderStatus.js +2 -2
- package/dist/esm/bondkit/abis/BondkitTokenABI.d.ts +60 -12
- package/dist/esm/bondkit/abis/BondkitTokenABI.js +39 -6
- package/dist/esm/bondkit/abis/BondkitTokenFactoryABI.d.ts +0 -25
- package/dist/esm/bondkit/abis/BondkitTokenFactoryABI.js +0 -9
- package/dist/esm/bondkit/constants.js +1 -1
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +2 -0
- package/dist/styles/index.css +1 -1
- package/dist/types/anyspend/constants/index.d.ts +1 -0
- package/dist/types/anyspend/react/components/AnyspendDepositHype.d.ts +4 -2
- package/dist/types/anyspend/react/components/common/OrderStatus.d.ts +2 -0
- package/dist/types/bondkit/abis/BondkitTokenABI.d.ts +60 -12
- package/dist/types/bondkit/abis/BondkitTokenFactoryABI.d.ts +0 -25
- package/dist/types/global-account/react/stores/useModalStore.d.ts +2 -0
- package/package.json +1 -1
- package/src/anyspend/constants/index.ts +2 -0
- package/src/anyspend/react/components/AnySpend.tsx +1 -1
- package/src/anyspend/react/components/AnySpendCustom.tsx +1 -1
- package/src/anyspend/react/components/AnyspendDepositHype.tsx +131 -129
- package/src/anyspend/react/components/common/OrderDetailsCollapsible.tsx +10 -4
- package/src/anyspend/react/components/common/OrderStatus.tsx +9 -2
- package/src/bondkit/abis/BondkitTokenABI.ts +39 -6
- package/src/bondkit/abis/BondkitTokenFactoryABI.ts +0 -9
- package/src/bondkit/constants.ts +1 -1
- package/src/global-account/react/stores/useModalStore.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VENDOR_DISPLAY_NAMES = exports.PAYMENT_METHOD_ICONS = exports.STRIPE_CONFIG = exports.DEFAULT_NFT_CONTRACT = exports.NFT_CONTRACTS = exports.ETH_BASE = exports.USDC_BASE = exports.B3_TOKEN = exports.SOLANA_TOKEN_2022_PROGRAM_ID = exports.SOLANA_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID = exports.RELAY_SOLANA_MAINNET_CHAIN_ID = exports.RELAY_SOL_ADDRESS = exports.RELAY_ETH_ADDRESS = exports.ANYSPEND_MAINNET_BASE_URL = void 0;
|
|
3
|
+
exports.DEPOSIT_HYPE_ACTION = exports.VENDOR_DISPLAY_NAMES = exports.PAYMENT_METHOD_ICONS = exports.STRIPE_CONFIG = exports.DEFAULT_NFT_CONTRACT = exports.NFT_CONTRACTS = exports.ETH_BASE = exports.USDC_BASE = exports.B3_TOKEN = exports.SOLANA_TOKEN_2022_PROGRAM_ID = exports.SOLANA_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID = exports.RELAY_SOLANA_MAINNET_CHAIN_ID = exports.RELAY_SOL_ADDRESS = exports.RELAY_ETH_ADDRESS = exports.ANYSPEND_MAINNET_BASE_URL = void 0;
|
|
4
4
|
const chains_1 = require("viem/chains");
|
|
5
5
|
exports.ANYSPEND_MAINNET_BASE_URL = process.env.NEXT_PUBLIC_ANYSPEND_BASE_URL || "https://mainnet.anyspend.com";
|
|
6
6
|
exports.RELAY_ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
@@ -81,3 +81,4 @@ exports.VENDOR_DISPLAY_NAMES = {
|
|
|
81
81
|
stripe: "Stripe",
|
|
82
82
|
unknown: "Unknown Vendor",
|
|
83
83
|
};
|
|
84
|
+
exports.DEPOSIT_HYPE_ACTION = "deposit_hype";
|
|
@@ -657,7 +657,7 @@ function AnySpendInner({ destinationTokenAddress, destinationTokenChainId, mode
|
|
|
657
657
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
658
658
|
}, [activePanel]);
|
|
659
659
|
const historyView = ((0, jsx_runtime_1.jsx)("div", { className: "mx-auto flex w-[560px] max-w-full flex-col items-center", children: (0, jsx_runtime_1.jsx)(OrderHistory_1.OrderHistory, { mode: mode, onBack: () => setActivePanel(PanelView.MAIN), onSelectOrder: onSelectOrder }) }));
|
|
660
|
-
const orderDetailsView = ((0, jsx_runtime_1.jsx)("div", { className: "mx-auto w-[460px] max-w-full", children: (0, jsx_runtime_1.jsx)("div", { className: "relative flex flex-col gap-4", children: oat && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OrderStatus_1.OrderStatus, { order: oat.data.order }), (0, jsx_runtime_1.jsx)(OrderDetails_1.OrderDetails, { mode: mode, order: oat.data.order, depositTxs: oat.data.depositTxs, relayTx: oat.data.relayTx, executeTx: oat.data.executeTx, refundTxs: oat.data.refundTxs, onBack: () => {
|
|
660
|
+
const orderDetailsView = ((0, jsx_runtime_1.jsx)("div", { className: "mx-auto w-[460px] max-w-full", children: (0, jsx_runtime_1.jsx)("div", { className: "relative flex flex-col gap-4", children: oat && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OrderStatus_1.OrderStatus, { order: oat.data.order, selectedCryptoPaymentMethod: selectedCryptoPaymentMethod }), (0, jsx_runtime_1.jsx)(OrderDetails_1.OrderDetails, { mode: mode, order: oat.data.order, depositTxs: oat.data.depositTxs, relayTx: oat.data.relayTx, executeTx: oat.data.executeTx, refundTxs: oat.data.refundTxs, onBack: () => {
|
|
661
661
|
setOrderId(undefined);
|
|
662
662
|
setActivePanel(PanelView.MAIN);
|
|
663
663
|
setSelectedCryptoPaymentMethod(CryptoPaymentMethod_1.CryptoPaymentMethodType.NONE); // Reset payment method when going back
|
|
@@ -419,7 +419,7 @@ function AnySpendCustomInner({ loadOrder, mode = "modal", activeTab: activeTabPr
|
|
|
419
419
|
const historyView = ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("mx-auto flex w-full max-w-2xl flex-col items-center p-5", mode === "modal" && "bg-b3-react-background"), children: (0, jsx_runtime_1.jsx)(OrderHistory_1.OrderHistory, { mode: mode, onBack: () => {
|
|
420
420
|
setActivePanel(PanelView.HISTORY);
|
|
421
421
|
}, onSelectOrder: onSelectOrder }) }));
|
|
422
|
-
const orderDetailsView = ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("mx-auto flex w-full flex-col items-center gap-4", mode === "modal" && "bg-b3-react-background rounded-xl"), children: [oat && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OrderStatus_1.OrderStatus, { order: oat.data.order }), (0, jsx_runtime_1.jsx)(OrderDetails_1.OrderDetails, { mode: mode, order: oat.data.order, depositTxs: oat.data.depositTxs, relayTx: oat.data.relayTx, executeTx: oat.data.executeTx, refundTxs: oat.data.refundTxs, cryptoPaymentMethod: activeTab === "fiat" ? CryptoPaymentMethod_1.CryptoPaymentMethodType.NONE : selectedCryptoPaymentMethod, onBack: () => {
|
|
422
|
+
const orderDetailsView = ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("mx-auto flex w-full flex-col items-center gap-4", mode === "modal" && "bg-b3-react-background rounded-xl"), children: [oat && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OrderStatus_1.OrderStatus, { order: oat.data.order, selectedCryptoPaymentMethod: selectedCryptoPaymentMethod }), (0, jsx_runtime_1.jsx)(OrderDetails_1.OrderDetails, { mode: mode, order: oat.data.order, depositTxs: oat.data.depositTxs, relayTx: oat.data.relayTx, executeTx: oat.data.executeTx, refundTxs: oat.data.refundTxs, cryptoPaymentMethod: activeTab === "fiat" ? CryptoPaymentMethod_1.CryptoPaymentMethodType.NONE : selectedCryptoPaymentMethod, onBack: () => {
|
|
423
423
|
setOrderId(undefined);
|
|
424
424
|
setActivePanel(PanelView.CONFIRM_ORDER);
|
|
425
425
|
// Remove orderId from URL when canceling
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface AnySpendDepositHypeProps {
|
|
2
2
|
loadOrder?: string;
|
|
3
3
|
mode?: "modal" | "page";
|
|
4
4
|
recipientAddress: string;
|
|
@@ -7,4 +7,6 @@ export declare function AnySpendDepositHype(props: {
|
|
|
7
7
|
sourceTokenChainId?: number;
|
|
8
8
|
onSuccess?: () => void;
|
|
9
9
|
depositContractAddress?: string;
|
|
10
|
-
|
|
10
|
+
mainFooter?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function AnySpendDepositHype(props: AnySpendDepositHypeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -40,7 +40,7 @@ function AnySpendDepositHype(props) {
|
|
|
40
40
|
const fingerprintConfig = (0, AnySpendFingerprintWrapper_1.getFingerprintConfig)();
|
|
41
41
|
return ((0, jsx_runtime_1.jsx)(AnySpendFingerprintWrapper_1.AnySpendFingerprintWrapper, { fingerprint: fingerprintConfig, children: (0, jsx_runtime_1.jsx)(AnySpendDepositHypeInner, { ...props }) }));
|
|
42
42
|
}
|
|
43
|
-
function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress, paymentType = "crypto", sourceTokenAddress, sourceTokenChainId, onSuccess, depositContractAddress, }) {
|
|
43
|
+
function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress, paymentType = "crypto", sourceTokenAddress, sourceTokenChainId, onSuccess, depositContractAddress, mainFooter, }) {
|
|
44
44
|
// Use shared flow hook
|
|
45
45
|
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, } = (0, useAnyspendFlow_1.useAnyspendFlow)({
|
|
46
46
|
paymentType,
|
|
@@ -122,6 +122,10 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
|
|
|
122
122
|
await handleFiatOrder();
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
+
const mainView = ((0, jsx_runtime_1.jsxs)("div", { className: "mx-auto flex w-[460px] max-w-full flex-col items-center gap-2", children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-4 flex flex-col items-center gap-3 text-center", children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("h1", { className: "text-as-primary text-xl font-bold", children: paymentType === "crypto" ? "Deposit Crypto" : "Fund with Fiat" }) }) }), (0, jsx_runtime_1.jsx)("div", { className: "relative flex w-full max-w-[calc(100vw-32px)] flex-col gap-2", children: (0, jsx_runtime_1.jsxs)("div", { className: "relative flex w-full max-w-[calc(100vw-32px)] flex-col gap-2", children: [paymentType === "crypto" ? ((0, jsx_runtime_1.jsx)(PaySection_1.PaySection, { paymentType: "crypto", selectedSrcChainId: selectedSrcChainId, setSelectedSrcChainId: setSelectedSrcChainId, selectedSrcToken: selectedSrcToken, setSelectedSrcToken: setSelectedSrcToken, srcAmount: srcAmount, setSrcAmount: setSrcAmount, setIsSrcInputDirty: setIsSrcInputDirty, selectedCryptoPaymentMethod: selectedCryptoPaymentMethod, selectedFiatPaymentMethod: selectedFiatPaymentMethod, onSelectCryptoPaymentMethod: () => setActivePanel(useAnyspendFlow_1.PanelView.CRYPTO_PAYMENT_METHOD), onSelectFiatPaymentMethod: () => setActivePanel(useAnyspendFlow_1.PanelView.FIAT_PAYMENT_METHOD), anyspendQuote: anyspendQuote })) : ((0, jsx_runtime_1.jsx)(react_2.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: (0, jsx_runtime_1.jsx)(PanelOnramp_1.PanelOnramp, { srcAmountOnRamp: srcAmount, setSrcAmountOnRamp: setSrcAmount, selectedPaymentMethod: selectedFiatPaymentMethod, setActivePanel: setActivePanel, _recipientAddress: recipientAddress, destinationToken: anyspend_1.B3_TOKEN, destinationChainId: chains_1.base.id, destinationAmount: dstAmount, onDestinationTokenChange: () => { }, onDestinationChainChange: () => { }, fiatPaymentMethodIndex: useAnyspendFlow_1.PanelView.FIAT_PAYMENT_METHOD }) })), (0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)("relative -my-1 flex h-0 items-center justify-center", paymentType === "fiat" && "hidden"), children: (0, jsx_runtime_1.jsx)(react_1.Button, { variant: "ghost", className: (0, cn_1.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: (0, jsx_runtime_1.jsx)("div", { className: "relative flex items-center justify-center transition-opacity", children: (0, jsx_runtime_1.jsx)(lucide_react_1.ArrowDown, { className: "text-as-primary/50 h-5 w-5" }) }) }) }), paymentType === "crypto" && ((0, jsx_runtime_1.jsx)(CryptoReceiveSection_1.CryptoReceiveSection, { isDepositMode: false, isBuyMode: true, selectedRecipientAddress: recipientAddress, recipientName: recipientName || undefined, onSelectRecipient: () => setActivePanel(useAnyspendFlow_1.PanelView.RECIPIENT_SELECTION), dstAmount: dstAmount, dstToken: anyspend_1.B3_TOKEN, selectedDstChainId: chains_1.base.id, setSelectedDstChainId: () => { }, setSelectedDstToken: () => { }, onChangeDstAmount: value => {
|
|
126
|
+
setIsSrcInputDirty(false);
|
|
127
|
+
setSrcAmount(value);
|
|
128
|
+
}, anyspendQuote: anyspendQuote }))] }) }), (0, jsx_runtime_1.jsx)(ErrorSection_1.ErrorSection, { error: getAnyspendQuoteError }), (0, jsx_runtime_1.jsx)(react_2.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: (0, cn_1.cn)("mt-4 flex w-full max-w-[460px] flex-col gap-2", getAnyspendQuoteError && "mt-0"), children: (0, jsx_runtime_1.jsx)(react_1.ShinyButton, { accentColor: "hsl(var(--as-brand))", disabled: btnInfo.disable, onClick: onMainButtonClick, className: (0, cn_1.cn)("as-main-button relative w-full", btnInfo.error ? "!bg-as-red" : btnInfo.disable ? "!bg-as-on-surface-2" : "!bg-as-brand"), textClassName: (0, cn_1.cn)(btnInfo.error ? "text-white" : btnInfo.disable ? "text-as-secondary" : "text-white"), children: btnInfo.text }) }), mainFooter ? mainFooter : null] }));
|
|
125
129
|
// Handle crypto order creation
|
|
126
130
|
const handleCryptoOrder = async () => {
|
|
127
131
|
try {
|
|
@@ -144,7 +148,7 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
|
|
|
144
148
|
amount: depositAmountWei,
|
|
145
149
|
data: encodedData,
|
|
146
150
|
to: depositContractAddress,
|
|
147
|
-
action:
|
|
151
|
+
action: anyspend_1.DEPOSIT_HYPE_ACTION,
|
|
148
152
|
},
|
|
149
153
|
});
|
|
150
154
|
}
|
|
@@ -206,7 +210,7 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
|
|
|
206
210
|
amount: depositAmountWei,
|
|
207
211
|
data: encodedData,
|
|
208
212
|
to: depositContractAddress,
|
|
209
|
-
action:
|
|
213
|
+
action: anyspend_1.DEPOSIT_HYPE_ACTION,
|
|
210
214
|
},
|
|
211
215
|
});
|
|
212
216
|
}
|
|
@@ -216,7 +220,7 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
|
|
|
216
220
|
}
|
|
217
221
|
};
|
|
218
222
|
// Order details view
|
|
219
|
-
const orderDetailsView = ((0, jsx_runtime_1.jsx)("div", { className: "mx-auto w-[460px] max-w-full", children: (0, jsx_runtime_1.jsx)("div", { className: "relative flex flex-col gap-4", children: oat && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OrderStatus_1.OrderStatus, { order: oat.data.order }), (0, jsx_runtime_1.jsx)(OrderDetails_1.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" ? CryptoPaymentMethod_1.CryptoPaymentMethodType.NONE : selectedCryptoPaymentMethod, onBack: () => {
|
|
223
|
+
const orderDetailsView = ((0, jsx_runtime_1.jsx)("div", { className: "mx-auto w-[460px] max-w-full", children: (0, jsx_runtime_1.jsx)("div", { className: "relative flex flex-col gap-4", children: oat && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OrderStatus_1.OrderStatus, { order: oat.data.order, selectedCryptoPaymentMethod: selectedCryptoPaymentMethod }), (0, jsx_runtime_1.jsx)(OrderDetails_1.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" ? CryptoPaymentMethod_1.CryptoPaymentMethodType.NONE : selectedCryptoPaymentMethod, onBack: () => {
|
|
220
224
|
setActivePanel(useAnyspendFlow_1.PanelView.MAIN);
|
|
221
225
|
onSuccess?.();
|
|
222
226
|
} })] })) }) }));
|
|
@@ -250,10 +254,7 @@ function AnySpendDepositHypeInner({ loadOrder, mode = "modal", recipientAddress,
|
|
|
250
254
|
center: { x: 0, opacity: 1 },
|
|
251
255
|
exit: { x: -300, opacity: 0 },
|
|
252
256
|
}, transition: { type: "spring", stiffness: 300, damping: 30 }, children: [
|
|
253
|
-
(0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)(mode === "page" && "p-6"), children:
|
|
254
|
-
setIsSrcInputDirty(false);
|
|
255
|
-
setSrcAmount(value);
|
|
256
|
-
}, anyspendQuote: anyspendQuote }))] }) }), (0, jsx_runtime_1.jsx)(ErrorSection_1.ErrorSection, { error: getAnyspendQuoteError }), (0, jsx_runtime_1.jsx)(react_2.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: (0, cn_1.cn)("mt-4 flex w-full max-w-[460px] flex-col gap-2", getAnyspendQuoteError && "mt-0"), children: (0, jsx_runtime_1.jsx)(react_1.ShinyButton, { accentColor: "hsl(var(--as-brand))", disabled: btnInfo.disable, onClick: onMainButtonClick, className: (0, cn_1.cn)("as-main-button relative w-full", btnInfo.error ? "!bg-as-red" : btnInfo.disable ? "!bg-as-on-surface-2" : "!bg-as-brand"), textClassName: (0, cn_1.cn)(btnInfo.error ? "text-white" : btnInfo.disable ? "text-as-secondary" : "text-white"), children: btnInfo.text }) })] }) }, "main-view"),
|
|
257
|
+
(0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)(mode === "page" && "p-6"), children: mainView }, "main-view"),
|
|
257
258
|
(0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)(mode === "page" && "p-6"), children: cryptoPaymentMethodView }, "crypto-payment-method-view"),
|
|
258
259
|
(0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)(mode === "page" && "p-6"), children: fiatPaymentMethodView }, "fiat-payment-method-view"),
|
|
259
260
|
(0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)(mode === "page" && "p-6"), children: recipientSelectionView }, "recipient-selection-view"),
|
|
@@ -35,8 +35,10 @@ exports.OrderDetailsCollapsible = (0, react_3.memo)(function OrderDetailsCollaps
|
|
|
35
35
|
: order.type === "fund_tournament"
|
|
36
36
|
? "Fund tournament"
|
|
37
37
|
: order.type === "custom"
|
|
38
|
-
? order.metadata.action
|
|
39
|
-
?
|
|
40
|
-
:
|
|
41
|
-
|
|
38
|
+
? order.metadata.action === anyspend_1.DEPOSIT_HYPE_ACTION
|
|
39
|
+
? "Deposit HYPE"
|
|
40
|
+
: order.metadata.action
|
|
41
|
+
? (0, anyspend_1.capitalizeFirstLetter)(order.metadata.action)
|
|
42
|
+
: "Contract execution"
|
|
43
|
+
: "" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-end gap-2", children: [order.type === "swap" ? (`~${finalFormattedExpectedDstAmount} ${dstToken.symbol}`) : order.type === "mint_nft" ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("img", { src: nft?.imageUrl, alt: nft?.name || "NFT", className: "h-5 w-5" }), (0, jsx_runtime_1.jsx)("div", { children: nft?.name || "NFT" })] })) : order.type === "join_tournament" || order.type === "fund_tournament" ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("img", { src: tournament?.imageUrl, alt: tournament?.name || "Tournament", className: "h-5 w-5" }), (0, jsx_runtime_1.jsx)("div", { children: tournament?.name || "Tournament" })] })) : order.type === "custom" && order.metadata.action === anyspend_1.DEPOSIT_HYPE_ACTION ? ((0, jsx_runtime_1.jsx)("div", { className: "flex items-center gap-2", children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, number_1.formatTokenAmount)(BigInt(order.payload.amount), dstToken.decimals), " HYPE"] }) })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "text-as-primary/50 flex items-center gap-2", children: [(0, jsx_runtime_1.jsxs)("span", { children: ["on ", order.dstChain !== chains_1.b3.id && (0, anyspend_1.getChainName)(order.dstChain)] }), (0, jsx_runtime_1.jsx)("img", { src: anyspend_1.ALL_CHAINS[order.dstChain].logoUrl, alt: (0, anyspend_1.getChainName)(order.dstChain), className: (0, utils_1.cn)("h-3", order.dstChain !== chains_1.b3.id && "w-3 rounded-full", order.dstChain === chains_1.b3.id && "h-4") })] })] })] }), (0, jsx_runtime_1.jsx)("div", { className: "divider w-full" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full justify-between gap-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-as-tertiarry", children: showTotal ? "Total (included fee)" : "Order ID" }), (0, jsx_runtime_1.jsx)("div", { className: "text-as-primary overflow-hidden text-ellipsis whitespace-nowrap", children: showTotal && totalAmount ? totalAmount : order.id })] })] }) })) : ((0, jsx_runtime_1.jsxs)("div", { className: "flex w-full items-center", children: [(0, jsx_runtime_1.jsx)("div", { className: "divider w-full" }), (0, jsx_runtime_1.jsx)("button", { className: "whitespace-nowrap text-sm", onClick: () => setShowOrderDetails(true), children: "Order Details" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { className: "text-as-primary mx-1 h-4 min-h-4 w-4 min-w-4" }), (0, jsx_runtime_1.jsx)("div", { className: "divider w-full" })] })) }));
|
|
42
44
|
});
|
|
@@ -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
|
}>;
|
|
@@ -7,11 +7,11 @@ const react_1 = require("../../../../shared/react");
|
|
|
7
7
|
const lucide_react_1 = require("lucide-react");
|
|
8
8
|
const react_2 = require("react");
|
|
9
9
|
const StepProgress_1 = require("./StepProgress");
|
|
10
|
-
exports.OrderStatus = (0, react_2.memo)(function OrderStatus({ order }) {
|
|
10
|
+
exports.OrderStatus = (0, react_2.memo)(function OrderStatus({ order, selectedCryptoPaymentMethod, }) {
|
|
11
11
|
const isComplete = order.status === "executed";
|
|
12
12
|
const { text, status: displayStatus, description } = (0, anyspend_1.getStatusDisplay)(order);
|
|
13
13
|
const searchParams = (0, react_1.useSearchParams)();
|
|
14
|
-
const cryptoPaymentMethod = searchParams.get("cryptoPaymentMethod");
|
|
14
|
+
const cryptoPaymentMethod = selectedCryptoPaymentMethod || searchParams.get("cryptoPaymentMethod");
|
|
15
15
|
console.log("OrderStatus", displayStatus);
|
|
16
16
|
console.log("OrderStatus", order);
|
|
17
17
|
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";
|
|
@@ -161,11 +161,6 @@ exports.BondkitTokenABI = [
|
|
|
161
161
|
name: "ValidationInvalidLPSplitRatio",
|
|
162
162
|
type: "error",
|
|
163
163
|
},
|
|
164
|
-
{
|
|
165
|
-
inputs: [{ internalType: "address", name: "providedAddress", type: "address" }],
|
|
166
|
-
name: "ValidationInvalidMigrationAdminAddress",
|
|
167
|
-
type: "error",
|
|
168
|
-
},
|
|
169
164
|
{
|
|
170
165
|
inputs: [{ internalType: "uint24", name: "value", type: "uint24" }],
|
|
171
166
|
name: "ValidationInvalidV4PoolFee",
|
|
@@ -186,6 +181,15 @@ exports.BondkitTokenABI = [
|
|
|
186
181
|
name: "Approval",
|
|
187
182
|
type: "event",
|
|
188
183
|
},
|
|
184
|
+
{
|
|
185
|
+
anonymous: false,
|
|
186
|
+
inputs: [
|
|
187
|
+
{ indexed: true, internalType: "address", name: "previousAdmin", type: "address" },
|
|
188
|
+
{ indexed: true, internalType: "address", name: "newAdmin", type: "address" },
|
|
189
|
+
],
|
|
190
|
+
name: "B3AdminUpdated",
|
|
191
|
+
type: "event",
|
|
192
|
+
},
|
|
189
193
|
{
|
|
190
194
|
anonymous: false,
|
|
191
195
|
inputs: [
|
|
@@ -237,6 +241,15 @@ exports.BondkitTokenABI = [
|
|
|
237
241
|
name: "BondkitTokenMigrated",
|
|
238
242
|
type: "event",
|
|
239
243
|
},
|
|
244
|
+
{
|
|
245
|
+
anonymous: false,
|
|
246
|
+
inputs: [
|
|
247
|
+
{ indexed: false, internalType: "uint256", name: "totalRaisedBonding", type: "uint256" },
|
|
248
|
+
{ indexed: false, internalType: "uint256", name: "targetAmount", type: "uint256" },
|
|
249
|
+
],
|
|
250
|
+
name: "DexTriggerThresholdMet",
|
|
251
|
+
type: "event",
|
|
252
|
+
},
|
|
240
253
|
{
|
|
241
254
|
anonymous: false,
|
|
242
255
|
inputs: [
|
|
@@ -305,6 +318,13 @@ exports.BondkitTokenABI = [
|
|
|
305
318
|
stateMutability: "nonpayable",
|
|
306
319
|
type: "function",
|
|
307
320
|
},
|
|
321
|
+
{
|
|
322
|
+
inputs: [],
|
|
323
|
+
name: "b3Admin",
|
|
324
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
325
|
+
stateMutability: "view",
|
|
326
|
+
type: "function",
|
|
327
|
+
},
|
|
308
328
|
{
|
|
309
329
|
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
310
330
|
name: "balanceOf",
|
|
@@ -400,6 +420,13 @@ exports.BondkitTokenABI = [
|
|
|
400
420
|
stateMutability: "view",
|
|
401
421
|
type: "function",
|
|
402
422
|
},
|
|
423
|
+
{
|
|
424
|
+
inputs: [],
|
|
425
|
+
name: "getB3Admin",
|
|
426
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
427
|
+
stateMutability: "view",
|
|
428
|
+
type: "function",
|
|
429
|
+
},
|
|
403
430
|
{
|
|
404
431
|
inputs: [],
|
|
405
432
|
name: "getBondingCurveConfig",
|
|
@@ -542,7 +569,6 @@ exports.BondkitTokenABI = [
|
|
|
542
569
|
{ internalType: "uint256", name: "lpSplitRatioFeeRecipientBps", type: "uint256" },
|
|
543
570
|
{ internalType: "uint256", name: "targetAmount", type: "uint256" },
|
|
544
571
|
{ internalType: "address", name: "tradingToken", type: "address" },
|
|
545
|
-
{ internalType: "address", name: "migrationAdminAddress", type: "address" },
|
|
546
572
|
{ internalType: "address", name: "bondingPhaseSplitter", type: "address" },
|
|
547
573
|
{ internalType: "address", name: "v4PoolManager", type: "address" },
|
|
548
574
|
{ internalType: "address", name: "v4Hook", type: "address" },
|
|
@@ -662,6 +688,13 @@ exports.BondkitTokenABI = [
|
|
|
662
688
|
stateMutability: "nonpayable",
|
|
663
689
|
type: "function",
|
|
664
690
|
},
|
|
691
|
+
{
|
|
692
|
+
inputs: [{ internalType: "address", name: "_newAdmin", type: "address" }],
|
|
693
|
+
name: "updateB3Admin",
|
|
694
|
+
outputs: [],
|
|
695
|
+
stateMutability: "nonpayable",
|
|
696
|
+
type: "function",
|
|
697
|
+
},
|
|
665
698
|
{
|
|
666
699
|
inputs: [{ internalType: "address", name: "_bondingPhaseSplitter", type: "address" }],
|
|
667
700
|
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";
|
|
@@ -60,11 +60,6 @@ exports.BondkitTokenFactoryABI = [
|
|
|
60
60
|
name: "ValidationInvalidLPSplitRatio",
|
|
61
61
|
type: "error",
|
|
62
62
|
},
|
|
63
|
-
{
|
|
64
|
-
inputs: [{ internalType: "address", name: "providedAddress", type: "address" }],
|
|
65
|
-
name: "ValidationInvalidMigrationAdminAddress",
|
|
66
|
-
type: "error",
|
|
67
|
-
},
|
|
68
63
|
{
|
|
69
64
|
inputs: [{ internalType: "uint24", name: "value", type: "uint24" }],
|
|
70
65
|
name: "ValidationInvalidV4PoolFee",
|
|
@@ -83,7 +78,6 @@ exports.BondkitTokenFactoryABI = [
|
|
|
83
78
|
{ indexed: false, internalType: "string", name: "name", type: "string" },
|
|
84
79
|
{ indexed: false, internalType: "string", name: "symbol", type: "string" },
|
|
85
80
|
{ indexed: true, internalType: "address", name: "feeRecipient", type: "address" },
|
|
86
|
-
{ indexed: false, internalType: "address", name: "migrationAdmin", type: "address" },
|
|
87
81
|
],
|
|
88
82
|
name: "BondkitTokenCreated",
|
|
89
83
|
type: "event",
|
|
@@ -135,7 +129,6 @@ exports.BondkitTokenFactoryABI = [
|
|
|
135
129
|
{ internalType: "uint256", name: "lpSplitRatioFeeRecipientBps", type: "uint256" },
|
|
136
130
|
{ internalType: "uint256", name: "targetAmount", type: "uint256" },
|
|
137
131
|
{ internalType: "address", name: "tradingToken", type: "address" },
|
|
138
|
-
{ internalType: "address", name: "migrationAdminAddress", type: "address" },
|
|
139
132
|
{ internalType: "address", name: "bondingPhaseSplitter", type: "address" },
|
|
140
133
|
{ internalType: "address", name: "v4PoolManager", type: "address" },
|
|
141
134
|
{ internalType: "address", name: "v4Hook", type: "address" },
|
|
@@ -178,7 +171,6 @@ exports.BondkitTokenFactoryABI = [
|
|
|
178
171
|
{ internalType: "uint256", name: "lpSplitRatioFeeRecipientBps", type: "uint256" },
|
|
179
172
|
{ internalType: "uint256", name: "targetAmount", type: "uint256" },
|
|
180
173
|
{ internalType: "address", name: "tradingToken", type: "address" },
|
|
181
|
-
{ internalType: "address", name: "migrationAdminAddress", type: "address" },
|
|
182
174
|
{ internalType: "address", name: "bondingPhaseSplitter", type: "address" },
|
|
183
175
|
{ internalType: "address", name: "v4PoolManager", type: "address" },
|
|
184
176
|
{ internalType: "address", name: "v4Hook", type: "address" },
|
|
@@ -230,7 +222,6 @@ exports.BondkitTokenFactoryABI = [
|
|
|
230
222
|
{ internalType: "uint256", name: "lpSplitRatioFeeRecipientBps", type: "uint256" },
|
|
231
223
|
{ internalType: "uint256", name: "targetAmount", type: "uint256" },
|
|
232
224
|
{ internalType: "address", name: "tradingToken", type: "address" },
|
|
233
|
-
{ internalType: "address", name: "migrationAdminAddress", type: "address" },
|
|
234
225
|
{ internalType: "address", name: "bondingPhaseSplitter", type: "address" },
|
|
235
226
|
{ internalType: "address", name: "v4PoolManager", type: "address" },
|
|
236
227
|
{ internalType: "address", name: "v4Hook", type: "address" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseMainnetRpcUrl = exports.BaseBondkitTokenFactoryContractAddress = void 0;
|
|
4
|
-
exports.BaseBondkitTokenFactoryContractAddress = "
|
|
4
|
+
exports.BaseBondkitTokenFactoryContractAddress = "0x5d641bbB206d4B5585eCCd919F36270200A9A2Ad";
|
|
5
5
|
exports.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
|
}
|
|
@@ -650,7 +650,7 @@ function AnySpendInner({ destinationTokenAddress, destinationTokenChainId, mode
|
|
|
650
650
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
651
651
|
}, [activePanel]);
|
|
652
652
|
const historyView = (_jsx("div", { className: "mx-auto flex w-[560px] max-w-full flex-col items-center", children: _jsx(OrderHistory, { mode: mode, onBack: () => setActivePanel(PanelView.MAIN), onSelectOrder: onSelectOrder }) }));
|
|
653
|
-
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, onBack: () => {
|
|
653
|
+
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, onBack: () => {
|
|
654
654
|
setOrderId(undefined);
|
|
655
655
|
setActivePanel(PanelView.MAIN);
|
|
656
656
|
setSelectedCryptoPaymentMethod(CryptoPaymentMethodType.NONE); // Reset payment method when going back
|
|
@@ -413,7 +413,7 @@ function AnySpendCustomInner({ loadOrder, mode = "modal", activeTab: activeTabPr
|
|
|
413
413
|
const historyView = (_jsx("div", { className: cn("mx-auto flex w-full max-w-2xl flex-col items-center p-5", mode === "modal" && "bg-b3-react-background"), children: _jsx(OrderHistory, { mode: mode, onBack: () => {
|
|
414
414
|
setActivePanel(PanelView.HISTORY);
|
|
415
415
|
}, onSelectOrder: onSelectOrder }) }));
|
|
416
|
-
const orderDetailsView = (_jsxs("div", { className: cn("mx-auto flex w-full flex-col items-center gap-4", mode === "modal" && "bg-b3-react-background rounded-xl"), children: [oat && (_jsxs(_Fragment, { children: [_jsx(OrderStatusDisplay, { 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: activeTab === "fiat" ? CryptoPaymentMethodType.NONE : selectedCryptoPaymentMethod, onBack: () => {
|
|
416
|
+
const orderDetailsView = (_jsxs("div", { className: cn("mx-auto flex w-full flex-col items-center gap-4", mode === "modal" && "bg-b3-react-background rounded-xl"), children: [oat && (_jsxs(_Fragment, { children: [_jsx(OrderStatusDisplay, { 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: activeTab === "fiat" ? CryptoPaymentMethodType.NONE : selectedCryptoPaymentMethod, onBack: () => {
|
|
417
417
|
setOrderId(undefined);
|
|
418
418
|
setActivePanel(PanelView.CONFIRM_ORDER);
|
|
419
419
|
// Remove orderId from URL when canceling
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface AnySpendDepositHypeProps {
|
|
2
2
|
loadOrder?: string;
|
|
3
3
|
mode?: "modal" | "page";
|
|
4
4
|
recipientAddress: string;
|
|
@@ -7,4 +7,6 @@ export declare function AnySpendDepositHype(props: {
|
|
|
7
7
|
sourceTokenChainId?: number;
|
|
8
8
|
onSuccess?: () => void;
|
|
9
9
|
depositContractAddress?: string;
|
|
10
|
-
|
|
10
|
+
mainFooter?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function AnySpendDepositHype(props: AnySpendDepositHypeProps): import("react/jsx-runtime").JSX.Element;
|