@rhinestone/deposit-modal 0.0.0-dev-20260728140228 → 0.0.0-dev-20260728145716
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-TQXGVA7H.mjs → DepositModalReown-IA652WUO.mjs} +9 -13
- package/dist/{DepositModalReown-HIILH3DK.cjs → DepositModalReown-YYZ2UG5D.cjs} +13 -17
- package/dist/{chunk-MOSAWAHZ.mjs → chunk-47R2JLNO.mjs} +1 -1
- package/dist/{chunk-J2PDDECW.cjs → chunk-665QDRDO.cjs} +2 -2
- package/dist/{chunk-UVZHN5LU.cjs → chunk-6W5HNVH7.cjs} +73 -92
- package/dist/{chunk-HD7GC4GC.cjs → chunk-AXGX5ZAB.cjs} +3 -3
- package/dist/{chunk-GAQ7H35N.cjs → chunk-B5UJBLRX.cjs} +49 -49
- package/dist/{chunk-AALNMWJY.cjs → chunk-BXYDVFAB.cjs} +72 -65
- package/dist/{chunk-I7EURT3L.mjs → chunk-DVWIWSKY.mjs} +153 -260
- package/dist/{chunk-SR43WXGR.mjs → chunk-HGYHHXIO.mjs} +1 -1
- package/dist/{chunk-3RUJRZSF.cjs → chunk-I2B66AEE.cjs} +1 -1
- package/dist/{chunk-LMPJFLJF.cjs → chunk-ME4E66WE.cjs} +574 -681
- package/dist/{chunk-7DGQ5BUP.mjs → chunk-OA4BOJYX.mjs} +14 -7
- package/dist/{chunk-STVAA4QY.mjs → chunk-OGT6I4MG.mjs} +2 -2
- package/dist/{chunk-AQQ64XRR.mjs → chunk-OTFJPJZK.mjs} +1 -1
- package/dist/{chunk-Y4SUF43W.mjs → chunk-WWC24RNC.mjs} +17 -36
- package/dist/claim.cjs +5 -5
- package/dist/claim.d.cts +2 -2
- package/dist/claim.d.ts +2 -2
- package/dist/claim.mjs +4 -4
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +5 -5
- package/dist/index.cjs +20 -12
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.mjs +16 -8
- package/dist/styles.css +54 -13
- package/dist/{types-vpysc9yQ.d.cts → types-Cdt4VYUk.d.cts} +51 -39
- package/dist/{types-vpysc9yQ.d.ts → types-Cdt4VYUk.d.ts} +51 -39
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.d.cts +3 -3
- package/dist/withdraw.d.ts +3 -3
- package/dist/withdraw.mjs +4 -4
- package/package.json +7 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DVWIWSKY.mjs";
|
|
4
|
+
import "./chunk-OA4BOJYX.mjs";
|
|
5
|
+
import "./chunk-47R2JLNO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isUnsupportedChainSwitchError,
|
|
8
8
|
rpcUrlFor
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-HGYHHXIO.mjs";
|
|
10
|
+
import "./chunk-OTFJPJZK.mjs";
|
|
11
11
|
import "./chunk-YJP274QC.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SUPPORTED_CHAINS,
|
|
@@ -206,18 +206,15 @@ import { useAppKitConnection } from "@reown/appkit-adapter-solana/react";
|
|
|
206
206
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
207
207
|
function DepositModalWithReown(props) {
|
|
208
208
|
const reown = useReownWallet();
|
|
209
|
-
const
|
|
210
|
-
const { walletProvider: solanaWalletProvider } = useAppKitProvider(
|
|
211
|
-
enableSolana ? "solana" : "eip155"
|
|
212
|
-
);
|
|
209
|
+
const { walletProvider: solanaWalletProvider } = useAppKitProvider("solana");
|
|
213
210
|
const { connection: solanaConnection } = useAppKitConnection();
|
|
214
211
|
const reownWithSolana = useMemo(
|
|
215
212
|
() => ({
|
|
216
213
|
...reown,
|
|
217
|
-
solanaProvider:
|
|
218
|
-
solanaConnection:
|
|
214
|
+
solanaProvider: reown.isSolana ? solanaWalletProvider : void 0,
|
|
215
|
+
solanaConnection: reown.isSolana ? solanaConnection : void 0
|
|
219
216
|
}),
|
|
220
|
-
[
|
|
217
|
+
[reown, solanaWalletProvider, solanaConnection]
|
|
221
218
|
);
|
|
222
219
|
const handleConnect = useCallback(() => {
|
|
223
220
|
reown.openConnect();
|
|
@@ -241,7 +238,6 @@ function DepositModalReown(props) {
|
|
|
241
238
|
{
|
|
242
239
|
projectId: props.reownAppId,
|
|
243
240
|
theme: props.theme,
|
|
244
|
-
enableSolana: props.enableSolana,
|
|
245
241
|
rpcUrls: props.rpcUrls,
|
|
246
242
|
children: /* @__PURE__ */ jsx2(DepositModalWithReown, { ...props })
|
|
247
243
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkME4E66WEcjs = require('./chunk-ME4E66WE.cjs');
|
|
4
|
+
require('./chunk-BXYDVFAB.cjs');
|
|
5
|
+
require('./chunk-AXGX5ZAB.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
9
|
+
var _chunk665QDRDOcjs = require('./chunk-665QDRDO.cjs');
|
|
10
|
+
require('./chunk-I2B66AEE.cjs');
|
|
11
11
|
require('./chunk-W3WWC4LD.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -88,14 +88,14 @@ function buildTransports(rpcUrls) {
|
|
|
88
88
|
const transports = {};
|
|
89
89
|
for (const network of EVM_NETWORKS) {
|
|
90
90
|
const id = Number(network.id);
|
|
91
|
-
transports[id] = _viem.http.call(void 0,
|
|
91
|
+
transports[id] = _viem.http.call(void 0, _chunk665QDRDOcjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
92
92
|
}
|
|
93
93
|
return transports;
|
|
94
94
|
}
|
|
95
95
|
function getEvmRpcFingerprint(rpcUrls) {
|
|
96
96
|
return EVM_NETWORKS.map((network) => {
|
|
97
97
|
const id = Number(network.id);
|
|
98
|
-
return `${id}=${_nullishCoalesce(
|
|
98
|
+
return `${id}=${_nullishCoalesce(_chunk665QDRDOcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
99
99
|
}).join("|");
|
|
100
100
|
}
|
|
101
101
|
var cachedAdapter = null;
|
|
@@ -189,7 +189,7 @@ function useReownWallet() {
|
|
|
189
189
|
await switchChainAsync({ chainId });
|
|
190
190
|
}
|
|
191
191
|
} catch (err) {
|
|
192
|
-
if (
|
|
192
|
+
if (_chunk665QDRDOcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
193
193
|
throw new Error(
|
|
194
194
|
`Switch to ${_chunkEGB3NWMLcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
|
|
195
195
|
);
|
|
@@ -206,18 +206,15 @@ var _react5 = require('@reown/appkit-adapter-solana/react');
|
|
|
206
206
|
|
|
207
207
|
function DepositModalWithReown(props) {
|
|
208
208
|
const reown = useReownWallet();
|
|
209
|
-
const
|
|
210
|
-
const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
|
|
211
|
-
enableSolana ? "solana" : "eip155"
|
|
212
|
-
);
|
|
209
|
+
const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0, "solana");
|
|
213
210
|
const { connection: solanaConnection } = _react5.useAppKitConnection.call(void 0, );
|
|
214
211
|
const reownWithSolana = _react.useMemo.call(void 0,
|
|
215
212
|
() => ({
|
|
216
213
|
...reown,
|
|
217
|
-
solanaProvider:
|
|
218
|
-
solanaConnection:
|
|
214
|
+
solanaProvider: reown.isSolana ? solanaWalletProvider : void 0,
|
|
215
|
+
solanaConnection: reown.isSolana ? solanaConnection : void 0
|
|
219
216
|
}),
|
|
220
|
-
[
|
|
217
|
+
[reown, solanaWalletProvider, solanaConnection]
|
|
221
218
|
);
|
|
222
219
|
const handleConnect = _react.useCallback.call(void 0, () => {
|
|
223
220
|
reown.openConnect();
|
|
@@ -226,7 +223,7 @@ function DepositModalWithReown(props) {
|
|
|
226
223
|
reown.disconnect();
|
|
227
224
|
}, [reown.disconnect]);
|
|
228
225
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
229
|
-
|
|
226
|
+
_chunkME4E66WEcjs.DepositModalInner,
|
|
230
227
|
{
|
|
231
228
|
...props,
|
|
232
229
|
reownWallet: reownWithSolana,
|
|
@@ -241,7 +238,6 @@ function DepositModalReown(props) {
|
|
|
241
238
|
{
|
|
242
239
|
projectId: props.reownAppId,
|
|
243
240
|
theme: props.theme,
|
|
244
|
-
enableSolana: props.enableSolana,
|
|
245
241
|
rpcUrls: props.rpcUrls,
|
|
246
242
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositModalWithReown, { ...props })
|
|
247
243
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkI2B66AEEcjs = require('./chunk-I2B66AEE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -678,7 +678,7 @@ function isNativeAsset(asset) {
|
|
|
678
678
|
// src/core/deposit-service.ts
|
|
679
679
|
var SERVICE_HEADERS = {
|
|
680
680
|
"Content-Type": "application/json",
|
|
681
|
-
"x-deposit-modal-version":
|
|
681
|
+
"x-deposit-modal-version": _chunkI2B66AEEcjs.MODAL_VERSION
|
|
682
682
|
};
|
|
683
683
|
function depositRowToEvent(row) {
|
|
684
684
|
const status = row.status;
|