@meshsdk/react 1.9.0-beta.16 → 1.9.0-beta.18
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/index.cjs +175 -116
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +155 -96
- package/package.json +7 -6
package/dist/index.js
CHANGED
|
@@ -23432,7 +23432,7 @@ var require_dist = __commonJS({
|
|
|
23432
23432
|
});
|
|
23433
23433
|
|
|
23434
23434
|
// src/cardano-wallet/index.tsx
|
|
23435
|
-
import { useEffect as useEffect10, useState as
|
|
23435
|
+
import { useEffect as useEffect10, useState as useState13 } from "react";
|
|
23436
23436
|
|
|
23437
23437
|
// src/common/button.tsx
|
|
23438
23438
|
import * as React from "react";
|
|
@@ -24220,7 +24220,6 @@ function IconDownload() {
|
|
|
24220
24220
|
height: "24px",
|
|
24221
24221
|
strokeWidth: "1px"
|
|
24222
24222
|
},
|
|
24223
|
-
className: "hover:mesh-fill-white",
|
|
24224
24223
|
children: [
|
|
24225
24224
|
/* @__PURE__ */ jsx9("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
24226
24225
|
/* @__PURE__ */ jsx9("polyline", { points: "7 10 12 15 17 10" }),
|
|
@@ -24343,8 +24342,64 @@ function WalletIcon({
|
|
|
24343
24342
|
] });
|
|
24344
24343
|
}
|
|
24345
24344
|
|
|
24345
|
+
// src/cardano-wallet/web3-services.tsx
|
|
24346
|
+
import { useState as useState10 } from "react";
|
|
24347
|
+
import { Web3Wallet } from "@meshsdk/web3-sdk";
|
|
24348
|
+
|
|
24349
|
+
// src/common/icons/icon-discord.tsx
|
|
24350
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
24351
|
+
function IconDiscord() {
|
|
24352
|
+
return /* @__PURE__ */ jsx14(
|
|
24353
|
+
"svg",
|
|
24354
|
+
{
|
|
24355
|
+
viewBox: "0 0 20 20",
|
|
24356
|
+
"aria-hidden": "true",
|
|
24357
|
+
style: {
|
|
24358
|
+
color: "#ffadff",
|
|
24359
|
+
width: "24px",
|
|
24360
|
+
height: "24px",
|
|
24361
|
+
strokeWidth: "1px",
|
|
24362
|
+
fill: "#5865F2"
|
|
24363
|
+
},
|
|
24364
|
+
children: /* @__PURE__ */ jsx14("path", { d: "M16.238 4.515a14.842 14.842 0 0 0-3.664-1.136.055.055 0 0 0-.059.027 10.35 10.35 0 0 0-.456.938 13.702 13.702 0 0 0-4.115 0 9.479 9.479 0 0 0-.464-.938.058.058 0 0 0-.058-.027c-1.266.218-2.497.6-3.664 1.136a.052.052 0 0 0-.024.02C1.4 8.023.76 11.424 1.074 14.782a.062.062 0 0 0 .024.042 14.923 14.923 0 0 0 4.494 2.272.058.058 0 0 0 .064-.02c.346-.473.654-.972.92-1.496a.057.057 0 0 0-.032-.08 9.83 9.83 0 0 1-1.404-.669.058.058 0 0 1-.029-.046.058.058 0 0 1 .023-.05c.094-.07.189-.144.279-.218a.056.056 0 0 1 .058-.008c2.946 1.345 6.135 1.345 9.046 0a.056.056 0 0 1 .059.007c.09.074.184.149.28.22a.058.058 0 0 1 .023.049.059.059 0 0 1-.028.046 9.224 9.224 0 0 1-1.405.669.058.058 0 0 0-.033.033.056.056 0 0 0 .002.047c.27.523.58 1.022.92 1.495a.056.056 0 0 0 .062.021 14.878 14.878 0 0 0 4.502-2.272.055.055 0 0 0 .016-.018.056.056 0 0 0 .008-.023c.375-3.883-.63-7.256-2.662-10.246a.046.046 0 0 0-.023-.021Zm-9.223 8.221c-.887 0-1.618-.814-1.618-1.814s.717-1.814 1.618-1.814c.908 0 1.632.821 1.618 1.814 0 1-.717 1.814-1.618 1.814Zm5.981 0c-.887 0-1.618-.814-1.618-1.814s.717-1.814 1.618-1.814c.908 0 1.632.821 1.618 1.814 0 1-.71 1.814-1.618 1.814Z" })
|
|
24365
|
+
}
|
|
24366
|
+
);
|
|
24367
|
+
}
|
|
24368
|
+
|
|
24369
|
+
// src/cardano-wallet/web3-services.tsx
|
|
24370
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
24371
|
+
function Web3Services({
|
|
24372
|
+
options,
|
|
24373
|
+
setOpen
|
|
24374
|
+
}) {
|
|
24375
|
+
const { setWallet } = useWallet();
|
|
24376
|
+
const [loading, setLoading] = useState10(false);
|
|
24377
|
+
async function loadWallet() {
|
|
24378
|
+
setLoading(true);
|
|
24379
|
+
const _options = {
|
|
24380
|
+
networkId: 0,
|
|
24381
|
+
fetcher: options.fetcher,
|
|
24382
|
+
submitter: options.submitter,
|
|
24383
|
+
appUrl: options.appUrl,
|
|
24384
|
+
projectId: options.projectId
|
|
24385
|
+
};
|
|
24386
|
+
const wallet = await Web3Wallet.enable(_options);
|
|
24387
|
+
setWallet(wallet, "Mesh Web3 Services");
|
|
24388
|
+
setLoading(false);
|
|
24389
|
+
setOpen(false);
|
|
24390
|
+
}
|
|
24391
|
+
return /* @__PURE__ */ jsx15(
|
|
24392
|
+
WalletIcon,
|
|
24393
|
+
{
|
|
24394
|
+
iconReactNode: IconDiscord(),
|
|
24395
|
+
name: `Discord`,
|
|
24396
|
+
action: () => loadWallet()
|
|
24397
|
+
}
|
|
24398
|
+
);
|
|
24399
|
+
}
|
|
24400
|
+
|
|
24346
24401
|
// src/cardano-wallet/screen-main.tsx
|
|
24347
|
-
import { jsx as
|
|
24402
|
+
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
24348
24403
|
function ScreenMain({
|
|
24349
24404
|
injectFn,
|
|
24350
24405
|
extensions,
|
|
@@ -24354,12 +24409,14 @@ function ScreenMain({
|
|
|
24354
24409
|
cardanoPeerConnect,
|
|
24355
24410
|
burnerWallet,
|
|
24356
24411
|
webauthn,
|
|
24357
|
-
showDownload
|
|
24412
|
+
showDownload,
|
|
24413
|
+
web3Services
|
|
24358
24414
|
}) {
|
|
24359
24415
|
const wallets = useWalletList({ injectFn });
|
|
24360
24416
|
const { connect: connect2 } = useWallet();
|
|
24361
|
-
return /* @__PURE__ */
|
|
24362
|
-
|
|
24417
|
+
return /* @__PURE__ */ jsx16(TooltipProvider, { children: /* @__PURE__ */ jsxs10("div", { className: "mesh-grid mesh-gap-4 mesh-py-4 mesh-grid-cols-5 mesh-place-items-center mesh-gap-y-8", children: [
|
|
24418
|
+
web3Services && /* @__PURE__ */ jsx16(Web3Services, { options: web3Services, setOpen }),
|
|
24419
|
+
wallets.map((wallet, index) => /* @__PURE__ */ jsx16(
|
|
24363
24420
|
WalletIcon,
|
|
24364
24421
|
{
|
|
24365
24422
|
icon: wallet.icon,
|
|
@@ -24371,7 +24428,7 @@ function ScreenMain({
|
|
|
24371
24428
|
},
|
|
24372
24429
|
index
|
|
24373
24430
|
)),
|
|
24374
|
-
webauthn && /* @__PURE__ */
|
|
24431
|
+
webauthn && /* @__PURE__ */ jsx16(
|
|
24375
24432
|
WalletIcon,
|
|
24376
24433
|
{
|
|
24377
24434
|
iconReactNode: IconFingerprint(),
|
|
@@ -24381,7 +24438,7 @@ function ScreenMain({
|
|
|
24381
24438
|
}
|
|
24382
24439
|
}
|
|
24383
24440
|
),
|
|
24384
|
-
cardanoPeerConnect && /* @__PURE__ */
|
|
24441
|
+
cardanoPeerConnect && /* @__PURE__ */ jsx16(
|
|
24385
24442
|
WalletIcon,
|
|
24386
24443
|
{
|
|
24387
24444
|
iconReactNode: IconMonitorSmartphone(),
|
|
@@ -24391,7 +24448,7 @@ function ScreenMain({
|
|
|
24391
24448
|
}
|
|
24392
24449
|
}
|
|
24393
24450
|
),
|
|
24394
|
-
burnerWallet && /* @__PURE__ */
|
|
24451
|
+
burnerWallet && /* @__PURE__ */ jsx16(
|
|
24395
24452
|
WalletIcon,
|
|
24396
24453
|
{
|
|
24397
24454
|
iconReactNode: IconBookDashed(),
|
|
@@ -24401,7 +24458,7 @@ function ScreenMain({
|
|
|
24401
24458
|
}
|
|
24402
24459
|
}
|
|
24403
24460
|
),
|
|
24404
|
-
showDownload && /* @__PURE__ */
|
|
24461
|
+
showDownload && /* @__PURE__ */ jsx16(
|
|
24405
24462
|
WalletIcon,
|
|
24406
24463
|
{
|
|
24407
24464
|
iconReactNode: IconDownload(),
|
|
@@ -24419,16 +24476,16 @@ function ScreenMain({
|
|
|
24419
24476
|
|
|
24420
24477
|
// src/cardano-wallet/screen-p2p.tsx
|
|
24421
24478
|
var import_cardano_peer_connect = __toESM(require_dist(), 1);
|
|
24422
|
-
import { useEffect as useEffect9, useRef as useRef2, useState as
|
|
24423
|
-
import { jsx as
|
|
24479
|
+
import { useEffect as useEffect9, useRef as useRef2, useState as useState11 } from "react";
|
|
24480
|
+
import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
24424
24481
|
function ScreenP2P({
|
|
24425
24482
|
cardanoPeerConnect,
|
|
24426
24483
|
setOpen
|
|
24427
24484
|
}) {
|
|
24428
24485
|
const dAppConnect = useRef2(null);
|
|
24429
24486
|
const qrCodeField = useRef2(null);
|
|
24430
|
-
const [address, setAddress] =
|
|
24431
|
-
const [copied, setCopied] =
|
|
24487
|
+
const [address, setAddress] = useState11("");
|
|
24488
|
+
const [copied, setCopied] = useState11(false);
|
|
24432
24489
|
const { connect: connect2 } = useWallet();
|
|
24433
24490
|
useEffect9(() => {
|
|
24434
24491
|
if (cardanoPeerConnect) {
|
|
@@ -24465,8 +24522,8 @@ function ScreenP2P({
|
|
|
24465
24522
|
}
|
|
24466
24523
|
}, []);
|
|
24467
24524
|
return /* @__PURE__ */ jsxs11("div", { className: "mesh-flex mesh-flex-col mesh-items-center mesh-justify-center", children: [
|
|
24468
|
-
/* @__PURE__ */
|
|
24469
|
-
/* @__PURE__ */
|
|
24525
|
+
/* @__PURE__ */ jsx17("div", { style: { marginTop: 16, marginBottom: 16 }, ref: qrCodeField }),
|
|
24526
|
+
/* @__PURE__ */ jsx17(
|
|
24470
24527
|
Button,
|
|
24471
24528
|
{
|
|
24472
24529
|
variant: "outline",
|
|
@@ -24481,15 +24538,15 @@ function ScreenP2P({
|
|
|
24481
24538
|
}
|
|
24482
24539
|
|
|
24483
24540
|
// src/cardano-wallet/screen-webauthn.tsx
|
|
24484
|
-
import { useState as
|
|
24541
|
+
import { useState as useState12 } from "react";
|
|
24485
24542
|
import { connect, MeshWallet as MeshWallet2 } from "@meshsdk/wallet";
|
|
24486
24543
|
|
|
24487
24544
|
// src/common/input.tsx
|
|
24488
24545
|
import * as React5 from "react";
|
|
24489
|
-
import { jsx as
|
|
24546
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
24490
24547
|
var Input = React5.forwardRef(
|
|
24491
24548
|
({ className, type, ...props }, ref) => {
|
|
24492
|
-
return /* @__PURE__ */
|
|
24549
|
+
return /* @__PURE__ */ jsx18(
|
|
24493
24550
|
"input",
|
|
24494
24551
|
{
|
|
24495
24552
|
type,
|
|
@@ -24509,11 +24566,11 @@ Input.displayName = "Input";
|
|
|
24509
24566
|
import * as React6 from "react";
|
|
24510
24567
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
24511
24568
|
import { cva as cva2 } from "class-variance-authority";
|
|
24512
|
-
import { jsx as
|
|
24569
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
24513
24570
|
var labelVariants = cva2(
|
|
24514
24571
|
"mesh-text-sm mesh-font-medium mesh-leading-none peer-disabled:mesh-cursor-not-allowed peer-disabled:mesh-opacity-70"
|
|
24515
24572
|
);
|
|
24516
|
-
var Label2 = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
24573
|
+
var Label2 = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
24517
24574
|
LabelPrimitive.Root,
|
|
24518
24575
|
{
|
|
24519
24576
|
ref,
|
|
@@ -24524,16 +24581,16 @@ var Label2 = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
24524
24581
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
24525
24582
|
|
|
24526
24583
|
// src/cardano-wallet/screen-webauthn.tsx
|
|
24527
|
-
import { Fragment as Fragment3, jsx as
|
|
24584
|
+
import { Fragment as Fragment3, jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
24528
24585
|
function ScreenWebauthn({
|
|
24529
24586
|
url,
|
|
24530
24587
|
networkId,
|
|
24531
24588
|
provider,
|
|
24532
24589
|
setOpen
|
|
24533
24590
|
}) {
|
|
24534
|
-
const [loading, setLoading] =
|
|
24535
|
-
const [userName, setUserName] =
|
|
24536
|
-
const [password, setPassword] =
|
|
24591
|
+
const [loading, setLoading] = useState12(false);
|
|
24592
|
+
const [userName, setUserName] = useState12("");
|
|
24593
|
+
const [password, setPassword] = useState12("");
|
|
24537
24594
|
const { setWallet } = useWallet();
|
|
24538
24595
|
function createWallet(root) {
|
|
24539
24596
|
setTimeout(() => {
|
|
@@ -24558,10 +24615,10 @@ function ScreenWebauthn({
|
|
|
24558
24615
|
createWallet(res.wallet.bech32PrivateKey);
|
|
24559
24616
|
}
|
|
24560
24617
|
}
|
|
24561
|
-
return /* @__PURE__ */
|
|
24618
|
+
return /* @__PURE__ */ jsx20("div", { className: "mesh-flex mesh-flex-row mesh-flex-gap-4 mesh-items-center mesh-justify-center", children: loading ? /* @__PURE__ */ jsx20(Fragment3, { children: "Connecting wallet..." }) : /* @__PURE__ */ jsx20(Fragment3, { children: /* @__PURE__ */ jsxs12("div", { className: "mesh-flex mesh-flex-col mesh-gap-6 mesh-w-full mesh-mx-8", children: [
|
|
24562
24619
|
/* @__PURE__ */ jsxs12("div", { className: "mesh-grid mesh-gap-2", children: [
|
|
24563
|
-
/* @__PURE__ */
|
|
24564
|
-
/* @__PURE__ */
|
|
24620
|
+
/* @__PURE__ */ jsx20(Label2, { htmlFor: "username", children: "Username" }),
|
|
24621
|
+
/* @__PURE__ */ jsx20(
|
|
24565
24622
|
Input,
|
|
24566
24623
|
{
|
|
24567
24624
|
id: "username",
|
|
@@ -24571,11 +24628,11 @@ function ScreenWebauthn({
|
|
|
24571
24628
|
onChange: (e2) => setUserName(e2.target.value)
|
|
24572
24629
|
}
|
|
24573
24630
|
),
|
|
24574
|
-
/* @__PURE__ */
|
|
24631
|
+
/* @__PURE__ */ jsx20("p", { className: "mesh-text-gray-500 mesh-text-xs", children: "Unique to the application you are connecting." })
|
|
24575
24632
|
] }),
|
|
24576
24633
|
/* @__PURE__ */ jsxs12("div", { className: "mesh-grid mesh-gap-2", children: [
|
|
24577
|
-
/* @__PURE__ */
|
|
24578
|
-
/* @__PURE__ */
|
|
24634
|
+
/* @__PURE__ */ jsx20("div", { className: "mesh-flex mesh-items-center", children: /* @__PURE__ */ jsx20(Label2, { htmlFor: "password", children: "Unique Code" }) }),
|
|
24635
|
+
/* @__PURE__ */ jsx20(
|
|
24579
24636
|
Input,
|
|
24580
24637
|
{
|
|
24581
24638
|
id: "password",
|
|
@@ -24585,9 +24642,9 @@ function ScreenWebauthn({
|
|
|
24585
24642
|
onChange: (e2) => setPassword(e2.target.value)
|
|
24586
24643
|
}
|
|
24587
24644
|
),
|
|
24588
|
-
/* @__PURE__ */
|
|
24645
|
+
/* @__PURE__ */ jsx20("p", { className: "mesh-text-gray-500 mesh-text-xs", children: "Additional security to derive your wallet." })
|
|
24589
24646
|
] }),
|
|
24590
|
-
/* @__PURE__ */
|
|
24647
|
+
/* @__PURE__ */ jsx20(
|
|
24591
24648
|
Button,
|
|
24592
24649
|
{
|
|
24593
24650
|
className: "mesh-w-full",
|
|
@@ -24600,7 +24657,7 @@ function ScreenWebauthn({
|
|
|
24600
24657
|
}
|
|
24601
24658
|
|
|
24602
24659
|
// src/cardano-wallet/index.tsx
|
|
24603
|
-
import { jsx as
|
|
24660
|
+
import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
24604
24661
|
var CardanoWallet = ({
|
|
24605
24662
|
label = "Connect Wallet",
|
|
24606
24663
|
onConnected = void 0,
|
|
@@ -24611,10 +24668,11 @@ var CardanoWallet = ({
|
|
|
24611
24668
|
cardanoPeerConnect = void 0,
|
|
24612
24669
|
burnerWallet = void 0,
|
|
24613
24670
|
webauthn = void 0,
|
|
24614
|
-
showDownload = true
|
|
24671
|
+
showDownload = true,
|
|
24672
|
+
web3Services = void 0
|
|
24615
24673
|
}) => {
|
|
24616
|
-
const [open, setOpen] =
|
|
24617
|
-
const [screen, setScreen] =
|
|
24674
|
+
const [open, setOpen] = useState13(false);
|
|
24675
|
+
const [screen, setScreen] = useState13("main");
|
|
24618
24676
|
const { wallet, connected, setPersist } = useWallet();
|
|
24619
24677
|
useEffect10(() => {
|
|
24620
24678
|
setPersist(persist);
|
|
@@ -24625,15 +24683,15 @@ var CardanoWallet = ({
|
|
|
24625
24683
|
}
|
|
24626
24684
|
}, [connected, wallet]);
|
|
24627
24685
|
return /* @__PURE__ */ jsxs13(Dialog, { open, onOpenChange: setOpen, children: [
|
|
24628
|
-
/* @__PURE__ */
|
|
24686
|
+
/* @__PURE__ */ jsx21("div", { className: isDark ? "mesh-dark" : "", children: !connected ? /* @__PURE__ */ jsx21(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx21(Button, { variant: "outline", className: isDark ? "mesh-dark" : "", children: label }) }) : /* @__PURE__ */ jsx21(ConnectedButton, {}) }),
|
|
24629
24687
|
/* @__PURE__ */ jsxs13(
|
|
24630
24688
|
DialogContent,
|
|
24631
24689
|
{
|
|
24632
24690
|
className: "sm:mesh-max-w-[425px] mesh-dark",
|
|
24633
24691
|
onOpenAutoFocus: (event) => event.preventDefault(),
|
|
24634
24692
|
children: [
|
|
24635
|
-
/* @__PURE__ */
|
|
24636
|
-
screen == "main" && /* @__PURE__ */
|
|
24693
|
+
/* @__PURE__ */ jsx21(Header, { screen, setScreen }),
|
|
24694
|
+
screen == "main" && /* @__PURE__ */ jsx21(
|
|
24637
24695
|
ScreenMain,
|
|
24638
24696
|
{
|
|
24639
24697
|
injectFn,
|
|
@@ -24644,17 +24702,18 @@ var CardanoWallet = ({
|
|
|
24644
24702
|
cardanoPeerConnect: cardanoPeerConnect != void 0,
|
|
24645
24703
|
burnerWallet: burnerWallet != void 0,
|
|
24646
24704
|
webauthn: webauthn != void 0,
|
|
24647
|
-
showDownload
|
|
24705
|
+
showDownload,
|
|
24706
|
+
web3Services
|
|
24648
24707
|
}
|
|
24649
24708
|
),
|
|
24650
|
-
screen == "p2p" && /* @__PURE__ */
|
|
24709
|
+
screen == "p2p" && /* @__PURE__ */ jsx21(
|
|
24651
24710
|
ScreenP2P,
|
|
24652
24711
|
{
|
|
24653
24712
|
cardanoPeerConnect,
|
|
24654
24713
|
setOpen
|
|
24655
24714
|
}
|
|
24656
24715
|
),
|
|
24657
|
-
screen == "burner" && burnerWallet && /* @__PURE__ */
|
|
24716
|
+
screen == "burner" && burnerWallet && /* @__PURE__ */ jsx21(
|
|
24658
24717
|
ScreenBurner,
|
|
24659
24718
|
{
|
|
24660
24719
|
networkId: burnerWallet.networkId,
|
|
@@ -24662,7 +24721,7 @@ var CardanoWallet = ({
|
|
|
24662
24721
|
setOpen
|
|
24663
24722
|
}
|
|
24664
24723
|
),
|
|
24665
|
-
screen == "webauthn" && webauthn && /* @__PURE__ */
|
|
24724
|
+
screen == "webauthn" && webauthn && /* @__PURE__ */ jsx21(
|
|
24666
24725
|
ScreenWebauthn,
|
|
24667
24726
|
{
|
|
24668
24727
|
url: webauthn.url,
|
|
@@ -24671,7 +24730,7 @@ var CardanoWallet = ({
|
|
|
24671
24730
|
setOpen
|
|
24672
24731
|
}
|
|
24673
24732
|
),
|
|
24674
|
-
/* @__PURE__ */
|
|
24733
|
+
/* @__PURE__ */ jsx21(Footer, {})
|
|
24675
24734
|
]
|
|
24676
24735
|
}
|
|
24677
24736
|
)
|
|
@@ -24683,23 +24742,23 @@ function Header({
|
|
|
24683
24742
|
}) {
|
|
24684
24743
|
return /* @__PURE__ */ jsxs13(DialogHeader, { children: [
|
|
24685
24744
|
/* @__PURE__ */ jsxs13(DialogTitle, { className: "mesh-flex mesh-justify-between", children: [
|
|
24686
|
-
screen != "main" ? /* @__PURE__ */
|
|
24687
|
-
/* @__PURE__ */
|
|
24688
|
-
/* @__PURE__ */
|
|
24745
|
+
screen != "main" ? /* @__PURE__ */ jsx21("button", { onClick: () => setScreen("main"), children: /* @__PURE__ */ jsx21(IconChevronRight, {}) }) : /* @__PURE__ */ jsx21("span", { style: { width: "24px" } }),
|
|
24746
|
+
/* @__PURE__ */ jsx21("span", { children: screens[screen].title }),
|
|
24747
|
+
/* @__PURE__ */ jsx21("span", { style: { width: "24px" } })
|
|
24689
24748
|
] }),
|
|
24690
|
-
/* @__PURE__ */
|
|
24749
|
+
/* @__PURE__ */ jsx21(DialogDescription, { children: screens[screen].subtitle && screens[screen].subtitle })
|
|
24691
24750
|
] });
|
|
24692
24751
|
}
|
|
24693
24752
|
function Footer() {
|
|
24694
|
-
return /* @__PURE__ */
|
|
24753
|
+
return /* @__PURE__ */ jsx21(DialogFooter, { className: "mesh-justify-center mesh-text-sm", children: /* @__PURE__ */ jsxs13(
|
|
24695
24754
|
"a",
|
|
24696
24755
|
{
|
|
24697
24756
|
href: "https://meshjs.dev/",
|
|
24698
24757
|
target: "_blank",
|
|
24699
24758
|
className: "mesh-grow mesh-flex mesh-gap-1 mesh-items-center mesh-justify-center mesh-text-zinc-500 hover:mesh-text-white mesh-fill-zinc-500 hover:mesh-fill-white",
|
|
24700
24759
|
children: [
|
|
24701
|
-
/* @__PURE__ */
|
|
24702
|
-
/* @__PURE__ */
|
|
24760
|
+
/* @__PURE__ */ jsx21("span", { className: "", children: "Powered by" }),
|
|
24761
|
+
/* @__PURE__ */ jsx21(
|
|
24703
24762
|
"svg",
|
|
24704
24763
|
{
|
|
24705
24764
|
width: 24,
|
|
@@ -24707,30 +24766,30 @@ function Footer() {
|
|
|
24707
24766
|
enableBackground: "new 0 0 300 200",
|
|
24708
24767
|
viewBox: "0 0 300 200",
|
|
24709
24768
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24710
|
-
children: /* @__PURE__ */
|
|
24769
|
+
children: /* @__PURE__ */ jsx21("path", { d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z" })
|
|
24711
24770
|
}
|
|
24712
24771
|
),
|
|
24713
|
-
/* @__PURE__ */
|
|
24772
|
+
/* @__PURE__ */ jsx21("span", { className: "", children: "Mesh SDK" })
|
|
24714
24773
|
]
|
|
24715
24774
|
}
|
|
24716
24775
|
) });
|
|
24717
24776
|
}
|
|
24718
24777
|
|
|
24719
24778
|
// src/mesh-badge/mesh-logo.tsx
|
|
24720
|
-
import { jsx as
|
|
24721
|
-
var MeshLogo = () => /* @__PURE__ */
|
|
24779
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
24780
|
+
var MeshLogo = () => /* @__PURE__ */ jsx22(
|
|
24722
24781
|
"svg",
|
|
24723
24782
|
{
|
|
24724
24783
|
className: "mesh-h-16 mesh-p-2",
|
|
24725
24784
|
fill: "currentColor",
|
|
24726
24785
|
viewBox: "0 0 300 200",
|
|
24727
24786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24728
|
-
children: /* @__PURE__ */
|
|
24787
|
+
children: /* @__PURE__ */ jsx22("path", { d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z" })
|
|
24729
24788
|
}
|
|
24730
24789
|
);
|
|
24731
24790
|
|
|
24732
24791
|
// src/mesh-badge/index.tsx
|
|
24733
|
-
import { jsx as
|
|
24792
|
+
import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
24734
24793
|
var MeshBadge = ({ isDark = false }) => /* @__PURE__ */ jsxs14(
|
|
24735
24794
|
"a",
|
|
24736
24795
|
{
|
|
@@ -24743,21 +24802,21 @@ var MeshBadge = ({ isDark = false }) => /* @__PURE__ */ jsxs14(
|
|
|
24743
24802
|
rel: "noopener noreferrer",
|
|
24744
24803
|
target: "_blank",
|
|
24745
24804
|
children: [
|
|
24746
|
-
/* @__PURE__ */
|
|
24805
|
+
/* @__PURE__ */ jsx23(MeshLogo, {}),
|
|
24747
24806
|
"Mesh"
|
|
24748
24807
|
]
|
|
24749
24808
|
}
|
|
24750
24809
|
);
|
|
24751
24810
|
|
|
24752
24811
|
// src/stake-button/index.tsx
|
|
24753
|
-
import { useEffect as useEffect12, useState as
|
|
24812
|
+
import { useEffect as useEffect12, useState as useState15 } from "react";
|
|
24754
24813
|
import { Transaction } from "@meshsdk/transaction";
|
|
24755
24814
|
|
|
24756
24815
|
// src/cardano-wallet-dropdown/index.tsx
|
|
24757
|
-
import { useEffect as useEffect11, useState as
|
|
24816
|
+
import { useEffect as useEffect11, useState as useState14 } from "react";
|
|
24758
24817
|
|
|
24759
24818
|
// src/common/button-dropdown.tsx
|
|
24760
|
-
import { jsx as
|
|
24819
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
24761
24820
|
function ButtonDropdown({
|
|
24762
24821
|
children,
|
|
24763
24822
|
isDarkMode = false,
|
|
@@ -24766,7 +24825,7 @@ function ButtonDropdown({
|
|
|
24766
24825
|
onMouseEnter,
|
|
24767
24826
|
onMouseLeave
|
|
24768
24827
|
}) {
|
|
24769
|
-
return /* @__PURE__ */
|
|
24828
|
+
return /* @__PURE__ */ jsx24(
|
|
24770
24829
|
"button",
|
|
24771
24830
|
{
|
|
24772
24831
|
className: `mesh-mr-menu-list mesh-flex mesh-w-60 mesh-items-center mesh-justify-center mesh-rounded-t-md mesh-border mesh-px-4 mesh-py-2 mesh-text-lg mesh-font-normal mesh-shadow-sm ${isDarkMode ? `mesh-bg-neutral-950 mesh-text-neutral-50` : `mesh-bg-neutral-50 mesh-text-neutral-950`}`,
|
|
@@ -24779,7 +24838,7 @@ function ButtonDropdown({
|
|
|
24779
24838
|
}
|
|
24780
24839
|
|
|
24781
24840
|
// src/cardano-wallet-dropdown/menu-item.tsx
|
|
24782
|
-
import { jsx as
|
|
24841
|
+
import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
24783
24842
|
function MenuItem({
|
|
24784
24843
|
icon,
|
|
24785
24844
|
label,
|
|
@@ -24792,8 +24851,8 @@ function MenuItem({
|
|
|
24792
24851
|
className: "mesh-flex mesh-cursor-pointer mesh-items-center mesh-px-4 mesh-py-2 mesh-opacity-80 hover:mesh-opacity-100 mesh-h-16",
|
|
24793
24852
|
onClick: action,
|
|
24794
24853
|
children: [
|
|
24795
|
-
icon && /* @__PURE__ */
|
|
24796
|
-
/* @__PURE__ */
|
|
24854
|
+
icon && /* @__PURE__ */ jsx25("img", { className: "mesh-pr-2 mesh-m-1 mesh-h-8", src: icon }),
|
|
24855
|
+
/* @__PURE__ */ jsx25("span", { className: "mesh-mr-menu-item mesh-text-xl mesh-font-normal mesh-text-neutral-700 hover:mesh-text-black", children: label.split(" ").map((word) => {
|
|
24797
24856
|
return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
|
|
24798
24857
|
}).join(" ") })
|
|
24799
24858
|
]
|
|
@@ -24802,8 +24861,8 @@ function MenuItem({
|
|
|
24802
24861
|
}
|
|
24803
24862
|
|
|
24804
24863
|
// src/cardano-wallet-dropdown/chevron-down.tsx
|
|
24805
|
-
import { jsx as
|
|
24806
|
-
var ChevronDown = () => /* @__PURE__ */
|
|
24864
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
24865
|
+
var ChevronDown = () => /* @__PURE__ */ jsx26(
|
|
24807
24866
|
"svg",
|
|
24808
24867
|
{
|
|
24809
24868
|
className: "mesh-m-2 mesh-h-6",
|
|
@@ -24812,7 +24871,7 @@ var ChevronDown = () => /* @__PURE__ */ jsx24(
|
|
|
24812
24871
|
viewBox: "0 0 24 24",
|
|
24813
24872
|
stroke: "currentColor",
|
|
24814
24873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24815
|
-
children: /* @__PURE__ */
|
|
24874
|
+
children: /* @__PURE__ */ jsx26(
|
|
24816
24875
|
"path",
|
|
24817
24876
|
{
|
|
24818
24877
|
strokeLinecap: "round",
|
|
@@ -24825,7 +24884,7 @@ var ChevronDown = () => /* @__PURE__ */ jsx24(
|
|
|
24825
24884
|
);
|
|
24826
24885
|
|
|
24827
24886
|
// src/cardano-wallet-dropdown/wallet-balance.tsx
|
|
24828
|
-
import { Fragment as Fragment4, jsx as
|
|
24887
|
+
import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
24829
24888
|
var WalletBalance = ({
|
|
24830
24889
|
connected,
|
|
24831
24890
|
connecting,
|
|
@@ -24834,21 +24893,21 @@ var WalletBalance = ({
|
|
|
24834
24893
|
}) => {
|
|
24835
24894
|
const lovelace = useLovelace();
|
|
24836
24895
|
return connected && lovelace && wallet?.icon ? /* @__PURE__ */ jsxs16(Fragment4, { children: [
|
|
24837
|
-
/* @__PURE__ */
|
|
24896
|
+
/* @__PURE__ */ jsx27("img", { className: "mesh-m-2 mesh-h-6", src: wallet.icon }),
|
|
24838
24897
|
"\u20B3",
|
|
24839
24898
|
" ",
|
|
24840
24899
|
parseInt((parseInt(lovelace, 10) / 1e6).toString(), 10),
|
|
24841
24900
|
".",
|
|
24842
|
-
/* @__PURE__ */
|
|
24843
|
-
] }) : connected && wallet?.icon ? /* @__PURE__ */
|
|
24901
|
+
/* @__PURE__ */ jsx27("span", { className: "mesh-text-xs", children: lovelace.substring(lovelace.length - 6) })
|
|
24902
|
+
] }) : connected && wallet?.icon ? /* @__PURE__ */ jsx27(Fragment4, { children: /* @__PURE__ */ jsx27("img", { className: "mesh-m-2 mesh-h-6", src: wallet.icon }) }) : connecting ? /* @__PURE__ */ jsx27(Fragment4, { children: "Connecting..." }) : /* @__PURE__ */ jsxs16(Fragment4, { children: [
|
|
24844
24903
|
label,
|
|
24845
24904
|
" ",
|
|
24846
|
-
/* @__PURE__ */
|
|
24905
|
+
/* @__PURE__ */ jsx27(ChevronDown, {})
|
|
24847
24906
|
] });
|
|
24848
24907
|
};
|
|
24849
24908
|
|
|
24850
24909
|
// src/cardano-wallet-dropdown/index.tsx
|
|
24851
|
-
import { Fragment as Fragment5, jsx as
|
|
24910
|
+
import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
24852
24911
|
var CardanoWallet2 = ({
|
|
24853
24912
|
label = "Connect Wallet",
|
|
24854
24913
|
onConnected = void 0,
|
|
@@ -24856,8 +24915,8 @@ var CardanoWallet2 = ({
|
|
|
24856
24915
|
extensions = [],
|
|
24857
24916
|
cardanoPeerConnect = void 0
|
|
24858
24917
|
}) => {
|
|
24859
|
-
const [isDarkMode, setIsDarkMode] =
|
|
24860
|
-
const [hideMenuList, setHideMenuList] =
|
|
24918
|
+
const [isDarkMode, setIsDarkMode] = useState14(false);
|
|
24919
|
+
const [hideMenuList, setHideMenuList] = useState14(true);
|
|
24861
24920
|
const { connect: connect2, connecting, connected, disconnect, name } = useWallet();
|
|
24862
24921
|
const wallets = useWalletList();
|
|
24863
24922
|
useEffect11(() => {
|
|
@@ -24875,13 +24934,13 @@ var CardanoWallet2 = ({
|
|
|
24875
24934
|
onMouseLeave: () => setHideMenuList(true),
|
|
24876
24935
|
style: { width: "min-content", zIndex: 50 },
|
|
24877
24936
|
children: [
|
|
24878
|
-
/* @__PURE__ */
|
|
24937
|
+
/* @__PURE__ */ jsx28(
|
|
24879
24938
|
ButtonDropdown,
|
|
24880
24939
|
{
|
|
24881
24940
|
isDarkMode,
|
|
24882
24941
|
hideMenuList,
|
|
24883
24942
|
setHideMenuList,
|
|
24884
|
-
children: /* @__PURE__ */
|
|
24943
|
+
children: /* @__PURE__ */ jsx28(
|
|
24885
24944
|
WalletBalance,
|
|
24886
24945
|
{
|
|
24887
24946
|
connected,
|
|
@@ -24892,12 +24951,12 @@ var CardanoWallet2 = ({
|
|
|
24892
24951
|
)
|
|
24893
24952
|
}
|
|
24894
24953
|
),
|
|
24895
|
-
/* @__PURE__ */
|
|
24954
|
+
/* @__PURE__ */ jsx28(
|
|
24896
24955
|
"div",
|
|
24897
24956
|
{
|
|
24898
24957
|
className: `mesh-mr-menu-list mesh-absolute mesh-w-60 mesh-rounded-b-md mesh-border mesh-text-center mesh-shadow-sm mesh-backdrop-blur ${hideMenuList && "mesh-hidden"} ${isDarkMode ? `mesh-bg-neutral-950 mesh-text-neutral-50` : `mesh-bg-neutral-50 mesh-text-neutral-950`}`,
|
|
24899
24958
|
style: { zIndex: 50 },
|
|
24900
|
-
children: !connected && wallets.length > 0 ? /* @__PURE__ */
|
|
24959
|
+
children: !connected && wallets.length > 0 ? /* @__PURE__ */ jsx28(Fragment5, { children: wallets.map((wallet, index) => /* @__PURE__ */ jsx28(
|
|
24901
24960
|
MenuItem,
|
|
24902
24961
|
{
|
|
24903
24962
|
icon: wallet.icon,
|
|
@@ -24909,7 +24968,7 @@ var CardanoWallet2 = ({
|
|
|
24909
24968
|
active: name === wallet.id
|
|
24910
24969
|
},
|
|
24911
24970
|
index
|
|
24912
|
-
)) }) : wallets.length === 0 ? /* @__PURE__ */
|
|
24971
|
+
)) }) : wallets.length === 0 ? /* @__PURE__ */ jsx28("span", { children: "No Wallet Found" }) : /* @__PURE__ */ jsx28(Fragment5, { children: /* @__PURE__ */ jsx28(
|
|
24913
24972
|
MenuItem,
|
|
24914
24973
|
{
|
|
24915
24974
|
active: false,
|
|
@@ -24926,7 +24985,7 @@ var CardanoWallet2 = ({
|
|
|
24926
24985
|
};
|
|
24927
24986
|
|
|
24928
24987
|
// src/stake-button/index.tsx
|
|
24929
|
-
import { Fragment as Fragment6, jsx as
|
|
24988
|
+
import { Fragment as Fragment6, jsx as jsx29 } from "react/jsx-runtime";
|
|
24930
24989
|
var StakeButton = ({
|
|
24931
24990
|
label = "Stake your ADA",
|
|
24932
24991
|
isDark = false,
|
|
@@ -24934,19 +24993,19 @@ var StakeButton = ({
|
|
|
24934
24993
|
onCheck,
|
|
24935
24994
|
onDelegated = void 0
|
|
24936
24995
|
}) => {
|
|
24937
|
-
const [isDarkMode, setIsDarkMode] =
|
|
24996
|
+
const [isDarkMode, setIsDarkMode] = useState15(false);
|
|
24938
24997
|
const { connected } = useWallet();
|
|
24939
24998
|
useEffect12(() => {
|
|
24940
24999
|
setIsDarkMode(isDark);
|
|
24941
25000
|
}, [isDark]);
|
|
24942
|
-
return /* @__PURE__ */
|
|
25001
|
+
return /* @__PURE__ */ jsx29(Fragment6, { children: connected ? /* @__PURE__ */ jsx29(ButtonDropdown, { isDarkMode, children: /* @__PURE__ */ jsx29(
|
|
24943
25002
|
Delegate,
|
|
24944
25003
|
{
|
|
24945
25004
|
poolId,
|
|
24946
25005
|
onCheck,
|
|
24947
25006
|
onDelegated
|
|
24948
25007
|
}
|
|
24949
|
-
) }) : /* @__PURE__ */
|
|
25008
|
+
) }) : /* @__PURE__ */ jsx29(CardanoWallet2, { label, isDark }) });
|
|
24950
25009
|
};
|
|
24951
25010
|
var Delegate = ({
|
|
24952
25011
|
poolId,
|
|
@@ -24955,11 +25014,11 @@ var Delegate = ({
|
|
|
24955
25014
|
}) => {
|
|
24956
25015
|
const { wallet } = useWallet();
|
|
24957
25016
|
const rewardAddress = useRewardAddress();
|
|
24958
|
-
const [_, setError] =
|
|
24959
|
-
const [checking, setChecking] =
|
|
24960
|
-
const [accountInfo, setAccountInfo] =
|
|
24961
|
-
const [processing, setProcessing] =
|
|
24962
|
-
const [done, setDone] =
|
|
25017
|
+
const [_, setError] = useState15();
|
|
25018
|
+
const [checking, setChecking] = useState15(false);
|
|
25019
|
+
const [accountInfo, setAccountInfo] = useState15();
|
|
25020
|
+
const [processing, setProcessing] = useState15(false);
|
|
25021
|
+
const [done, setDone] = useState15(false);
|
|
24963
25022
|
const checkAccountStatus = async () => {
|
|
24964
25023
|
try {
|
|
24965
25024
|
setChecking(true);
|
|
@@ -25014,18 +25073,18 @@ var Delegate = ({
|
|
|
25014
25073
|
checkAccountStatus();
|
|
25015
25074
|
}, [rewardAddress]);
|
|
25016
25075
|
if (checking) {
|
|
25017
|
-
return /* @__PURE__ */
|
|
25076
|
+
return /* @__PURE__ */ jsx29("span", { children: "Checking..." });
|
|
25018
25077
|
}
|
|
25019
25078
|
if (processing) {
|
|
25020
|
-
return /* @__PURE__ */
|
|
25079
|
+
return /* @__PURE__ */ jsx29("span", { children: "Loading..." });
|
|
25021
25080
|
}
|
|
25022
25081
|
if (done) {
|
|
25023
|
-
return /* @__PURE__ */
|
|
25082
|
+
return /* @__PURE__ */ jsx29("span", { children: "Stake Delegated" });
|
|
25024
25083
|
}
|
|
25025
25084
|
if (accountInfo?.active) {
|
|
25026
|
-
return accountInfo.poolId === poolId ? /* @__PURE__ */
|
|
25085
|
+
return accountInfo.poolId === poolId ? /* @__PURE__ */ jsx29("span", { children: "Stake Delegated" }) : /* @__PURE__ */ jsx29("span", { onClick: delegateStake, children: "Begin Staking" });
|
|
25027
25086
|
}
|
|
25028
|
-
return /* @__PURE__ */
|
|
25087
|
+
return /* @__PURE__ */ jsx29("span", { onClick: registerAddress, children: "Begin Staking" });
|
|
25029
25088
|
};
|
|
25030
25089
|
export {
|
|
25031
25090
|
CardanoWallet,
|