@rhinestone/deposit-modal 0.0.0-dev-20260817085433 → 0.0.0-dev-20260817134404
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/README.md +30 -16
- package/dist/{DepositModalReown-D74G5XMM.mjs → DepositModalReown-CYH26ZWM.mjs} +5 -5
- package/dist/{DepositModalReown-VW23ESPW.cjs → DepositModalReown-QKAKVIKT.cjs} +13 -13
- package/dist/{chunk-44KGXGPM.cjs → chunk-46PRNHII.cjs} +59 -59
- package/dist/{chunk-OIUNHPCD.cjs → chunk-4BNJOGS2.cjs} +121 -106
- package/dist/{chunk-LB43S3UD.mjs → chunk-5MS6HNMF.mjs} +1 -1
- package/dist/{chunk-TBD2VJQP.mjs → chunk-6H2M62S2.mjs} +3 -3
- package/dist/{chunk-L6I7G3GV.cjs → chunk-7MEHJWJ6.cjs} +3 -3
- package/dist/{chunk-OB3H4KVJ.cjs → chunk-AJ2NDL4R.cjs} +741 -458
- package/dist/{chunk-RUNLBWKQ.mjs → chunk-DSNGE5RV.mjs} +1 -1
- package/dist/{chunk-GY5KBGZF.cjs → chunk-HRIQOV5Y.cjs} +54 -54
- package/dist/{chunk-D3GESHE4.mjs → chunk-HSUZDQEP.mjs} +295 -12
- package/dist/{chunk-KCGOCPME.cjs → chunk-KZIWAJ5T.cjs} +1 -1
- package/dist/{chunk-3WPCVSG4.mjs → chunk-M7DPTAZ7.mjs} +262 -97
- package/dist/{chunk-3SKF6CNT.mjs → chunk-MY7MGFDG.mjs} +27 -12
- package/dist/{chunk-AM5JWZX2.cjs → chunk-T7UZUV2C.cjs} +317 -152
- package/dist/{chunk-DZCZFNK5.mjs → chunk-ZPWQEZ2D.mjs} +2 -2
- package/dist/claim.cjs +5 -5
- package/dist/claim.d.cts +2 -2
- package/dist/claim.d.ts +2 -2
- package/dist/claim.mjs +4 -4
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- 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 +8 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +7 -7
- package/dist/styles.css +10 -0
- package/dist/{types-oFblf65g.d.ts → types-BdYDFljm.d.ts} +10 -0
- package/dist/{types-BO4iP6fG.d.cts → types-CkV9n-Gq.d.cts} +10 -0
- 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/README.md
CHANGED
|
@@ -97,6 +97,19 @@ export function DepositButton({ walletClient, publicClient, recipient }) {
|
|
|
97
97
|
}
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
+
Set `enableGaslessDeposit` on `DepositModal` to offer off-chain token
|
|
101
|
+
authorization on eligible cross-chain ERC-20 deposits. It defaults to `false`.
|
|
102
|
+
The processor selects ERC-3009 first, ERC-2612 second, and Permit2 third; the
|
|
103
|
+
Permit2 route is available only when the owner already approved the token to
|
|
104
|
+
Permit2. If no gasless route is available, or submission is definitively
|
|
105
|
+
rejected, the modal explicitly offers the ordinary token transfer. The backend
|
|
106
|
+
proxy must forward `/deposits/permit/prepare` and `/deposits/permit`, and the
|
|
107
|
+
processor deployment must have its global permit endpoint switch enabled.
|
|
108
|
+
Because a permit submission has no source-chain transaction at submission
|
|
109
|
+
time, it does not emit the `submitted` lifecycle event with the processor's
|
|
110
|
+
internal tracking key. Its `complete` event reports the settled source and
|
|
111
|
+
destination transaction hashes once they exist.
|
|
112
|
+
|
|
100
113
|
## Withdraw
|
|
101
114
|
|
|
102
115
|
`WithdrawModal` lives at `@rhinestone/deposit-modal/withdraw` and reports through the same `onLifecycle` + `onError` callbacks. It needs no wallet: you give it the account holding the funds and a function that performs one transfer.
|
|
@@ -143,25 +156,25 @@ import { ClaimModal } from "@rhinestone/deposit-modal/claim";
|
|
|
143
156
|
defaultTxHash={depositTxHash}
|
|
144
157
|
defaultRefundDestination={knownSelfCustodialAddress}
|
|
145
158
|
onLifecycle={(event) => console.log(event)}
|
|
146
|
-
|
|
159
|
+
/>;
|
|
147
160
|
```
|
|
148
161
|
|
|
149
162
|
### Why the user signs
|
|
150
163
|
|
|
151
164
|
Deposit accounts are owned by the Rhinestone service, so the account holding the
|
|
152
165
|
funds has no user key and cannot sign for its own refund. But the deposit's
|
|
153
|
-
`recipient` — the in-app wallet the funds were headed to —
|
|
166
|
+
`recipient` — the in-app wallet the funds were headed to — _is_ a key your user
|
|
154
167
|
holds. So that is what authorizes the recovery.
|
|
155
168
|
|
|
156
169
|
`signRecovery` is handed the exact typed data to sign plus the `signer` address the
|
|
157
170
|
processor will verify against, and returns a signature. Return whatever that
|
|
158
171
|
address's own verifier accepts:
|
|
159
172
|
|
|
160
|
-
| recipient is
|
|
161
|
-
|
|
162
|
-
| embedded EOA (Privy, Turnkey, Dynamic) | `signTypedData` — the raw 65-byte signature
|
|
163
|
-
| deployed smart account
|
|
164
|
-
| undeployed smart account
|
|
173
|
+
| recipient is | return |
|
|
174
|
+
| -------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
175
|
+
| embedded EOA (Privy, Turnkey, Dynamic) | `signTypedData` — the raw 65-byte signature |
|
|
176
|
+
| deployed smart account | a signature valid under its ERC-1271 `isValidSignature` |
|
|
177
|
+
| undeployed smart account | an ERC-6492 wrapper — `SignatureErc6492.wrap` from `ox/erc6492`, which ships with viem |
|
|
165
178
|
|
|
166
179
|
A raw owner signature is usually **not** enough for a smart account: a Safe expects
|
|
167
180
|
its own message wrapping, so go through your account SDK rather than signing the
|
|
@@ -181,7 +194,7 @@ Two properties fall out of signing that are worth knowing:
|
|
|
181
194
|
|
|
182
195
|
- **The destination is inside the signed struct.** The processor cannot pay anywhere
|
|
183
196
|
else, so the success screen states what the user signed rather than trusting the
|
|
184
|
-
endpoint to report where the money went. `defaultRefundDestination` only
|
|
197
|
+
endpoint to report where the money went. `defaultRefundDestination` only _seeds_
|
|
185
198
|
the field; whatever the user submits is what they sign.
|
|
186
199
|
- **Failures carry a structured code**, so the modal knows when a retry helps. A
|
|
187
200
|
verification outage is retryable; a rejected signature or a deposit already
|
|
@@ -248,6 +261,7 @@ The flow: user picks a fiat option → modal registers a Rhinestone smart accoun
|
|
|
248
261
|
**Destination guarantees.** The user picks the fiat amount inside Swapped's widget, but the destination is fixed server-side: every order receives **USDC on Base** delivered to the **registered Rhinestone smart account**. The frontend cannot override these; the backend signs the Swapped URL with `currencyCode=USDC_BASE` and `walletAddress=<smartAccount>`.
|
|
249
262
|
|
|
250
263
|
**Fees.** Rhinestone does not charge a markup by default. The client (dapp) controls the user-facing experience via the orchestrator's sponsorship config:
|
|
264
|
+
|
|
251
265
|
- **Sponsored** (client has a funded sponsor pool for the source chain): user receives 1:1 — the on-ramped amount lands on the target chain exactly.
|
|
252
266
|
- **Unsponsored**: the bridging cost is deducted from the on-ramped amount and shown as a "Bridging cost" line on the success screen.
|
|
253
267
|
|
|
@@ -259,11 +273,11 @@ frame-src https://widget.swapped.com https://sandbox.swapped.com https://connect
|
|
|
259
273
|
|
|
260
274
|
**Submerchant attribution.** Swapped orders are tagged with a `submerchant` for multi-tenant reporting. This is derived automatically server-side from the embedding page's domain (the request `Origin` header) — no configuration is required. In local development the domain resolves to `localhost`.
|
|
261
275
|
|
|
262
|
-
| Prop
|
|
263
|
-
|
|
|
264
|
-
| `enableFiatOnramp`
|
|
265
|
-
| `enableQrTransfer`
|
|
266
|
-
| `fiatMethods`
|
|
276
|
+
| Prop | Type | Default | Description |
|
|
277
|
+
| ------------------ | ------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
278
|
+
| `enableFiatOnramp` | `boolean` | `false` | Show fiat on-ramp option(s). Requires backend Swapped keys. Needs no wallet. |
|
|
279
|
+
| `enableQrTransfer` | `boolean` | `true` | Show the Transfer Crypto / QR row. Set false for fiat-only. |
|
|
280
|
+
| `fiatMethods` | `FiatMethodsConfig` | regional | Optional exact subset of standard `payment_group`s. Providing it opts out of regional personalization; empty means none. |
|
|
267
281
|
|
|
268
282
|
## Fund from Exchange (Swapped Connect)
|
|
269
283
|
|
|
@@ -278,9 +292,9 @@ Pass `enableExchangeConnect` to expose a "Fund from Exchange" row alongside the
|
|
|
278
292
|
|
|
279
293
|
Flow: user picks Fund from Exchange → backend returns supported exchanges + logos from Swapped using a 24-hour cache → user picks an exchange → modal registers a Rhinestone smart account → backend mints a server-signed Swapped Connect URL with the selected `connection` → user authenticates with their CEX inside the iframe → Swapped pushes crypto on-chain → existing on-chain detection fires `onLifecycle({ type: "complete" })`.
|
|
280
294
|
|
|
281
|
-
| Prop
|
|
282
|
-
|
|
|
283
|
-
| `enableExchangeConnect`
|
|
295
|
+
| Prop | Type | Default | Description |
|
|
296
|
+
| ----------------------- | --------- | ------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
297
|
+
| `enableExchangeConnect` | `boolean` | `false` | Show the "Fund from Exchange" row. Requires backend Swapped keys. Needs no wallet. Can be combined with `enableFiatOnramp`. |
|
|
284
298
|
|
|
285
299
|
## Upgrading
|
|
286
300
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HSUZDQEP.mjs";
|
|
4
|
+
import "./chunk-MY7MGFDG.mjs";
|
|
5
|
+
import "./chunk-5MS6HNMF.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isUnsupportedChainSwitchError,
|
|
8
8
|
peekRuntimeChains,
|
|
9
9
|
primeRuntimeChains,
|
|
10
10
|
rpcUrlFor,
|
|
11
11
|
useStableRpcUrls
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-M7DPTAZ7.mjs";
|
|
13
|
+
import "./chunk-DSNGE5RV.mjs";
|
|
14
14
|
import "./chunk-4ZXQPFNU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SUPPORTED_CHAINS,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkAJ2NDL4Rcjs = require('./chunk-AJ2NDL4R.cjs');
|
|
4
|
+
require('./chunk-4BNJOGS2.cjs');
|
|
5
|
+
require('./chunk-7MEHJWJ6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
12
|
+
var _chunkT7UZUV2Ccjs = require('./chunk-T7UZUV2C.cjs');
|
|
13
|
+
require('./chunk-KZIWAJ5T.cjs');
|
|
14
14
|
require('./chunk-75DVGSAX.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -91,14 +91,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
|
91
91
|
const transports = {};
|
|
92
92
|
for (const network of networks) {
|
|
93
93
|
const id = Number(network.id);
|
|
94
|
-
transports[id] = _viem.http.call(void 0,
|
|
94
|
+
transports[id] = _viem.http.call(void 0, _chunkT7UZUV2Ccjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
95
95
|
}
|
|
96
96
|
return transports;
|
|
97
97
|
}
|
|
98
98
|
function getEvmRpcFingerprint(rpcUrls, networks) {
|
|
99
99
|
return networks.map((network) => {
|
|
100
100
|
const id = Number(network.id);
|
|
101
|
-
return `${id}=${_nullishCoalesce(
|
|
101
|
+
return `${id}=${_nullishCoalesce(_chunkT7UZUV2Ccjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
102
102
|
}).join("|");
|
|
103
103
|
}
|
|
104
104
|
var cachedAdapter = null;
|
|
@@ -177,7 +177,7 @@ function ReownWalletProvider({
|
|
|
177
177
|
backendUrl,
|
|
178
178
|
children
|
|
179
179
|
}) {
|
|
180
|
-
const rpcUrls =
|
|
180
|
+
const rpcUrls = _chunkT7UZUV2Ccjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
181
181
|
const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
|
|
182
182
|
const overrides = _react.useMemo.call(void 0, () => {
|
|
183
183
|
if (!rpcUrls) return void 0;
|
|
@@ -189,14 +189,14 @@ function ReownWalletProvider({
|
|
|
189
189
|
return out;
|
|
190
190
|
}, [rpcUrls]);
|
|
191
191
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
192
|
-
const primed =
|
|
192
|
+
const primed = _chunkT7UZUV2Ccjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
193
193
|
return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
|
|
194
194
|
});
|
|
195
195
|
_react.useEffect.call(void 0, () => {
|
|
196
196
|
let active = true;
|
|
197
|
-
const primed =
|
|
197
|
+
const primed = _chunkT7UZUV2Ccjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
198
198
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
199
|
-
|
|
199
|
+
_chunkT7UZUV2Ccjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
200
200
|
if (active) setState({ ready: true, chains });
|
|
201
201
|
});
|
|
202
202
|
return () => {
|
|
@@ -258,7 +258,7 @@ function useReownWallet() {
|
|
|
258
258
|
await switchChainAsync({ chainId });
|
|
259
259
|
}
|
|
260
260
|
} catch (err) {
|
|
261
|
-
if (
|
|
261
|
+
if (_chunkT7UZUV2Ccjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
262
262
|
throw new Error(
|
|
263
263
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
264
264
|
);
|
|
@@ -292,7 +292,7 @@ function DepositModalWithReown(props) {
|
|
|
292
292
|
reown.disconnect();
|
|
293
293
|
}, [reown.disconnect]);
|
|
294
294
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
295
|
-
|
|
295
|
+
_chunkAJ2NDL4Rcjs.DepositModalInner,
|
|
296
296
|
{
|
|
297
297
|
...props,
|
|
298
298
|
reownWallet: reownWithSolana,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4BNJOGS2cjs = require('./chunk-4BNJOGS2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -37,7 +37,7 @@ var _chunkOIUNHPCDcjs = require('./chunk-OIUNHPCD.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkT7UZUV2Ccjs = require('./chunk-T7UZUV2C.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
@@ -258,7 +258,7 @@ function WithdrawFormStep({
|
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
try {
|
|
261
|
-
const bal =
|
|
261
|
+
const bal = _chunkT7UZUV2Ccjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
|
|
262
262
|
address: asset.token,
|
|
263
263
|
abi: _viem.erc20Abi,
|
|
264
264
|
functionName: "balanceOf",
|
|
@@ -363,7 +363,7 @@ function WithdrawFormStep({
|
|
|
363
363
|
await onSubmit(recipient, amount);
|
|
364
364
|
} catch (err) {
|
|
365
365
|
const raw = err instanceof Error ? err.message : "Withdrawal failed";
|
|
366
|
-
setError(
|
|
366
|
+
setError(_chunkT7UZUV2Ccjs.formatUserError.call(void 0, raw));
|
|
367
367
|
} finally {
|
|
368
368
|
setIsSubmitting(false);
|
|
369
369
|
}
|
|
@@ -379,16 +379,16 @@ function WithdrawFormStep({
|
|
|
379
379
|
if (isBalanceLoading) {
|
|
380
380
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
381
381
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
|
|
382
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
382
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.Spinner, { className: "rs-spinner--lg" }),
|
|
383
383
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
|
|
384
384
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: "Please wait before withdrawing." })
|
|
385
385
|
] }),
|
|
386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.PoweredBy, {})
|
|
387
387
|
] });
|
|
388
388
|
}
|
|
389
389
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
390
390
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
|
|
391
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
391
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
|
|
392
392
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
|
|
393
393
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
394
394
|
"label",
|
|
@@ -448,7 +448,7 @@ function WithdrawFormStep({
|
|
|
448
448
|
) })
|
|
449
449
|
] }),
|
|
450
450
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
|
|
451
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${
|
|
451
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkT7UZUV2Ccjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
|
|
452
452
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
|
|
453
453
|
"Balance: ",
|
|
454
454
|
formattedBalance,
|
|
@@ -479,7 +479,7 @@ function WithdrawFormStep({
|
|
|
479
479
|
children: [
|
|
480
480
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
481
481
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
482
|
-
|
|
482
|
+
_chunkT7UZUV2Ccjs.CdnIcon,
|
|
483
483
|
{
|
|
484
484
|
src: _chunkO7BCVQ6Lcjs.getChainIcon.call(void 0, targetChain),
|
|
485
485
|
alt: targetChainName,
|
|
@@ -489,7 +489,7 @@ function WithdrawFormStep({
|
|
|
489
489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
|
|
490
490
|
] }),
|
|
491
491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
492
|
-
|
|
492
|
+
_chunkT7UZUV2Ccjs.ChevronDownIcon,
|
|
493
493
|
{
|
|
494
494
|
className: "rs-withdraw-dropdown-arrow",
|
|
495
495
|
style: {
|
|
@@ -511,7 +511,7 @@ function WithdrawFormStep({
|
|
|
511
511
|
},
|
|
512
512
|
children: [
|
|
513
513
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
514
|
-
|
|
514
|
+
_chunkT7UZUV2Ccjs.CdnIcon,
|
|
515
515
|
{
|
|
516
516
|
src: _chunkO7BCVQ6Lcjs.getChainIcon.call(void 0, chain.id),
|
|
517
517
|
alt: chain.name,
|
|
@@ -548,7 +548,7 @@ function WithdrawFormStep({
|
|
|
548
548
|
children: [
|
|
549
549
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
|
|
550
550
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
551
|
-
|
|
551
|
+
_chunkT7UZUV2Ccjs.TokenIcon,
|
|
552
552
|
{
|
|
553
553
|
symbol: targetSymbol,
|
|
554
554
|
className: "rs-withdraw-dropdown-icon"
|
|
@@ -557,7 +557,7 @@ function WithdrawFormStep({
|
|
|
557
557
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
|
|
558
558
|
] }),
|
|
559
559
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
560
|
-
|
|
560
|
+
_chunkT7UZUV2Ccjs.ChevronDownIcon,
|
|
561
561
|
{
|
|
562
562
|
className: "rs-withdraw-dropdown-arrow",
|
|
563
563
|
style: {
|
|
@@ -579,7 +579,7 @@ function WithdrawFormStep({
|
|
|
579
579
|
},
|
|
580
580
|
children: [
|
|
581
581
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
582
|
-
|
|
582
|
+
_chunkT7UZUV2Ccjs.TokenIcon,
|
|
583
583
|
{
|
|
584
584
|
symbol: option.symbol,
|
|
585
585
|
className: "rs-withdraw-dropdown-icon"
|
|
@@ -595,10 +595,10 @@ function WithdrawFormStep({
|
|
|
595
595
|
)
|
|
596
596
|
] })
|
|
597
597
|
] }),
|
|
598
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
599
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
598
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.Callout, { variant: "error", children: error }),
|
|
599
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.Callout, { variant: "error", children: registrationError }),
|
|
600
600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
601
|
-
|
|
601
|
+
_chunkT7UZUV2Ccjs.Button,
|
|
602
602
|
{
|
|
603
603
|
onClick: handleWithdraw,
|
|
604
604
|
fullWidth: true,
|
|
@@ -613,7 +613,7 @@ function WithdrawFormStep({
|
|
|
613
613
|
}
|
|
614
614
|
)
|
|
615
615
|
] }),
|
|
616
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
616
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.PoweredBy, {})
|
|
617
617
|
] });
|
|
618
618
|
}
|
|
619
619
|
WithdrawFormStep.displayName = "WithdrawFormStep";
|
|
@@ -647,16 +647,16 @@ function WithdrawReviewStep({
|
|
|
647
647
|
const targetChainName = _chunkO7BCVQ6Lcjs.getChainName.call(void 0, targetChain);
|
|
648
648
|
const targetChainIcon = _chunkO7BCVQ6Lcjs.getChainIcon.call(void 0, targetChain);
|
|
649
649
|
const amountNumber = Number(amount);
|
|
650
|
-
const formattedSendAmount = _nullishCoalesce(
|
|
651
|
-
const prices =
|
|
650
|
+
const formattedSendAmount = _nullishCoalesce(_chunkT7UZUV2Ccjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
|
|
651
|
+
const prices = _chunk4BNJOGS2cjs.useTokenPrices.call(void 0, service, [
|
|
652
652
|
{ chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
|
|
653
653
|
{ chainId: targetChain, address: targetToken, symbol: targetSymbol }
|
|
654
654
|
]);
|
|
655
|
-
const receiveDisplay = _nullishCoalesce(
|
|
655
|
+
const receiveDisplay = _nullishCoalesce(_chunkT7UZUV2Ccjs.formatReceiveEstimate.call(void 0, {
|
|
656
656
|
sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
|
|
657
657
|
sourceSymbol,
|
|
658
658
|
targetSymbol,
|
|
659
|
-
sourceTrusted:
|
|
659
|
+
sourceTrusted: _chunkT7UZUV2Ccjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
|
|
660
660
|
prices
|
|
661
661
|
}), () => ( // No price for the target token — an honest dash beats a wrong number.
|
|
662
662
|
"\u2014"));
|
|
@@ -667,7 +667,7 @@ function WithdrawReviewStep({
|
|
|
667
667
|
await onConfirm();
|
|
668
668
|
} catch (err) {
|
|
669
669
|
const raw = err instanceof Error ? err.message : "Withdraw failed";
|
|
670
|
-
const message =
|
|
670
|
+
const message = _chunkT7UZUV2Ccjs.formatUserError.call(void 0, raw);
|
|
671
671
|
setError(message);
|
|
672
672
|
_optionalChain([onError, 'optionalCall', _7 => _7(message, "WITHDRAW_REVIEW_ERROR", raw)]);
|
|
673
673
|
} finally {
|
|
@@ -678,9 +678,9 @@ function WithdrawReviewStep({
|
|
|
678
678
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
679
679
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
680
680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
681
|
-
|
|
681
|
+
_chunkT7UZUV2Ccjs.BodyHeader,
|
|
682
682
|
{
|
|
683
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
683
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.CircleArrowOutUpLeftIcon, {}),
|
|
684
684
|
title: "Review withdrawal"
|
|
685
685
|
}
|
|
686
686
|
),
|
|
@@ -693,14 +693,14 @@ function WithdrawReviewStep({
|
|
|
693
693
|
" ",
|
|
694
694
|
sourceSymbol
|
|
695
695
|
] }),
|
|
696
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
696
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.TokenIcon, { symbol: sourceSymbol }) })
|
|
697
697
|
] })
|
|
698
698
|
] }),
|
|
699
699
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
700
700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
701
701
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
702
702
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
|
|
703
|
-
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
703
|
+
sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.CdnIcon, { src: sourceChainIcon }) })
|
|
704
704
|
] })
|
|
705
705
|
] }),
|
|
706
706
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -711,14 +711,14 @@ function WithdrawReviewStep({
|
|
|
711
711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
|
|
712
712
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
713
713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
|
|
714
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
714
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.TokenIcon, { symbol: targetSymbol }) })
|
|
715
715
|
] })
|
|
716
716
|
] }),
|
|
717
717
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
718
718
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
|
|
719
719
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
720
720
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
|
|
721
|
-
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
721
|
+
targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.CdnIcon, { src: targetChainIcon }) })
|
|
722
722
|
] })
|
|
723
723
|
] }),
|
|
724
724
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -726,10 +726,10 @@ function WithdrawReviewStep({
|
|
|
726
726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
|
|
727
727
|
] })
|
|
728
728
|
] }),
|
|
729
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
730
|
-
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
729
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.Callout, { variant: "error", children: error }),
|
|
730
|
+
!error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.Callout, { variant: "error", children: registrationError }),
|
|
731
731
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
732
|
-
|
|
732
|
+
_chunkT7UZUV2Ccjs.Button,
|
|
733
733
|
{
|
|
734
734
|
onClick: handleConfirm,
|
|
735
735
|
loading: isSubmitting,
|
|
@@ -740,7 +740,7 @@ function WithdrawReviewStep({
|
|
|
740
740
|
}
|
|
741
741
|
)
|
|
742
742
|
] }),
|
|
743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.PoweredBy, {})
|
|
744
744
|
] });
|
|
745
745
|
}
|
|
746
746
|
WithdrawReviewStep.displayName = "WithdrawReviewStep";
|
|
@@ -773,11 +773,11 @@ function WithdrawFlow({
|
|
|
773
773
|
onError,
|
|
774
774
|
debug
|
|
775
775
|
}) {
|
|
776
|
-
const rpcUrls =
|
|
777
|
-
const onStepChangeRef =
|
|
778
|
-
const onEventRef =
|
|
779
|
-
const onLifecycleRef =
|
|
780
|
-
const onErrorRef =
|
|
776
|
+
const rpcUrls = _chunkT7UZUV2Ccjs.useRpcUrls.call(void 0, );
|
|
777
|
+
const onStepChangeRef = _chunkT7UZUV2Ccjs.useLatestRef.call(void 0, onStepChange);
|
|
778
|
+
const onEventRef = _chunkT7UZUV2Ccjs.useLatestRef.call(void 0, onEvent);
|
|
779
|
+
const onLifecycleRef = _chunkT7UZUV2Ccjs.useLatestRef.call(void 0, onLifecycle);
|
|
780
|
+
const onErrorRef = _chunkT7UZUV2Ccjs.useLatestRef.call(void 0, onError);
|
|
781
781
|
const isFlowActiveRef = _react.useRef.call(void 0, true);
|
|
782
782
|
const submitGenerationRef = _react.useRef.call(void 0, 0);
|
|
783
783
|
_react.useEffect.call(void 0, () => {
|
|
@@ -788,13 +788,13 @@ function WithdrawFlow({
|
|
|
788
788
|
}, []);
|
|
789
789
|
const logFlow = _react.useCallback.call(void 0,
|
|
790
790
|
(message, data) => {
|
|
791
|
-
|
|
791
|
+
_chunkT7UZUV2Ccjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
|
|
792
792
|
},
|
|
793
793
|
[debug]
|
|
794
794
|
);
|
|
795
795
|
const logFlowError = _react.useCallback.call(void 0,
|
|
796
796
|
(message, error, data) => {
|
|
797
|
-
|
|
797
|
+
_chunkT7UZUV2Ccjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
|
|
798
798
|
},
|
|
799
799
|
[debug]
|
|
800
800
|
);
|
|
@@ -818,7 +818,7 @@ function WithdrawFlow({
|
|
|
818
818
|
const flowStep = useWithdrawStore((s) => s.step);
|
|
819
819
|
const reviewedRecipient = useWithdrawStore((s) => s.recipient);
|
|
820
820
|
const publicClient = _react.useMemo.call(void 0,
|
|
821
|
-
() =>
|
|
821
|
+
() => _chunkT7UZUV2Ccjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
|
|
822
822
|
[sourceChain, rpcUrls]
|
|
823
823
|
);
|
|
824
824
|
const recipientForRegistration = _react.useMemo.call(void 0, () => {
|
|
@@ -846,7 +846,7 @@ function WithdrawFlow({
|
|
|
846
846
|
targetToken,
|
|
847
847
|
recipient: recipientForRegistration
|
|
848
848
|
});
|
|
849
|
-
const salt =
|
|
849
|
+
const salt = _chunk4BNJOGS2cjs.deriveAccountSalt.call(void 0, {
|
|
850
850
|
recipient: recipientForRegistration,
|
|
851
851
|
targetChain,
|
|
852
852
|
targetToken
|
|
@@ -876,7 +876,7 @@ function WithdrawFlow({
|
|
|
876
876
|
} catch (err) {
|
|
877
877
|
if (cancelled) return;
|
|
878
878
|
const raw = err instanceof Error ? err.message : "Registration failed";
|
|
879
|
-
const message =
|
|
879
|
+
const message = _chunkT7UZUV2Ccjs.formatUserError.call(void 0, raw);
|
|
880
880
|
logFlowError("auto-register:failed", err, {
|
|
881
881
|
accountAddress,
|
|
882
882
|
targetChain,
|
|
@@ -910,7 +910,7 @@ function WithdrawFlow({
|
|
|
910
910
|
const symbol = _chunkO7BCVQ6Lcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
911
911
|
const decimals = _chunkO7BCVQ6Lcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
912
912
|
return {
|
|
913
|
-
id:
|
|
913
|
+
id: _chunkT7UZUV2Ccjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
|
|
914
914
|
chainId: sourceChain,
|
|
915
915
|
token: sourceToken,
|
|
916
916
|
symbol,
|
|
@@ -1090,7 +1090,7 @@ function WithdrawFlow({
|
|
|
1090
1090
|
targetChain,
|
|
1091
1091
|
targetToken
|
|
1092
1092
|
});
|
|
1093
|
-
handleError(
|
|
1093
|
+
handleError(_chunkT7UZUV2Ccjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
|
|
1094
1094
|
throw err;
|
|
1095
1095
|
}
|
|
1096
1096
|
},
|
|
@@ -1143,8 +1143,8 @@ function WithdrawFlow({
|
|
|
1143
1143
|
},
|
|
1144
1144
|
[logFlowError, onLifecycleRef, storeApi]
|
|
1145
1145
|
);
|
|
1146
|
-
const targetChainOptions =
|
|
1147
|
-
const targetTokensFor =
|
|
1146
|
+
const targetChainOptions = _chunkT7UZUV2Ccjs.useDestinationChains.call(void 0, );
|
|
1147
|
+
const targetTokensFor = _chunkT7UZUV2Ccjs.useTargetTokens.call(void 0, );
|
|
1148
1148
|
const targetTokenOptions = _react.useMemo.call(void 0,
|
|
1149
1149
|
() => targetTokensFor(targetChain),
|
|
1150
1150
|
[targetChain, targetTokensFor]
|
|
@@ -1216,7 +1216,7 @@ function WithdrawFlow({
|
|
|
1216
1216
|
}
|
|
1217
1217
|
),
|
|
1218
1218
|
stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1219
|
-
|
|
1219
|
+
_chunk4BNJOGS2cjs.ProcessingStep,
|
|
1220
1220
|
{
|
|
1221
1221
|
smartAccount: _nullishCoalesce(storeApi.getState().processingSmartAccount, () => ( (registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0"))),
|
|
1222
1222
|
txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
|
|
@@ -1286,22 +1286,22 @@ function WithdrawModal({
|
|
|
1286
1286
|
// one only ever applied to the deposit flow.
|
|
1287
1287
|
...removedProps
|
|
1288
1288
|
}) {
|
|
1289
|
-
|
|
1290
|
-
|
|
1289
|
+
_chunk4BNJOGS2cjs.warnRemovedProps.call(void 0, "WithdrawModal", removedProps);
|
|
1290
|
+
_chunkT7UZUV2Ccjs.checkBackendUrl.call(void 0, "WithdrawModal", backendUrl);
|
|
1291
1291
|
const modalRef = _react.useRef.call(void 0, null);
|
|
1292
|
-
const onReadyRef =
|
|
1292
|
+
const onReadyRef = _chunkT7UZUV2Ccjs.useLatestRef.call(void 0, onReady);
|
|
1293
1293
|
const [backHandler, setBackHandler] = _react.useState.call(void 0,
|
|
1294
1294
|
void 0
|
|
1295
1295
|
);
|
|
1296
1296
|
const targetChain = _chunkO7BCVQ6Lcjs.getChainId.call(void 0, _nullishCoalesce(targetChainProp, () => ( sourceChainProp)));
|
|
1297
1297
|
const sourceChain = _chunkO7BCVQ6Lcjs.getChainId.call(void 0, sourceChainProp);
|
|
1298
|
-
const rpcUrls =
|
|
1298
|
+
const rpcUrls = _chunkT7UZUV2Ccjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
1299
1299
|
const service = _react.useMemo.call(void 0,
|
|
1300
|
-
() =>
|
|
1300
|
+
() => _chunkT7UZUV2Ccjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1301
1301
|
[backendUrl, debug]
|
|
1302
1302
|
);
|
|
1303
1303
|
const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
|
|
1304
|
-
const onErrorRef =
|
|
1304
|
+
const onErrorRef = _chunkT7UZUV2Ccjs.useLatestRef.call(void 0, onError);
|
|
1305
1305
|
_react.useEffect.call(void 0, () => {
|
|
1306
1306
|
if (isOpen && typeof onSendTransaction !== "function") {
|
|
1307
1307
|
_optionalChain([onErrorRef, 'access', _33 => _33.current, 'optionalCall', _34 => _34({
|
|
@@ -1312,7 +1312,7 @@ function WithdrawModal({
|
|
|
1312
1312
|
}, [isOpen, onSendTransaction, onErrorRef]);
|
|
1313
1313
|
_react.useEffect.call(void 0, () => {
|
|
1314
1314
|
if (isOpen && modalRef.current) {
|
|
1315
|
-
|
|
1315
|
+
_chunkT7UZUV2Ccjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
1316
1316
|
}
|
|
1317
1317
|
}, [isOpen, theme]);
|
|
1318
1318
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1330,8 +1330,8 @@ function WithdrawModal({
|
|
|
1330
1330
|
}, []);
|
|
1331
1331
|
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _37 => _37.showBackButton]), () => ( true));
|
|
1332
1332
|
const canGoBack = backHandler !== void 0;
|
|
1333
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1334
|
-
|
|
1333
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1334
|
+
_chunkT7UZUV2Ccjs.Modal,
|
|
1335
1335
|
{
|
|
1336
1336
|
isOpen,
|
|
1337
1337
|
onClose,
|
|
@@ -1347,7 +1347,7 @@ function WithdrawModal({
|
|
|
1347
1347
|
className: "rs-modal-header-back",
|
|
1348
1348
|
"aria-label": "Go back",
|
|
1349
1349
|
onClick: backHandler,
|
|
1350
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1350
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.ChevronLeftIcon, {})
|
|
1351
1351
|
}
|
|
1352
1352
|
) }),
|
|
1353
1353
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1357,7 +1357,7 @@ function WithdrawModal({
|
|
|
1357
1357
|
onClick: onClose,
|
|
1358
1358
|
className: "rs-modal-close",
|
|
1359
1359
|
"aria-label": "Close",
|
|
1360
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1360
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT7UZUV2Ccjs.CloseIcon, {})
|
|
1361
1361
|
}
|
|
1362
1362
|
) })
|
|
1363
1363
|
] }),
|