@rhinestone/deposit-modal 0.5.1 → 0.6.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-HWKF3O62.cjs → DepositModalReown-J3KYAOD3.cjs} +6 -6
- package/dist/{DepositModalReown-YJBDBCRA.mjs → DepositModalReown-YD7TLEAA.mjs} +3 -3
- package/dist/{WithdrawModalReown-USNQEAEM.cjs → WithdrawModalReown-QSQUV6HX.cjs} +6 -6
- package/dist/{WithdrawModalReown-AQTB4OZN.mjs → WithdrawModalReown-ZPDMX47Z.mjs} +3 -3
- package/dist/{chunk-KYHPKMTK.mjs → chunk-3JVGI7FC.mjs} +2 -2
- package/dist/{chunk-AMEXFHB4.cjs → chunk-7LVI3VAL.cjs} +687 -450
- package/dist/{chunk-V4XVFT25.cjs → chunk-DASS33PJ.cjs} +57 -57
- package/dist/{chunk-QEW5NAGV.mjs → chunk-DXGM6YET.mjs} +1 -1
- package/dist/{chunk-4YLVKTSU.mjs → chunk-GQDVHMOT.mjs} +107 -100
- package/dist/{chunk-XPJJWJPM.mjs → chunk-NSAODZSS.mjs} +346 -109
- package/dist/{chunk-HT364QJK.cjs → chunk-YYIE5U5K.cjs} +4 -4
- package/dist/{chunk-PDFLALUT.cjs → chunk-ZDYV536Q.cjs} +176 -169
- 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/{types-_m8w8BYq.d.cts → types-6ROxwyfG.d.cts} +1 -8
- package/dist/{types-_m8w8BYq.d.ts → types-6ROxwyfG.d.ts} +1 -8
- 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
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZDYV536Qcjs = require('./chunk-ZDYV536Q.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -76,14 +76,14 @@ function buildTransports(rpcUrls) {
|
|
|
76
76
|
const transports = {};
|
|
77
77
|
for (const network of EVM_NETWORKS) {
|
|
78
78
|
const id = Number(network.id);
|
|
79
|
-
transports[id] = _viem.http.call(void 0,
|
|
79
|
+
transports[id] = _viem.http.call(void 0, _chunkZDYV536Qcjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
80
80
|
}
|
|
81
81
|
return transports;
|
|
82
82
|
}
|
|
83
83
|
function getEvmRpcFingerprint(rpcUrls) {
|
|
84
84
|
return EVM_NETWORKS.map((network) => {
|
|
85
85
|
const id = Number(network.id);
|
|
86
|
-
return `${id}=${_nullishCoalesce(
|
|
86
|
+
return `${id}=${_nullishCoalesce(_chunkZDYV536Qcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
87
87
|
}).join("|");
|
|
88
88
|
}
|
|
89
89
|
var cachedAdapter = null;
|
|
@@ -177,7 +177,7 @@ function useReownWallet() {
|
|
|
177
177
|
await switchChainAsync({ chainId });
|
|
178
178
|
}
|
|
179
179
|
} catch (err) {
|
|
180
|
-
if (
|
|
180
|
+
if (_chunkZDYV536Qcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
181
181
|
throw new Error(
|
|
182
182
|
`Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
|
|
183
183
|
);
|