@rhinestone/deposit-modal 0.1.50 → 0.1.51
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-EKRWDULN.mjs → DepositModalReown-BMHCHJ2P.mjs} +2 -2
- package/dist/{DepositModalReown-SUED62QO.cjs → DepositModalReown-KT5MMNTJ.cjs} +3 -3
- package/dist/{WithdrawModalReown-JIKBNJU7.cjs → WithdrawModalReown-DULPL255.cjs} +3 -3
- package/dist/{WithdrawModalReown-AHHM3VTB.mjs → WithdrawModalReown-V5HYDMO2.mjs} +2 -2
- package/dist/{chunk-HXNHL64V.cjs → chunk-2AS2NAJ2.cjs} +88 -85
- package/dist/{chunk-FKNYONM2.mjs → chunk-BNSX25TA.mjs} +5 -4
- package/dist/{chunk-CTZVI5NR.cjs → chunk-DKYHVAHN.cjs} +45 -36
- package/dist/{chunk-GZIGVCI2.mjs → chunk-G2GXEC7C.mjs} +14 -5
- package/dist/{chunk-7HJ7IBRH.cjs → chunk-NU3ES4JY.cjs} +5 -4
- package/dist/{chunk-N5BRA3ZN.mjs → chunk-SKL3JJP6.mjs} +8 -5
- package/dist/deposit.cjs +3 -3
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/reown.cjs +4 -4
- package/dist/reown.d.cts +1 -1
- package/dist/reown.d.ts +1 -1
- package/dist/reown.mjs +3 -3
- package/dist/{types-Qv3sYfjZ.d.ts → types-D1nvo2dK.d.ts} +10 -0
- package/dist/{types-C2uBaYtU.d.cts → types-DgiqazTb.d.cts} +10 -0
- package/dist/withdraw.cjs +3 -3
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
|
@@ -1401,6 +1401,7 @@ function ProcessingStep({
|
|
|
1401
1401
|
directTransfer,
|
|
1402
1402
|
flowLabel = "deposit",
|
|
1403
1403
|
debug,
|
|
1404
|
+
targetToken,
|
|
1404
1405
|
onClose,
|
|
1405
1406
|
onNewDeposit,
|
|
1406
1407
|
onDepositComplete,
|
|
@@ -1419,10 +1420,10 @@ function ProcessingStep({
|
|
|
1419
1420
|
txHash,
|
|
1420
1421
|
flowLabel
|
|
1421
1422
|
});
|
|
1422
|
-
onDepositComplete?.(txHash);
|
|
1423
|
+
onDepositComplete?.(txHash, void 0, { amount, sourceChain, sourceToken, targetChain, targetToken });
|
|
1423
1424
|
return;
|
|
1424
1425
|
}
|
|
1425
|
-
}, [debug, directTransfer, flowLabel, txHash, onDepositComplete]);
|
|
1426
|
+
}, [debug, directTransfer, flowLabel, txHash, onDepositComplete, amount, sourceChain, sourceToken, targetChain, targetToken]);
|
|
1426
1427
|
useEffect2(() => {
|
|
1427
1428
|
if (directTransfer) return;
|
|
1428
1429
|
startTimeRef.current = Date.now();
|
|
@@ -1479,7 +1480,7 @@ function ProcessingStep({
|
|
|
1479
1480
|
destinationTxHash: destinationTxHash2,
|
|
1480
1481
|
event: eventForCurrentTx.type
|
|
1481
1482
|
});
|
|
1482
|
-
onDepositComplete?.(txHash, destinationTxHash2);
|
|
1483
|
+
onDepositComplete?.(txHash, destinationTxHash2, { amount, sourceChain, sourceToken, targetChain, targetToken });
|
|
1483
1484
|
return;
|
|
1484
1485
|
}
|
|
1485
1486
|
if (!waitForFinalTx && eventForCurrentTx?.type === "bridge-started") {
|
|
@@ -1488,7 +1489,7 @@ function ProcessingStep({
|
|
|
1488
1489
|
txHash,
|
|
1489
1490
|
event: eventForCurrentTx.type
|
|
1490
1491
|
});
|
|
1491
|
-
onDepositComplete?.(txHash);
|
|
1492
|
+
onDepositComplete?.(txHash, void 0, { amount, sourceChain, sourceToken, targetChain, targetToken });
|
|
1492
1493
|
return;
|
|
1493
1494
|
}
|
|
1494
1495
|
if (eventForCurrentTx?.type === "bridge-failed") {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkNU3ES4JYcjs = require('./chunk-NU3ES4JY.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -141,7 +141,7 @@ function WithdrawFormStep({
|
|
|
141
141
|
setIsSwitching(true);
|
|
142
142
|
switchChain(asset.chainId).catch((err) => {
|
|
143
143
|
const raw = err instanceof Error ? err.message : "Failed to switch chain";
|
|
144
|
-
setError(
|
|
144
|
+
setError(_chunkNU3ES4JYcjs.formatUserError.call(void 0, raw));
|
|
145
145
|
}).finally(() => {
|
|
146
146
|
setIsSwitching(false);
|
|
147
147
|
});
|
|
@@ -161,7 +161,7 @@ function WithdrawFormStep({
|
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
try {
|
|
164
|
-
const bal =
|
|
164
|
+
const bal = _chunkNU3ES4JYcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
|
|
165
165
|
address: asset.token,
|
|
166
166
|
abi: _viem.erc20Abi,
|
|
167
167
|
functionName: "balanceOf",
|
|
@@ -264,7 +264,7 @@ function WithdrawFormStep({
|
|
|
264
264
|
await onSubmit(recipient, amount);
|
|
265
265
|
} catch (err) {
|
|
266
266
|
const raw = err instanceof Error ? err.message : "Withdrawal failed";
|
|
267
|
-
setError(
|
|
267
|
+
setError(_chunkNU3ES4JYcjs.formatUserError.call(void 0, raw));
|
|
268
268
|
} finally {
|
|
269
269
|
setIsSubmitting(false);
|
|
270
270
|
}
|
|
@@ -272,11 +272,11 @@ function WithdrawFormStep({
|
|
|
272
272
|
if (isBalanceLoading) {
|
|
273
273
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
|
|
274
274
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
|
|
275
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNU3ES4JYcjs.Spinner, { className: "rs-spinner--lg" }),
|
|
276
276
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
|
|
277
277
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
|
|
278
278
|
] }),
|
|
279
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
279
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNU3ES4JYcjs.PoweredBy, {})
|
|
280
280
|
] });
|
|
281
281
|
}
|
|
282
282
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
|
|
@@ -372,7 +372,7 @@ function WithdrawFormStep({
|
|
|
372
372
|
] })
|
|
373
373
|
] }),
|
|
374
374
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
|
|
375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ?
|
|
375
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkNU3ES4JYcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
|
|
376
376
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
|
|
377
377
|
formattedBalance,
|
|
378
378
|
" ",
|
|
@@ -565,7 +565,7 @@ function WithdrawFormStep({
|
|
|
565
565
|
] })
|
|
566
566
|
] }),
|
|
567
567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
568
|
-
|
|
568
|
+
_chunkNU3ES4JYcjs.Button,
|
|
569
569
|
{
|
|
570
570
|
onClick: handleWithdraw,
|
|
571
571
|
fullWidth: true,
|
|
@@ -574,7 +574,7 @@ function WithdrawFormStep({
|
|
|
574
574
|
children: isBusy ? "Preparing..." : "Withdraw"
|
|
575
575
|
}
|
|
576
576
|
) }),
|
|
577
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
577
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNU3ES4JYcjs.PoweredBy, {})
|
|
578
578
|
] });
|
|
579
579
|
}
|
|
580
580
|
WithdrawFormStep.displayName = "WithdrawFormStep";
|
|
@@ -905,13 +905,13 @@ function WithdrawFlow({
|
|
|
905
905
|
const [isConnectSelectionConfirmed, setIsConnectSelectionConfirmed] = _react.useState.call(void 0, false);
|
|
906
906
|
const logFlow = _react.useCallback.call(void 0,
|
|
907
907
|
(message, data) => {
|
|
908
|
-
|
|
908
|
+
_chunkNU3ES4JYcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
|
|
909
909
|
},
|
|
910
910
|
[debug]
|
|
911
911
|
);
|
|
912
912
|
const logFlowError = _react.useCallback.call(void 0,
|
|
913
913
|
(message, error, data) => {
|
|
914
|
-
|
|
914
|
+
_chunkNU3ES4JYcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
|
|
915
915
|
},
|
|
916
916
|
[debug]
|
|
917
917
|
);
|
|
@@ -970,14 +970,14 @@ function WithdrawFlow({
|
|
|
970
970
|
return {
|
|
971
971
|
ownerAddress: dappAddress,
|
|
972
972
|
walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
|
|
973
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
973
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkNU3ES4JYcjs.getPublicClient.call(void 0, sourceChain))),
|
|
974
974
|
switchChain: dappSwitchChain
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
977
|
return {
|
|
978
978
|
ownerAddress: dappWalletClient.account.address,
|
|
979
979
|
walletClient: dappWalletClient,
|
|
980
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
980
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkNU3ES4JYcjs.getPublicClient.call(void 0, sourceChain))),
|
|
981
981
|
switchChain: dappSwitchChain
|
|
982
982
|
};
|
|
983
983
|
}
|
|
@@ -988,7 +988,7 @@ function WithdrawFlow({
|
|
|
988
988
|
return {
|
|
989
989
|
ownerAddress: dappWalletClient.account.address,
|
|
990
990
|
walletClient: dappWalletClient,
|
|
991
|
-
publicClient: _nullishCoalesce(dappPublicClient, () => (
|
|
991
|
+
publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkNU3ES4JYcjs.getPublicClient.call(void 0, sourceChain))),
|
|
992
992
|
switchChain: dappSwitchChain
|
|
993
993
|
};
|
|
994
994
|
}
|
|
@@ -1018,7 +1018,7 @@ function WithdrawFlow({
|
|
|
1018
1018
|
const symbol = _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
|
|
1019
1019
|
const decimals = _chunkNELAYNA3cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
|
|
1020
1020
|
return {
|
|
1021
|
-
id:
|
|
1021
|
+
id: _chunkNU3ES4JYcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
|
|
1022
1022
|
chainId: sourceChain,
|
|
1023
1023
|
token: sourceToken,
|
|
1024
1024
|
symbol,
|
|
@@ -1068,15 +1068,15 @@ function WithdrawFlow({
|
|
|
1068
1068
|
[logFlowError, onError]
|
|
1069
1069
|
);
|
|
1070
1070
|
const resolveSessionOwner = _react.useCallback.call(void 0, async (eoaAddress) => {
|
|
1071
|
-
const localOwner =
|
|
1071
|
+
const localOwner = _chunkNU3ES4JYcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
|
|
1072
1072
|
if (localOwner) {
|
|
1073
1073
|
return {
|
|
1074
|
-
account:
|
|
1074
|
+
account: _chunkNU3ES4JYcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
|
|
1075
1075
|
address: localOwner.address
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
|
-
const created =
|
|
1079
|
-
|
|
1078
|
+
const created = _chunkNU3ES4JYcjs.createSessionOwnerKey.call(void 0, );
|
|
1079
|
+
_chunkNU3ES4JYcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
|
|
1080
1080
|
return {
|
|
1081
1081
|
account: created.account,
|
|
1082
1082
|
address: created.address
|
|
@@ -1106,7 +1106,7 @@ function WithdrawFlow({
|
|
|
1106
1106
|
const setup = await service.setupAccount({
|
|
1107
1107
|
ownerAddress: ownerAddress2,
|
|
1108
1108
|
sessionOwnerAddress: sessionOwner.address,
|
|
1109
|
-
targetChain:
|
|
1109
|
+
targetChain: _chunkNU3ES4JYcjs.toEvmCaip2.call(void 0, targetChain),
|
|
1110
1110
|
targetToken,
|
|
1111
1111
|
signerAddress,
|
|
1112
1112
|
sessionChainIds,
|
|
@@ -1133,7 +1133,7 @@ function WithdrawFlow({
|
|
|
1133
1133
|
primaryType: typedData.primaryType,
|
|
1134
1134
|
message: typedData.message
|
|
1135
1135
|
});
|
|
1136
|
-
const sessionDetails =
|
|
1136
|
+
const sessionDetails = _chunkNU3ES4JYcjs.buildSessionDetails.call(void 0,
|
|
1137
1137
|
setup.sessionDetailsUnsigned,
|
|
1138
1138
|
signature
|
|
1139
1139
|
);
|
|
@@ -1147,7 +1147,7 @@ function WithdrawFlow({
|
|
|
1147
1147
|
eoaAddress: ownerAddress2,
|
|
1148
1148
|
sessionOwner: sessionOwner.address,
|
|
1149
1149
|
target: {
|
|
1150
|
-
chain:
|
|
1150
|
+
chain: _chunkNU3ES4JYcjs.toEvmCaip2.call(void 0, targetChain),
|
|
1151
1151
|
token: targetToken,
|
|
1152
1152
|
recipient
|
|
1153
1153
|
}
|
|
@@ -1156,7 +1156,7 @@ function WithdrawFlow({
|
|
|
1156
1156
|
}
|
|
1157
1157
|
handleConnected(ownerAddress2, smartAccount);
|
|
1158
1158
|
const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
|
|
1159
|
-
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => (
|
|
1159
|
+
const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunkNU3ES4JYcjs.getPublicClient.call(void 0, sourceChain)));
|
|
1160
1160
|
let result;
|
|
1161
1161
|
if (onSignTransaction) {
|
|
1162
1162
|
const transferData = isSourceNative ? { to: smartAccount, value: amountUnits, data: "0x" } : {
|
|
@@ -1179,7 +1179,7 @@ function WithdrawFlow({
|
|
|
1179
1179
|
const { signature } = await onSignTransaction(request);
|
|
1180
1180
|
const relayResult = await service.relayWithdraw({
|
|
1181
1181
|
smartAccount,
|
|
1182
|
-
chainId:
|
|
1182
|
+
chainId: _chunkNU3ES4JYcjs.toEvmCaip2.call(void 0, sourceChain),
|
|
1183
1183
|
safeAddress,
|
|
1184
1184
|
safeTransaction: request.typedData.message,
|
|
1185
1185
|
signature
|
|
@@ -1237,7 +1237,7 @@ function WithdrawFlow({
|
|
|
1237
1237
|
targetChain,
|
|
1238
1238
|
targetToken
|
|
1239
1239
|
});
|
|
1240
|
-
handleError(
|
|
1240
|
+
handleError(_chunkNU3ES4JYcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
|
|
1241
1241
|
throw err;
|
|
1242
1242
|
} finally {
|
|
1243
1243
|
setIsSubmitting(false);
|
|
@@ -1266,9 +1266,17 @@ function WithdrawFlow({
|
|
|
1266
1266
|
]
|
|
1267
1267
|
);
|
|
1268
1268
|
const handleWithdrawComplete = _react.useCallback.call(void 0,
|
|
1269
|
-
(txHash, destinationTxHash) => {
|
|
1270
|
-
logFlow("withdraw:complete", { txHash, destinationTxHash });
|
|
1271
|
-
_optionalChain([onWithdrawComplete, 'optionalCall', _28 => _28({
|
|
1269
|
+
(txHash, destinationTxHash, context) => {
|
|
1270
|
+
logFlow("withdraw:complete", { txHash, destinationTxHash, ...context });
|
|
1271
|
+
_optionalChain([onWithdrawComplete, 'optionalCall', _28 => _28({
|
|
1272
|
+
txHash,
|
|
1273
|
+
destinationTxHash,
|
|
1274
|
+
amount: context.amount,
|
|
1275
|
+
sourceChain: context.sourceChain,
|
|
1276
|
+
sourceToken: context.sourceToken,
|
|
1277
|
+
targetChain: context.targetChain,
|
|
1278
|
+
targetToken: context.targetToken
|
|
1279
|
+
})]);
|
|
1272
1280
|
},
|
|
1273
1281
|
[logFlow, onWithdrawComplete]
|
|
1274
1282
|
);
|
|
@@ -1347,7 +1355,7 @@ function WithdrawFlow({
|
|
|
1347
1355
|
}, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _37 => _37.icon])]);
|
|
1348
1356
|
if (showConnectStep) {
|
|
1349
1357
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1350
|
-
|
|
1358
|
+
_chunkNU3ES4JYcjs.ConnectStep,
|
|
1351
1359
|
{
|
|
1352
1360
|
walletOptions,
|
|
1353
1361
|
selectedWalletId: selectedWalletIdEffective,
|
|
@@ -1370,7 +1378,7 @@ function WithdrawFlow({
|
|
|
1370
1378
|
const resolvedOwnerAddress = signerContext.ownerAddress;
|
|
1371
1379
|
const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _38 => _38.walletClient, 'optionalAccess', _39 => _39.account, 'optionalAccess', _40 => _40.address]), () => ( _optionalChain([reownWallet, 'optionalAccess', _41 => _41.address]))), () => ( _optionalChain([dappWalletClient, 'optionalAccess', _42 => _42.account, 'optionalAccess', _43 => _43.address]))), () => ( resolvedOwnerAddress));
|
|
1372
1380
|
const resolvedDefaultRecipient = _nullishCoalesce(defaultRecipient, () => ( resolvedConnectedAddress));
|
|
1373
|
-
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => (
|
|
1381
|
+
const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkNU3ES4JYcjs.getPublicClient.call(void 0, sourceChain)));
|
|
1374
1382
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
|
|
1375
1383
|
step.type === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1376
1384
|
WithdrawFormStep,
|
|
@@ -1397,13 +1405,14 @@ function WithdrawFlow({
|
|
|
1397
1405
|
}
|
|
1398
1406
|
),
|
|
1399
1407
|
step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1400
|
-
|
|
1408
|
+
_chunkNU3ES4JYcjs.ProcessingStep,
|
|
1401
1409
|
{
|
|
1402
1410
|
smartAccount: step.smartAccount,
|
|
1403
1411
|
txHash: step.txHash,
|
|
1404
1412
|
sourceChain: step.sourceChain,
|
|
1405
1413
|
sourceToken: step.sourceToken,
|
|
1406
1414
|
targetChain,
|
|
1415
|
+
targetToken,
|
|
1407
1416
|
amount: step.amount,
|
|
1408
1417
|
waitForFinalTx,
|
|
1409
1418
|
service,
|
|
@@ -1422,7 +1431,7 @@ function WithdrawFlow({
|
|
|
1422
1431
|
// src/WithdrawModal.tsx
|
|
1423
1432
|
|
|
1424
1433
|
var ReownWithdrawInner = _react.lazy.call(void 0,
|
|
1425
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-
|
|
1434
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-DULPL255.cjs"))).then((m) => ({
|
|
1426
1435
|
default: m.WithdrawModalReown
|
|
1427
1436
|
}))
|
|
1428
1437
|
);
|
|
@@ -1478,12 +1487,12 @@ function WithdrawModalInner({
|
|
|
1478
1487
|
const targetChain = _chunkNELAYNA3cjs.getChainId.call(void 0, targetChainProp);
|
|
1479
1488
|
const sourceChain = _chunkNELAYNA3cjs.getChainId.call(void 0, sourceChainProp);
|
|
1480
1489
|
const service = _react.useMemo.call(void 0,
|
|
1481
|
-
() =>
|
|
1490
|
+
() => _chunkNU3ES4JYcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
|
|
1482
1491
|
[backendUrl, debug]
|
|
1483
1492
|
);
|
|
1484
1493
|
_react.useEffect.call(void 0, () => {
|
|
1485
1494
|
if (isOpen && modalRef.current) {
|
|
1486
|
-
|
|
1495
|
+
_chunkNU3ES4JYcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
1487
1496
|
}
|
|
1488
1497
|
}, [isOpen, theme]);
|
|
1489
1498
|
const hasCalledReady = _react.useRef.call(void 0, false);
|
|
@@ -1519,7 +1528,7 @@ function WithdrawModalInner({
|
|
|
1519
1528
|
const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _52 => _52.title]), () => ( "Withdraw"));
|
|
1520
1529
|
const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
|
|
1521
1530
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1522
|
-
|
|
1531
|
+
_chunkNU3ES4JYcjs.Modal,
|
|
1523
1532
|
{
|
|
1524
1533
|
isOpen,
|
|
1525
1534
|
onClose,
|
|
@@ -1577,7 +1586,7 @@ function WithdrawModalInner({
|
|
|
1577
1586
|
] }),
|
|
1578
1587
|
balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
|
|
1579
1588
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-label", children: balance.title }),
|
|
1580
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ?
|
|
1589
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkNU3ES4JYcjs.currencyFormatter.format(totalBalanceUsd) : null))) })
|
|
1581
1590
|
] })
|
|
1582
1591
|
] }),
|
|
1583
1592
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
loadSessionOwnerFromStorage,
|
|
21
21
|
saveSessionOwnerToStorage,
|
|
22
22
|
toEvmCaip2
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BNSX25TA.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_BACKEND_URL,
|
|
26
26
|
DEFAULT_SIGNER_ADDRESS,
|
|
@@ -1266,9 +1266,17 @@ function WithdrawFlow({
|
|
|
1266
1266
|
]
|
|
1267
1267
|
);
|
|
1268
1268
|
const handleWithdrawComplete = useCallback2(
|
|
1269
|
-
(txHash, destinationTxHash) => {
|
|
1270
|
-
logFlow("withdraw:complete", { txHash, destinationTxHash });
|
|
1271
|
-
onWithdrawComplete?.({
|
|
1269
|
+
(txHash, destinationTxHash, context) => {
|
|
1270
|
+
logFlow("withdraw:complete", { txHash, destinationTxHash, ...context });
|
|
1271
|
+
onWithdrawComplete?.({
|
|
1272
|
+
txHash,
|
|
1273
|
+
destinationTxHash,
|
|
1274
|
+
amount: context.amount,
|
|
1275
|
+
sourceChain: context.sourceChain,
|
|
1276
|
+
sourceToken: context.sourceToken,
|
|
1277
|
+
targetChain: context.targetChain,
|
|
1278
|
+
targetToken: context.targetToken
|
|
1279
|
+
});
|
|
1272
1280
|
},
|
|
1273
1281
|
[logFlow, onWithdrawComplete]
|
|
1274
1282
|
);
|
|
@@ -1404,6 +1412,7 @@ function WithdrawFlow({
|
|
|
1404
1412
|
sourceChain: step.sourceChain,
|
|
1405
1413
|
sourceToken: step.sourceToken,
|
|
1406
1414
|
targetChain,
|
|
1415
|
+
targetToken,
|
|
1407
1416
|
amount: step.amount,
|
|
1408
1417
|
waitForFinalTx,
|
|
1409
1418
|
service,
|
|
@@ -1422,7 +1431,7 @@ function WithdrawFlow({
|
|
|
1422
1431
|
// src/WithdrawModal.tsx
|
|
1423
1432
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1424
1433
|
var ReownWithdrawInner = lazy(
|
|
1425
|
-
() => import("./WithdrawModalReown-
|
|
1434
|
+
() => import("./WithdrawModalReown-V5HYDMO2.mjs").then((m) => ({
|
|
1426
1435
|
default: m.WithdrawModalReown
|
|
1427
1436
|
}))
|
|
1428
1437
|
);
|
|
@@ -1401,6 +1401,7 @@ function ProcessingStep({
|
|
|
1401
1401
|
directTransfer,
|
|
1402
1402
|
flowLabel = "deposit",
|
|
1403
1403
|
debug,
|
|
1404
|
+
targetToken,
|
|
1404
1405
|
onClose,
|
|
1405
1406
|
onNewDeposit,
|
|
1406
1407
|
onDepositComplete,
|
|
@@ -1419,10 +1420,10 @@ function ProcessingStep({
|
|
|
1419
1420
|
txHash,
|
|
1420
1421
|
flowLabel
|
|
1421
1422
|
});
|
|
1422
|
-
_optionalChain([onDepositComplete, 'optionalCall', _84 => _84(txHash)]);
|
|
1423
|
+
_optionalChain([onDepositComplete, 'optionalCall', _84 => _84(txHash, void 0, { amount, sourceChain, sourceToken, targetChain, targetToken })]);
|
|
1423
1424
|
return;
|
|
1424
1425
|
}
|
|
1425
|
-
}, [debug, directTransfer, flowLabel, txHash, onDepositComplete]);
|
|
1426
|
+
}, [debug, directTransfer, flowLabel, txHash, onDepositComplete, amount, sourceChain, sourceToken, targetChain, targetToken]);
|
|
1426
1427
|
_react.useEffect.call(void 0, () => {
|
|
1427
1428
|
if (directTransfer) return;
|
|
1428
1429
|
startTimeRef.current = Date.now();
|
|
@@ -1479,7 +1480,7 @@ function ProcessingStep({
|
|
|
1479
1480
|
destinationTxHash: destinationTxHash2,
|
|
1480
1481
|
event: eventForCurrentTx.type
|
|
1481
1482
|
});
|
|
1482
|
-
_optionalChain([onDepositComplete, 'optionalCall', _90 => _90(txHash, destinationTxHash2)]);
|
|
1483
|
+
_optionalChain([onDepositComplete, 'optionalCall', _90 => _90(txHash, destinationTxHash2, { amount, sourceChain, sourceToken, targetChain, targetToken })]);
|
|
1483
1484
|
return;
|
|
1484
1485
|
}
|
|
1485
1486
|
if (!waitForFinalTx && _optionalChain([eventForCurrentTx, 'optionalAccess', _91 => _91.type]) === "bridge-started") {
|
|
@@ -1488,7 +1489,7 @@ function ProcessingStep({
|
|
|
1488
1489
|
txHash,
|
|
1489
1490
|
event: eventForCurrentTx.type
|
|
1490
1491
|
});
|
|
1491
|
-
_optionalChain([onDepositComplete, 'optionalCall', _92 => _92(txHash)]);
|
|
1492
|
+
_optionalChain([onDepositComplete, 'optionalCall', _92 => _92(txHash, void 0, { amount, sourceChain, sourceToken, targetChain, targetToken })]);
|
|
1492
1493
|
return;
|
|
1493
1494
|
}
|
|
1494
1495
|
if (_optionalChain([eventForCurrentTx, 'optionalAccess', _93 => _93.type]) === "bridge-failed") {
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
toEvmCaip2,
|
|
26
26
|
tokenFormatter,
|
|
27
27
|
txRefsMatch
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BNSX25TA.mjs";
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_BACKEND_URL,
|
|
31
31
|
DEFAULT_SIGNER_ADDRESS,
|
|
@@ -3110,9 +3110,9 @@ function DepositFlow({
|
|
|
3110
3110
|
[onDepositSubmitted]
|
|
3111
3111
|
);
|
|
3112
3112
|
const handleDepositComplete = useCallback3(
|
|
3113
|
-
(txHash, destinationTxHash) => {
|
|
3114
|
-
logFlow("deposit:complete", { txHash, destinationTxHash });
|
|
3115
|
-
onDepositComplete?.({ txHash, destinationTxHash });
|
|
3113
|
+
(txHash, destinationTxHash, context) => {
|
|
3114
|
+
logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
|
|
3115
|
+
onDepositComplete?.({ txHash, destinationTxHash, ...context });
|
|
3116
3116
|
},
|
|
3117
3117
|
[logFlow, onDepositComplete]
|
|
3118
3118
|
);
|
|
@@ -3280,6 +3280,7 @@ function DepositFlow({
|
|
|
3280
3280
|
sourceChain: step.sourceChain,
|
|
3281
3281
|
sourceToken: step.sourceToken,
|
|
3282
3282
|
targetChain,
|
|
3283
|
+
targetToken,
|
|
3283
3284
|
amount: step.amount,
|
|
3284
3285
|
sourceSymbol: step.sourceSymbol,
|
|
3285
3286
|
sourceDecimals: step.sourceDecimals,
|
|
@@ -3401,6 +3402,7 @@ function DepositFlow({
|
|
|
3401
3402
|
sourceChain: step.sourceChain,
|
|
3402
3403
|
sourceToken: step.sourceToken,
|
|
3403
3404
|
targetChain,
|
|
3405
|
+
targetToken,
|
|
3404
3406
|
amount: step.amount,
|
|
3405
3407
|
sourceSymbol: step.sourceSymbol,
|
|
3406
3408
|
sourceDecimals: step.sourceDecimals,
|
|
@@ -3504,6 +3506,7 @@ function DepositFlow({
|
|
|
3504
3506
|
sourceChain: step.sourceChain,
|
|
3505
3507
|
sourceToken: step.sourceToken,
|
|
3506
3508
|
targetChain,
|
|
3509
|
+
targetToken,
|
|
3507
3510
|
amount: step.amount,
|
|
3508
3511
|
sourceSymbol: step.sourceSymbol,
|
|
3509
3512
|
sourceDecimals: step.sourceDecimals,
|
|
@@ -3524,7 +3527,7 @@ function DepositFlow({
|
|
|
3524
3527
|
// src/DepositModal.tsx
|
|
3525
3528
|
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3526
3529
|
var ReownDepositInner = lazy(
|
|
3527
|
-
() => import("./DepositModalReown-
|
|
3530
|
+
() => import("./DepositModalReown-BMHCHJ2P.mjs").then((m) => ({ default: m.DepositModalReown }))
|
|
3528
3531
|
);
|
|
3529
3532
|
function DepositModal(props) {
|
|
3530
3533
|
const needsReown = !!props.reownAppId;
|
package/dist/deposit.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk2AS2NAJ2cjs = require('./chunk-2AS2NAJ2.cjs');
|
|
4
|
+
require('./chunk-NU3ES4JY.cjs');
|
|
5
5
|
require('./chunk-NELAYNA3.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.DepositModal =
|
|
8
|
+
exports.DepositModal = _chunk2AS2NAJ2cjs.DepositModal;
|
package/dist/deposit.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { d as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
2
|
+
import { d as DepositModalProps } from './types-DgiqazTb.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-DgiqazTb.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import './safe.cjs';
|
|
6
6
|
|
package/dist/deposit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { d as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
2
|
+
import { d as DepositModalProps } from './types-D1nvo2dK.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData } from './types-D1nvo2dK.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import './safe.js';
|
|
6
6
|
|
package/dist/deposit.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2AS2NAJ2cjs = require('./chunk-2AS2NAJ2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkDKYHVAHNcjs = require('./chunk-DKYHVAHN.cjs');
|
|
7
|
+
require('./chunk-NU3ES4JY.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -66,4 +66,4 @@ var _chunkNELAYNA3cjs = require('./chunk-NELAYNA3.cjs');
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
exports.CHAIN_BY_ID = _chunkNELAYNA3cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkNELAYNA3cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkNELAYNA3cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal =
|
|
69
|
+
exports.CHAIN_BY_ID = _chunkNELAYNA3cjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkNELAYNA3cjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkNELAYNA3cjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk2AS2NAJ2cjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkNELAYNA3cjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkNELAYNA3cjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkNELAYNA3cjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkDKYHVAHNcjs.WithdrawModal; exports.chainRegistry = _chunkNELAYNA3cjs.chainRegistry; exports.findChainIdForToken = _chunkNELAYNA3cjs.findChainIdForToken; exports.getChainBadge = _chunkNELAYNA3cjs.getChainBadge; exports.getChainIcon = _chunkNELAYNA3cjs.getChainIcon; exports.getChainId = _chunkNELAYNA3cjs.getChainId; exports.getChainName = _chunkNELAYNA3cjs.getChainName; exports.getChainObject = _chunkNELAYNA3cjs.getChainObject; exports.getExplorerName = _chunkNELAYNA3cjs.getExplorerName; exports.getExplorerTxUrl = _chunkNELAYNA3cjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkNELAYNA3cjs.getExplorerUrl; exports.getSupportedChainIds = _chunkNELAYNA3cjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkNELAYNA3cjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkNELAYNA3cjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkNELAYNA3cjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkNELAYNA3cjs.getTokenAddress; exports.getTokenDecimals = _chunkNELAYNA3cjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkNELAYNA3cjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkNELAYNA3cjs.getTokenIcon; exports.getTokenSymbol = _chunkNELAYNA3cjs.getTokenSymbol; exports.getUsdcAddress = _chunkNELAYNA3cjs.getUsdcAddress; exports.getUsdcDecimals = _chunkNELAYNA3cjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkNELAYNA3cjs.isSupportedTokenAddressForChain;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.cjs';
|
|
2
2
|
export { WithdrawModal } from './withdraw.cjs';
|
|
3
|
-
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-DgiqazTb.cjs';
|
|
4
4
|
export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
|
|
5
5
|
export { SafeTransactionRequest } from './safe.cjs';
|
|
6
6
|
import 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.js';
|
|
2
2
|
export { WithdrawModal } from './withdraw.js';
|
|
3
|
-
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, R as RouteConfig, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-D1nvo2dK.js';
|
|
4
4
|
export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
|
|
5
5
|
export { SafeTransactionRequest } from './safe.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SKL3JJP6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-G2GXEC7C.mjs";
|
|
7
|
+
import "./chunk-BNSX25TA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
CHAIN_BY_ID,
|
|
10
10
|
DEFAULT_BACKEND_URL,
|
package/dist/reown.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2AS2NAJ2cjs = require('./chunk-2AS2NAJ2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkDKYHVAHNcjs = require('./chunk-DKYHVAHN.cjs');
|
|
7
|
+
require('./chunk-NU3ES4JY.cjs');
|
|
8
8
|
require('./chunk-NELAYNA3.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.DepositModal =
|
|
12
|
+
exports.DepositModal = _chunk2AS2NAJ2cjs.DepositModal; exports.WithdrawModal = _chunkDKYHVAHNcjs.WithdrawModal;
|
package/dist/reown.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.cjs';
|
|
2
2
|
export { WithdrawModal } from './withdraw.cjs';
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-DgiqazTb.cjs';
|
|
4
4
|
export { SafeTransactionRequest } from './safe.cjs';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|
package/dist/reown.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DepositModal } from './deposit.js';
|
|
2
2
|
export { WithdrawModal } from './withdraw.js';
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DepositCompleteEventData, b as DepositFailedEventData, c as DepositModalBranding, d as DepositModalProps, e as DepositModalTheme, f as DepositModalUIConfig, g as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, h as WithdrawFailedEventData, i as WithdrawModalProps, j as WithdrawSubmittedEventData } from './types-D1nvo2dK.js';
|
|
4
4
|
export { SafeTransactionRequest } from './safe.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import 'viem';
|
package/dist/reown.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SKL3JJP6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-G2GXEC7C.mjs";
|
|
7
|
+
import "./chunk-BNSX25TA.mjs";
|
|
8
8
|
import "./chunk-ZJQZEIHA.mjs";
|
|
9
9
|
export {
|
|
10
10
|
DepositModal,
|