@rhinestone/deposit-modal 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DepositModalReown-ICBGUVAA.cjs → DepositModalReown-J5YFZKFS.cjs} +9 -9
- package/dist/{DepositModalReown-IVRDXQAA.mjs → DepositModalReown-RZ6VSMKP.mjs} +6 -6
- package/dist/{WithdrawModalReown-O7PR343Z.mjs → WithdrawModalReown-4YUV2WWV.mjs} +5 -5
- package/dist/{WithdrawModalReown-6XWURPFZ.cjs → WithdrawModalReown-B6BGY52S.cjs} +8 -8
- package/dist/caip-C_ZYFIGa.d.cts +77 -0
- package/dist/caip-C_ZYFIGa.d.ts +77 -0
- package/dist/{chunk-NRNJAQUA.cjs → chunk-4IOQIWDY.cjs} +4 -4
- package/dist/{chunk-TCLBFO3S.mjs → chunk-5S5BQ2GM.mjs} +304 -115
- package/dist/{chunk-N73D3WN4.mjs → chunk-7JJ4EFDY.mjs} +13 -17
- package/dist/{chunk-VPWWFWZT.cjs → chunk-IRI34U6N.cjs} +331 -117
- package/dist/{chunk-SITLCMTI.cjs → chunk-JRFPKFL6.cjs} +102 -106
- package/dist/{chunk-7Q26RR6J.mjs → chunk-LXTAAHPC.mjs} +6 -4
- package/dist/{chunk-ABVRVW3P.cjs → chunk-PUMTR35E.cjs} +85 -31
- package/dist/{chunk-GBOCV2LQ.mjs → chunk-RXWJ267K.mjs} +366 -152
- package/dist/{chunk-WJX3TJFK.mjs → chunk-SX52FXKH.mjs} +84 -30
- package/dist/{chunk-F7P4MV72.mjs → chunk-TYB6AA6D.mjs} +1 -1
- package/dist/{chunk-VVKJRGX3.cjs → chunk-VURI4G2Z.cjs} +10 -8
- package/dist/{chunk-UEKPBRBY.cjs → chunk-WL7AXYQ4.cjs} +3 -3
- package/dist/{chunk-IZPUHIIN.cjs → chunk-XLXJW44N.cjs} +743 -554
- package/dist/{chunk-FJWLC4AM.mjs → chunk-YLIPI3NU.mjs} +1 -1
- package/dist/constants.cjs +4 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +5 -3
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +5 -5
- package/dist/index.cjs +11 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +12 -8
- package/dist/polymarket.cjs +6 -6
- package/dist/polymarket.mjs +3 -3
- package/dist/styles.css +86 -12
- package/dist/{types-6ROxwyfG.d.cts → types--LQWg_4W.d.cts} +1 -1
- package/dist/{types-6ROxwyfG.d.ts → types--LQWg_4W.d.ts} +1 -1
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
- package/dist/caip-CsslyHGL.d.cts +0 -62
- package/dist/caip-CsslyHGL.d.ts +0 -62
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
ProcessingStep,
|
|
13
13
|
RpcUrlsProvider,
|
|
14
14
|
Spinner,
|
|
15
|
+
TokenIcon,
|
|
15
16
|
WalletIcon,
|
|
16
17
|
accountFromPrivateKey,
|
|
17
18
|
applyTheme,
|
|
@@ -33,12 +34,12 @@ import {
|
|
|
33
34
|
useRpcUrls,
|
|
34
35
|
useStableRpcUrls,
|
|
35
36
|
useTokenPrices
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RXWJ267K.mjs";
|
|
37
38
|
import {
|
|
38
39
|
buildSafeTransaction,
|
|
39
40
|
executeSafeErc20Transfer,
|
|
40
41
|
executeSafeEthTransfer
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-TYB6AA6D.mjs";
|
|
42
43
|
import {
|
|
43
44
|
DEFAULT_BACKEND_URL,
|
|
44
45
|
DEFAULT_SIGNER_ADDRESS,
|
|
@@ -49,10 +50,9 @@ import {
|
|
|
49
50
|
getChainName,
|
|
50
51
|
getSupportedTargetTokens,
|
|
51
52
|
getTokenDecimalsByAddress,
|
|
52
|
-
getTokenIcon,
|
|
53
53
|
getTokenSymbol,
|
|
54
54
|
toEvmCaip2
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-SX52FXKH.mjs";
|
|
56
56
|
|
|
57
57
|
// src/WithdrawModal.tsx
|
|
58
58
|
import {
|
|
@@ -605,11 +605,10 @@ function WithdrawFormStep({
|
|
|
605
605
|
},
|
|
606
606
|
children: [
|
|
607
607
|
/* @__PURE__ */ jsxs("div", { className: "rs-withdraw-dropdown-value", children: [
|
|
608
|
-
|
|
609
|
-
|
|
608
|
+
/* @__PURE__ */ jsx(
|
|
609
|
+
TokenIcon,
|
|
610
610
|
{
|
|
611
|
-
|
|
612
|
-
alt: targetSymbol,
|
|
611
|
+
symbol: targetSymbol,
|
|
613
612
|
className: "rs-withdraw-dropdown-icon"
|
|
614
613
|
}
|
|
615
614
|
),
|
|
@@ -637,11 +636,10 @@ function WithdrawFormStep({
|
|
|
637
636
|
setShowTokenDropdown(false);
|
|
638
637
|
},
|
|
639
638
|
children: [
|
|
640
|
-
|
|
641
|
-
|
|
639
|
+
/* @__PURE__ */ jsx(
|
|
640
|
+
TokenIcon,
|
|
642
641
|
{
|
|
643
|
-
|
|
644
|
-
alt: option.symbol,
|
|
642
|
+
symbol: option.symbol,
|
|
645
643
|
className: "rs-withdraw-dropdown-icon"
|
|
646
644
|
}
|
|
647
645
|
),
|
|
@@ -701,8 +699,6 @@ function WithdrawReviewStep({
|
|
|
701
699
|
const targetSymbol = getTokenSymbol(targetToken, targetChain);
|
|
702
700
|
const targetChainName = getChainName(targetChain);
|
|
703
701
|
const targetChainIcon = getChainIcon(targetChain);
|
|
704
|
-
const sourceTokenIcon = getTokenIcon(sourceSymbol);
|
|
705
|
-
const targetTokenIcon = getTokenIcon(targetSymbol);
|
|
706
702
|
const amountNumber = Number(amount);
|
|
707
703
|
const formattedSendAmount = formatTokenAmount(amountNumber, sourceSymbol) ?? amount;
|
|
708
704
|
const prices = useTokenPrices(service, [sourceSymbol, targetSymbol]);
|
|
@@ -746,7 +742,7 @@ function WithdrawReviewStep({
|
|
|
746
742
|
" ",
|
|
747
743
|
sourceSymbol
|
|
748
744
|
] }),
|
|
749
|
-
|
|
745
|
+
/* @__PURE__ */ jsx2("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx2(TokenIcon, { symbol: sourceSymbol }) })
|
|
750
746
|
] })
|
|
751
747
|
] }),
|
|
752
748
|
/* @__PURE__ */ jsxs2("div", { className: "rs-review-detail-row", children: [
|
|
@@ -764,7 +760,7 @@ function WithdrawReviewStep({
|
|
|
764
760
|
/* @__PURE__ */ jsx2("span", { children: "Receive" }),
|
|
765
761
|
/* @__PURE__ */ jsxs2("span", { className: "rs-review-detail-value", children: [
|
|
766
762
|
/* @__PURE__ */ jsx2("span", { children: receiveDisplay }),
|
|
767
|
-
|
|
763
|
+
/* @__PURE__ */ jsx2("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx2(TokenIcon, { symbol: targetSymbol }) })
|
|
768
764
|
] })
|
|
769
765
|
] }),
|
|
770
766
|
/* @__PURE__ */ jsxs2("div", { className: "rs-review-detail-row", children: [
|
|
@@ -1594,7 +1590,7 @@ function deriveStepView(step, _registration) {
|
|
|
1594
1590
|
// src/WithdrawModal.tsx
|
|
1595
1591
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1596
1592
|
var ReownWithdrawInner = lazy(
|
|
1597
|
-
() => import("./WithdrawModalReown-
|
|
1593
|
+
() => import("./WithdrawModalReown-4YUV2WWV.mjs").then((m) => ({
|
|
1598
1594
|
default: m.WithdrawModalReown
|
|
1599
1595
|
}))
|
|
1600
1596
|
);
|