@rhinestone/deposit-modal 0.2.4 → 0.2.5-alpha.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-CY5MSQGK.mjs → DepositModalReown-GIODYNOK.mjs} +4 -2
- package/dist/{DepositModalReown-2UMPITRN.cjs → DepositModalReown-SVVA3OZ6.cjs} +5 -3
- package/dist/{WithdrawModalReown-YSRO5ZTA.mjs → WithdrawModalReown-HTEB4XGU.mjs} +3 -2
- package/dist/{WithdrawModalReown-Z5BUZQ4Z.cjs → WithdrawModalReown-VNTKGALT.cjs} +4 -3
- package/dist/{chunk-QUOP5C6V.cjs → chunk-4S262VLP.cjs} +54 -338
- package/dist/{chunk-ARGMXV6E.cjs → chunk-AHQY2O3U.cjs} +507 -235
- package/dist/{chunk-WNFGZS56.mjs → chunk-DUGDAMAF.mjs} +134 -132
- package/dist/chunk-J2SWZSXL.mjs +295 -0
- package/dist/{chunk-NFXJEOE6.cjs → chunk-KE6CJVOV.cjs} +88 -86
- package/dist/chunk-LHOHM67Z.mjs +234 -0
- package/dist/{chunk-HFQV7EHS.mjs → chunk-RQ2VCKLS.mjs} +451 -179
- package/dist/{chunk-KJEHVIPZ.mjs → chunk-WA4RA4HB.mjs} +14 -298
- package/dist/chunk-YKGL66EF.cjs +295 -0
- package/dist/chunk-ZHLQMSQM.cjs +234 -0
- package/dist/deposit.cjs +5 -3
- package/dist/deposit.d.cts +3 -3
- package/dist/deposit.d.ts +3 -3
- package/dist/deposit.mjs +4 -2
- package/dist/index.cjs +6 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +5 -3
- package/dist/reown.cjs +6 -4
- package/dist/reown.d.cts +2 -2
- package/dist/reown.d.ts +2 -2
- package/dist/reown.mjs +5 -3
- package/dist/safe-CB7TvRCc.d.cts +62 -0
- package/dist/safe-CB7TvRCc.d.ts +62 -0
- package/dist/safe.cjs +22 -1
- package/dist/safe.d.cts +11 -59
- package/dist/safe.d.ts +11 -59
- package/dist/safe.mjs +22 -0
- package/dist/{types-DGQzvl6v.d.ts → types-CeFbJ-MW.d.ts} +8 -1
- package/dist/{types-DJ1fzNC7.d.cts → types-D0NawmZ8.d.cts} +8 -1
- package/dist/withdraw.cjs +4 -3
- package/dist/withdraw.d.cts +3 -3
- package/dist/withdraw.d.ts +3 -3
- package/dist/withdraw.mjs +3 -2
- package/package.json +1 -1
|
@@ -1146,16 +1146,6 @@ function TransferIcon() {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
) });
|
|
1148
1148
|
}
|
|
1149
|
-
function CheckIcon() {
|
|
1150
|
-
return /* @__PURE__ */ jsx4("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ jsx4(
|
|
1151
|
-
"path",
|
|
1152
|
-
{
|
|
1153
|
-
d: "M5 13l4 4L19 7",
|
|
1154
|
-
strokeLinecap: "round",
|
|
1155
|
-
strokeLinejoin: "round"
|
|
1156
|
-
}
|
|
1157
|
-
) });
|
|
1158
|
-
}
|
|
1159
1149
|
function ChevronRightIcon() {
|
|
1160
1150
|
return /* @__PURE__ */ jsx4("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx4(
|
|
1161
1151
|
"path",
|
|
@@ -1167,23 +1157,59 @@ function ChevronRightIcon() {
|
|
|
1167
1157
|
) });
|
|
1168
1158
|
}
|
|
1169
1159
|
|
|
1170
|
-
// src/components/
|
|
1160
|
+
// src/components/ui/PoweredBy.tsx
|
|
1171
1161
|
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1162
|
+
function PoweredBy() {
|
|
1163
|
+
return /* @__PURE__ */ jsxs4("div", { className: "rs-powered-by", children: [
|
|
1164
|
+
/* @__PURE__ */ jsx5(
|
|
1165
|
+
"svg",
|
|
1166
|
+
{
|
|
1167
|
+
viewBox: "0 0 24 24",
|
|
1168
|
+
fill: "none",
|
|
1169
|
+
stroke: "currentColor",
|
|
1170
|
+
strokeWidth: "2",
|
|
1171
|
+
children: /* @__PURE__ */ jsx5(
|
|
1172
|
+
"path",
|
|
1173
|
+
{
|
|
1174
|
+
strokeLinecap: "round",
|
|
1175
|
+
strokeLinejoin: "round",
|
|
1176
|
+
d: "M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z"
|
|
1177
|
+
}
|
|
1178
|
+
)
|
|
1179
|
+
}
|
|
1180
|
+
),
|
|
1181
|
+
/* @__PURE__ */ jsxs4("span", { children: [
|
|
1182
|
+
"Powered by",
|
|
1183
|
+
" ",
|
|
1184
|
+
/* @__PURE__ */ jsx5(
|
|
1185
|
+
"a",
|
|
1186
|
+
{
|
|
1187
|
+
href: "https://www.rhinestone.dev",
|
|
1188
|
+
target: "_blank",
|
|
1189
|
+
rel: "noopener noreferrer",
|
|
1190
|
+
children: "Rhinestone"
|
|
1191
|
+
}
|
|
1192
|
+
)
|
|
1193
|
+
] })
|
|
1194
|
+
] });
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
// src/components/steps/ConnectStep.tsx
|
|
1198
|
+
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1172
1199
|
function rowIcon(kind) {
|
|
1173
|
-
if (kind === "connected") return /* @__PURE__ */
|
|
1174
|
-
if (kind === "solana") return /* @__PURE__ */
|
|
1175
|
-
return /* @__PURE__ */
|
|
1200
|
+
if (kind === "connected") return /* @__PURE__ */ jsx6(WalletIcon, {});
|
|
1201
|
+
if (kind === "solana") return /* @__PURE__ */ jsx6(ExternalLinkIcon, {});
|
|
1202
|
+
return /* @__PURE__ */ jsx6(ExternalLinkIcon, {});
|
|
1176
1203
|
}
|
|
1177
1204
|
function ConnectStep({
|
|
1178
1205
|
walletOptions,
|
|
1179
|
-
|
|
1206
|
+
enablePolymarketMigration,
|
|
1180
1207
|
onSelectWallet,
|
|
1181
1208
|
onSelectTransferCrypto,
|
|
1209
|
+
onSelectPolymarket,
|
|
1182
1210
|
onRequestConnect,
|
|
1183
1211
|
onConnect,
|
|
1184
1212
|
onDisconnect,
|
|
1185
|
-
onContinue,
|
|
1186
|
-
continueButtonLabel = "Continue",
|
|
1187
1213
|
connectButtonLabel = "Connect external wallet"
|
|
1188
1214
|
}) {
|
|
1189
1215
|
const hasWalletOptions = (walletOptions?.length ?? 0) > 0;
|
|
@@ -1192,80 +1218,86 @@ function ConnectStep({
|
|
|
1192
1218
|
(option) => option.kind === "external" || option.kind === "solana"
|
|
1193
1219
|
) ?? false;
|
|
1194
1220
|
const showConnectDifferentWalletOption = Boolean(onConnect) && !hasReownWallet;
|
|
1195
|
-
return /* @__PURE__ */
|
|
1196
|
-
/* @__PURE__ */
|
|
1197
|
-
/* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsxs5("div", { className: "rs-step", children: [
|
|
1222
|
+
/* @__PURE__ */ jsxs5("div", { className: "rs-connect-centered rs-connect-centered--wallets", children: [
|
|
1223
|
+
/* @__PURE__ */ jsxs5("div", { className: "rs-connect-wallet-list", children: [
|
|
1224
|
+
onSelectTransferCrypto && /* @__PURE__ */ jsxs5(
|
|
1225
|
+
"button",
|
|
1226
|
+
{
|
|
1227
|
+
type: "button",
|
|
1228
|
+
className: "rs-connect-wallet-row rs-connect-wallet-row--action",
|
|
1229
|
+
onClick: onSelectTransferCrypto,
|
|
1230
|
+
children: [
|
|
1231
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ jsx6(TransferIcon, {}) }),
|
|
1232
|
+
/* @__PURE__ */ jsxs5("div", { className: "rs-connect-wallet-meta", children: [
|
|
1233
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-label", children: "Transfer Crypto" }),
|
|
1234
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-address", children: "No limit instant transfer" })
|
|
1235
|
+
] }),
|
|
1236
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx6(ChevronRightIcon, {}) })
|
|
1237
|
+
]
|
|
1238
|
+
}
|
|
1239
|
+
),
|
|
1198
1240
|
walletOptions?.map((option) => {
|
|
1199
|
-
const isSelected = option.id === selectedWalletId;
|
|
1200
1241
|
const rawAddress = option.address ?? option.solanaAddress ?? option.id;
|
|
1201
1242
|
const shortAddress = rawAddress.length > 12 ? `${rawAddress.slice(0, 6)}...${rawAddress.slice(-4)}` : rawAddress;
|
|
1202
|
-
return /* @__PURE__ */
|
|
1243
|
+
return /* @__PURE__ */ jsxs5(
|
|
1203
1244
|
"button",
|
|
1204
1245
|
{
|
|
1205
1246
|
type: "button",
|
|
1206
|
-
className:
|
|
1247
|
+
className: "rs-connect-wallet-row",
|
|
1207
1248
|
onClick: () => onSelectWallet?.(option.id),
|
|
1208
1249
|
children: [
|
|
1209
|
-
/* @__PURE__ */
|
|
1210
|
-
"
|
|
1250
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-icon", children: option.icon ? /* @__PURE__ */ jsx6(
|
|
1251
|
+
"img",
|
|
1211
1252
|
{
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
{
|
|
1216
|
-
src: option.icon,
|
|
1217
|
-
alt: option.label,
|
|
1218
|
-
style: { width: 24, height: 24, borderRadius: 6 }
|
|
1219
|
-
}
|
|
1220
|
-
) : rowIcon(option.kind)
|
|
1253
|
+
src: option.icon,
|
|
1254
|
+
alt: option.label,
|
|
1255
|
+
style: { width: 24, height: 24, borderRadius: 6 }
|
|
1221
1256
|
}
|
|
1222
|
-
),
|
|
1223
|
-
/* @__PURE__ */
|
|
1224
|
-
/* @__PURE__ */
|
|
1225
|
-
/* @__PURE__ */
|
|
1257
|
+
) : rowIcon(option.kind) }),
|
|
1258
|
+
/* @__PURE__ */ jsxs5("div", { className: "rs-connect-wallet-meta", children: [
|
|
1259
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-label", children: option.label }),
|
|
1260
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-address", children: shortAddress })
|
|
1226
1261
|
] }),
|
|
1227
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx6(ChevronRightIcon, {}) })
|
|
1228
1263
|
]
|
|
1229
1264
|
},
|
|
1230
1265
|
option.id
|
|
1231
1266
|
);
|
|
1232
1267
|
}),
|
|
1233
|
-
showConnectDifferentWalletOption && /* @__PURE__ */
|
|
1268
|
+
showConnectDifferentWalletOption && /* @__PURE__ */ jsxs5(
|
|
1234
1269
|
"button",
|
|
1235
1270
|
{
|
|
1236
1271
|
type: "button",
|
|
1237
1272
|
className: "rs-connect-wallet-row rs-connect-wallet-row--action",
|
|
1238
1273
|
onClick: onConnect,
|
|
1239
1274
|
children: [
|
|
1240
|
-
/* @__PURE__ */
|
|
1241
|
-
/* @__PURE__ */
|
|
1242
|
-
/* @__PURE__ */
|
|
1243
|
-
/* @__PURE__ */
|
|
1275
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ jsx6(ExternalLinkIcon, {}) }),
|
|
1276
|
+
/* @__PURE__ */ jsxs5("div", { className: "rs-connect-wallet-meta", children: [
|
|
1277
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-label", children: "External Wallet" }),
|
|
1278
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-address", children: "Connect different wallet" })
|
|
1244
1279
|
] }),
|
|
1245
|
-
/* @__PURE__ */
|
|
1280
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx6(ChevronRightIcon, {}) })
|
|
1246
1281
|
]
|
|
1247
1282
|
}
|
|
1248
1283
|
),
|
|
1249
|
-
|
|
1284
|
+
enablePolymarketMigration && onSelectPolymarket && /* @__PURE__ */ jsxs5(
|
|
1250
1285
|
"button",
|
|
1251
1286
|
{
|
|
1252
1287
|
type: "button",
|
|
1253
1288
|
className: "rs-connect-wallet-row rs-connect-wallet-row--action",
|
|
1254
|
-
onClick:
|
|
1289
|
+
onClick: onSelectPolymarket,
|
|
1255
1290
|
children: [
|
|
1256
|
-
/* @__PURE__ */
|
|
1257
|
-
/* @__PURE__ */
|
|
1258
|
-
|
|
1259
|
-
/* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-address", children: "No limit instant transfer" })
|
|
1260
|
-
] }),
|
|
1261
|
-
/* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx5(ChevronRightIcon, {}) })
|
|
1291
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ jsx6(ExternalLinkIcon, {}) }),
|
|
1292
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-meta", children: /* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-label", children: "Migrate from Polymarket" }) }),
|
|
1293
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx6(ChevronRightIcon, {}) })
|
|
1262
1294
|
]
|
|
1263
1295
|
}
|
|
1264
1296
|
)
|
|
1265
1297
|
] }),
|
|
1266
1298
|
(onDisconnect || onConnect) && walletOptions?.some(
|
|
1267
1299
|
(option) => option.kind === "external" || option.kind === "solana"
|
|
1268
|
-
) && /* @__PURE__ */
|
|
1300
|
+
) && /* @__PURE__ */ jsx6(
|
|
1269
1301
|
"button",
|
|
1270
1302
|
{
|
|
1271
1303
|
type: "button",
|
|
@@ -1275,61 +1307,68 @@ function ConnectStep({
|
|
|
1275
1307
|
}
|
|
1276
1308
|
)
|
|
1277
1309
|
] }),
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
Button,
|
|
1280
|
-
{
|
|
1281
|
-
onClick: onContinue,
|
|
1282
|
-
variant: "accent",
|
|
1283
|
-
fullWidth: true,
|
|
1284
|
-
disabled: !selectedWalletId || !onContinue,
|
|
1285
|
-
children: continueButtonLabel
|
|
1286
|
-
}
|
|
1287
|
-
) })
|
|
1310
|
+
/* @__PURE__ */ jsx6(PoweredBy, {})
|
|
1288
1311
|
] });
|
|
1289
1312
|
}
|
|
1290
1313
|
const handleConnect = onConnect ?? onRequestConnect;
|
|
1291
1314
|
if (onSelectTransferCrypto) {
|
|
1292
|
-
return /* @__PURE__ */
|
|
1293
|
-
/* @__PURE__ */
|
|
1315
|
+
return /* @__PURE__ */ jsx6("div", { className: "rs-step", children: /* @__PURE__ */ jsx6("div", { className: "rs-connect-centered rs-connect-centered--wallets", children: /* @__PURE__ */ jsxs5("div", { className: "rs-connect-wallet-list", children: [
|
|
1316
|
+
/* @__PURE__ */ jsxs5(
|
|
1294
1317
|
"button",
|
|
1295
1318
|
{
|
|
1296
1319
|
type: "button",
|
|
1297
1320
|
className: "rs-connect-wallet-row rs-connect-wallet-row--action",
|
|
1298
1321
|
onClick: onSelectTransferCrypto,
|
|
1299
1322
|
children: [
|
|
1300
|
-
/* @__PURE__ */
|
|
1301
|
-
/* @__PURE__ */
|
|
1302
|
-
/* @__PURE__ */
|
|
1303
|
-
/* @__PURE__ */
|
|
1323
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ jsx6(TransferIcon, {}) }),
|
|
1324
|
+
/* @__PURE__ */ jsxs5("div", { className: "rs-connect-wallet-meta", children: [
|
|
1325
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-label", children: "Transfer Crypto" }),
|
|
1326
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-address", children: "No limit instant transfer" })
|
|
1304
1327
|
] }),
|
|
1305
|
-
/* @__PURE__ */
|
|
1328
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx6(ChevronRightIcon, {}) })
|
|
1306
1329
|
]
|
|
1307
1330
|
}
|
|
1308
1331
|
),
|
|
1309
|
-
handleConnect && /* @__PURE__ */
|
|
1332
|
+
handleConnect && /* @__PURE__ */ jsxs5(
|
|
1310
1333
|
"button",
|
|
1311
1334
|
{
|
|
1312
1335
|
type: "button",
|
|
1313
1336
|
className: "rs-connect-wallet-row rs-connect-wallet-row--action",
|
|
1314
1337
|
onClick: handleConnect,
|
|
1315
1338
|
children: [
|
|
1316
|
-
/* @__PURE__ */
|
|
1317
|
-
/* @__PURE__ */
|
|
1318
|
-
/* @__PURE__ */
|
|
1319
|
-
/* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ jsx6(WalletIcon, {}) }),
|
|
1340
|
+
/* @__PURE__ */ jsxs5("div", { className: "rs-connect-wallet-meta", children: [
|
|
1341
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-label", children: "Connect Wallet" }),
|
|
1342
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-address", children: "Connect your wallet to deposit" })
|
|
1320
1343
|
] }),
|
|
1321
|
-
/* @__PURE__ */
|
|
1344
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx6(ChevronRightIcon, {}) })
|
|
1345
|
+
]
|
|
1346
|
+
}
|
|
1347
|
+
),
|
|
1348
|
+
enablePolymarketMigration && handleConnect && /* @__PURE__ */ jsxs5(
|
|
1349
|
+
"button",
|
|
1350
|
+
{
|
|
1351
|
+
type: "button",
|
|
1352
|
+
className: "rs-connect-wallet-row rs-connect-wallet-row--action",
|
|
1353
|
+
onClick: onSelectPolymarket ?? handleConnect,
|
|
1354
|
+
children: [
|
|
1355
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ jsx6(ExternalLinkIcon, {}) }),
|
|
1356
|
+
/* @__PURE__ */ jsxs5("div", { className: "rs-connect-wallet-meta", children: [
|
|
1357
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-label", children: "Connect Polymarket" }),
|
|
1358
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-address", children: "Connect the EOA that owns your Polymarket wallet" })
|
|
1359
|
+
] }),
|
|
1360
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx6(ChevronRightIcon, {}) })
|
|
1322
1361
|
]
|
|
1323
1362
|
}
|
|
1324
1363
|
)
|
|
1325
1364
|
] }) }) });
|
|
1326
1365
|
}
|
|
1327
|
-
return /* @__PURE__ */
|
|
1328
|
-
/* @__PURE__ */
|
|
1329
|
-
/* @__PURE__ */
|
|
1330
|
-
/* @__PURE__ */
|
|
1331
|
-
/* @__PURE__ */
|
|
1332
|
-
/* @__PURE__ */
|
|
1366
|
+
return /* @__PURE__ */ jsxs5("div", { className: "rs-step", children: [
|
|
1367
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-centered rs-connect-centered--minimal", children: /* @__PURE__ */ jsxs5("div", { className: "rs-connect-empty", children: [
|
|
1368
|
+
/* @__PURE__ */ jsxs5("div", { className: "rs-connect-empty-graphic", "aria-hidden": "true", children: [
|
|
1369
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-empty-orbit rs-connect-empty-orbit--outer" }),
|
|
1370
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-empty-orbit rs-connect-empty-orbit--inner" }),
|
|
1371
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-empty-core", children: /* @__PURE__ */ jsxs5(
|
|
1333
1372
|
"svg",
|
|
1334
1373
|
{
|
|
1335
1374
|
viewBox: "0 0 24 24",
|
|
@@ -1337,7 +1376,7 @@ function ConnectStep({
|
|
|
1337
1376
|
stroke: "currentColor",
|
|
1338
1377
|
strokeWidth: "1.6",
|
|
1339
1378
|
children: [
|
|
1340
|
-
/* @__PURE__ */
|
|
1379
|
+
/* @__PURE__ */ jsx6(
|
|
1341
1380
|
"path",
|
|
1342
1381
|
{
|
|
1343
1382
|
strokeLinecap: "round",
|
|
@@ -1345,7 +1384,7 @@ function ConnectStep({
|
|
|
1345
1384
|
d: "M4 8.25A2.25 2.25 0 016.25 6h11.5A2.25 2.25 0 0120 8.25v7.5A2.25 2.25 0 0117.75 18H6.25A2.25 2.25 0 014 15.75v-7.5z"
|
|
1346
1385
|
}
|
|
1347
1386
|
),
|
|
1348
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ jsx6(
|
|
1349
1388
|
"path",
|
|
1350
1389
|
{
|
|
1351
1390
|
strokeLinecap: "round",
|
|
@@ -1353,17 +1392,17 @@ function ConnectStep({
|
|
|
1353
1392
|
d: "M20 10.5h-3.75a2.25 2.25 0 100 4.5H20"
|
|
1354
1393
|
}
|
|
1355
1394
|
),
|
|
1356
|
-
/* @__PURE__ */
|
|
1395
|
+
/* @__PURE__ */ jsx6("circle", { cx: "16.25", cy: "12.75", r: "0.85", fill: "currentColor" })
|
|
1357
1396
|
]
|
|
1358
1397
|
}
|
|
1359
1398
|
) }),
|
|
1360
|
-
/* @__PURE__ */
|
|
1361
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ jsx6("span", { className: "rs-connect-empty-dot rs-connect-empty-dot--left" }),
|
|
1400
|
+
/* @__PURE__ */ jsx6("span", { className: "rs-connect-empty-dot rs-connect-empty-dot--right" })
|
|
1362
1401
|
] }),
|
|
1363
|
-
/* @__PURE__ */
|
|
1364
|
-
/* @__PURE__ */
|
|
1402
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-empty-title", children: "No wallet connected" }),
|
|
1403
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-connect-empty-subtitle", children: "Connect an external wallet to continue." })
|
|
1365
1404
|
] }) }),
|
|
1366
|
-
/* @__PURE__ */
|
|
1405
|
+
/* @__PURE__ */ jsx6("div", { className: "rs-step-footer rs-step-footer--connect-empty", children: /* @__PURE__ */ jsx6(
|
|
1367
1406
|
Button,
|
|
1368
1407
|
{
|
|
1369
1408
|
onClick: handleConnect,
|
|
@@ -1430,43 +1469,6 @@ function accountFromPrivateKey(privateKey) {
|
|
|
1430
1469
|
import { useEffect as useEffect3, useRef as useRef3, useState } from "react";
|
|
1431
1470
|
import { formatUnits } from "viem";
|
|
1432
1471
|
|
|
1433
|
-
// src/components/ui/PoweredBy.tsx
|
|
1434
|
-
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1435
|
-
function PoweredBy() {
|
|
1436
|
-
return /* @__PURE__ */ jsxs5("div", { className: "rs-powered-by", children: [
|
|
1437
|
-
/* @__PURE__ */ jsx6(
|
|
1438
|
-
"svg",
|
|
1439
|
-
{
|
|
1440
|
-
viewBox: "0 0 24 24",
|
|
1441
|
-
fill: "none",
|
|
1442
|
-
stroke: "currentColor",
|
|
1443
|
-
strokeWidth: "2",
|
|
1444
|
-
children: /* @__PURE__ */ jsx6(
|
|
1445
|
-
"path",
|
|
1446
|
-
{
|
|
1447
|
-
strokeLinecap: "round",
|
|
1448
|
-
strokeLinejoin: "round",
|
|
1449
|
-
d: "M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z"
|
|
1450
|
-
}
|
|
1451
|
-
)
|
|
1452
|
-
}
|
|
1453
|
-
),
|
|
1454
|
-
/* @__PURE__ */ jsxs5("span", { children: [
|
|
1455
|
-
"Powered by",
|
|
1456
|
-
" ",
|
|
1457
|
-
/* @__PURE__ */ jsx6(
|
|
1458
|
-
"a",
|
|
1459
|
-
{
|
|
1460
|
-
href: "https://www.rhinestone.dev",
|
|
1461
|
-
target: "_blank",
|
|
1462
|
-
rel: "noopener noreferrer",
|
|
1463
|
-
children: "Rhinestone"
|
|
1464
|
-
}
|
|
1465
|
-
)
|
|
1466
|
-
] })
|
|
1467
|
-
] });
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
1472
|
// src/core/webhook.ts
|
|
1471
1473
|
function isRecord(value) {
|
|
1472
1474
|
return typeof value === "object" && value !== null;
|
|
@@ -1991,11 +1993,11 @@ function ProcessingStep({
|
|
|
1991
1993
|
const bridgeExplorerUrl = bridgeTxHash ? getExplorerTxUrl(targetChain, bridgeTxHash) : null;
|
|
1992
1994
|
const destExplorerUrl = destinationTxHash ? getExplorerTxUrl(targetChain, destinationTxHash) : null;
|
|
1993
1995
|
const isEvmSourceToken = /^0x[a-fA-F0-9]{40}$/.test(displaySourceToken);
|
|
1994
|
-
const sourceSymbol = displaySourceChain === "solana" ?
|
|
1995
|
-
const sourceDecimals = displaySourceChain === "solana" ?
|
|
1996
|
+
const sourceSymbol = providedSourceSymbol ?? (displaySourceChain === "solana" ? "SOL" : isEvmSourceToken ? getTokenSymbol(displaySourceToken, displaySourceChain) : "Token");
|
|
1997
|
+
const sourceDecimals = providedSourceDecimals ?? (displaySourceChain === "solana" ? 9 : isEvmSourceToken ? getTokenDecimalsByAddress(
|
|
1996
1998
|
displaySourceToken,
|
|
1997
1999
|
displaySourceChain
|
|
1998
|
-
) :
|
|
2000
|
+
) : 18);
|
|
1999
2001
|
const formattedReceivedAmount = (() => {
|
|
2000
2002
|
try {
|
|
2001
2003
|
const raw = formatUnits(BigInt(displayAmount), sourceDecimals);
|
|
@@ -2307,6 +2309,7 @@ export {
|
|
|
2307
2309
|
Modal,
|
|
2308
2310
|
Spinner,
|
|
2309
2311
|
Button,
|
|
2312
|
+
PoweredBy,
|
|
2310
2313
|
ConnectStep,
|
|
2311
2314
|
debugLog,
|
|
2312
2315
|
debugError,
|
|
@@ -2322,7 +2325,6 @@ export {
|
|
|
2322
2325
|
saveSessionOwnerToStorage,
|
|
2323
2326
|
createSessionOwnerKey,
|
|
2324
2327
|
accountFromPrivateKey,
|
|
2325
|
-
PoweredBy,
|
|
2326
2328
|
currencyFormatter,
|
|
2327
2329
|
tokenFormatter,
|
|
2328
2330
|
formatUserError,
|