@rhinestone/deposit-modal 0.3.0-alpha.9 → 0.3.1
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/README.md +76 -0
- package/dist/{DepositModalReown-I7I3KLD2.mjs → DepositModalReown-G7UX4IBZ.mjs} +6 -4
- package/dist/{DepositModalReown-XUA47RYZ.cjs → DepositModalReown-MECHBE6P.cjs} +9 -7
- package/dist/{QRCode-KG47KTGX.cjs → QRCode-5DXFNKI2.cjs} +1 -1
- package/dist/{QRCode-YJ3EGWQS.mjs → QRCode-WUC652SH.mjs} +1 -1
- package/dist/{WithdrawModalReown-KN2DGOXR.mjs → WithdrawModalReown-CUJAFUQM.mjs} +5 -4
- package/dist/{WithdrawModalReown-JATYMQYP.cjs → WithdrawModalReown-WJ6VBZKK.cjs} +8 -7
- package/dist/{constants-DqVn968d.d.ts → caip-CsslyHGL.d.cts} +11 -1
- package/dist/{constants-DqVn968d.d.cts → caip-CsslyHGL.d.ts} +11 -1
- package/dist/{chunk-TJG2AFPS.mjs → chunk-3C35DVPE.mjs} +1048 -829
- package/dist/{chunk-SZIYS42B.mjs → chunk-6YRDD462.mjs} +63 -3
- package/dist/chunk-AJHFNHG3.cjs +295 -0
- package/dist/chunk-BAEB5AFZ.mjs +212 -0
- package/dist/{chunk-KE4MRCFN.mjs → chunk-DZQD3DAV.mjs} +26 -17
- package/dist/{chunk-G5Q4QBWX.cjs → chunk-LEL6GMEQ.cjs} +111 -102
- package/dist/{chunk-7JIDIX27.cjs → chunk-MILJQWPT.cjs} +73 -13
- package/dist/{chunk-MMXUBBGK.cjs → chunk-MQIJZNTP.cjs} +1026 -807
- package/dist/{chunk-4BUMVXPS.mjs → chunk-QYSCCX4K.mjs} +2237 -871
- package/dist/chunk-R5CPOBCF.cjs +212 -0
- package/dist/{chunk-OISMGA2L.mjs → chunk-R5WDHHVM.mjs} +2 -12
- package/dist/{chunk-ZVG4JDKZ.cjs → chunk-SPUZLWQS.cjs} +2285 -919
- package/dist/chunk-TQ2AYMWS.mjs +295 -0
- package/dist/{chunk-KIPKYPNF.cjs → chunk-ULEAK63T.cjs} +6 -16
- package/dist/constants.cjs +6 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +5 -1
- package/dist/deposit.cjs +6 -4
- package/dist/deposit.d.cts +4 -4
- package/dist/deposit.d.ts +4 -4
- package/dist/deposit.mjs +5 -3
- package/dist/index.cjs +21 -6
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.mjs +22 -7
- package/dist/polymarket.cjs +64 -0
- package/dist/polymarket.d.cts +57 -0
- package/dist/polymarket.d.ts +57 -0
- package/dist/polymarket.mjs +64 -0
- package/dist/styles.css +719 -75
- package/dist/{types-D8Q4TMk7.d.cts → types-RzfAD14B.d.cts} +65 -2
- package/dist/{types-D8Q4TMk7.d.ts → types-RzfAD14B.d.ts} +65 -2
- package/dist/withdraw.cjs +5 -4
- package/dist/withdraw.d.cts +4 -4
- package/dist/withdraw.d.ts +4 -4
- package/dist/withdraw.mjs +4 -3
- package/package.json +55 -18
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getChainName
|
|
3
|
+
} from "./chunk-6YRDD462.mjs";
|
|
4
|
+
|
|
5
|
+
// src/core/safe.ts
|
|
6
|
+
import {
|
|
7
|
+
concat,
|
|
8
|
+
encodeFunctionData,
|
|
9
|
+
erc20Abi,
|
|
10
|
+
hashTypedData,
|
|
11
|
+
pad,
|
|
12
|
+
parseEventLogs,
|
|
13
|
+
toHex,
|
|
14
|
+
zeroAddress
|
|
15
|
+
} from "viem";
|
|
16
|
+
var SAFE_ABI = [
|
|
17
|
+
{
|
|
18
|
+
type: "function",
|
|
19
|
+
name: "isOwner",
|
|
20
|
+
stateMutability: "view",
|
|
21
|
+
inputs: [{ name: "owner", type: "address" }],
|
|
22
|
+
outputs: [{ name: "", type: "bool" }]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
type: "function",
|
|
26
|
+
name: "nonce",
|
|
27
|
+
stateMutability: "view",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{ type: "uint256" }]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: "function",
|
|
33
|
+
name: "execTransaction",
|
|
34
|
+
stateMutability: "payable",
|
|
35
|
+
inputs: [
|
|
36
|
+
{ name: "to", type: "address" },
|
|
37
|
+
{ name: "value", type: "uint256" },
|
|
38
|
+
{ name: "data", type: "bytes" },
|
|
39
|
+
{ name: "operation", type: "uint8" },
|
|
40
|
+
{ name: "safeTxGas", type: "uint256" },
|
|
41
|
+
{ name: "baseGas", type: "uint256" },
|
|
42
|
+
{ name: "gasPrice", type: "uint256" },
|
|
43
|
+
{ name: "gasToken", type: "address" },
|
|
44
|
+
{ name: "refundReceiver", type: "address" },
|
|
45
|
+
{ name: "signatures", type: "bytes" }
|
|
46
|
+
],
|
|
47
|
+
outputs: [{ name: "success", type: "bool" }]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: "event",
|
|
51
|
+
name: "ExecutionSuccess",
|
|
52
|
+
inputs: [
|
|
53
|
+
{ name: "txHash", type: "bytes32", indexed: true },
|
|
54
|
+
{ name: "payment", type: "uint256", indexed: false }
|
|
55
|
+
],
|
|
56
|
+
anonymous: false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "event",
|
|
60
|
+
name: "ExecutionFailure",
|
|
61
|
+
inputs: [
|
|
62
|
+
{ name: "txHash", type: "bytes32", indexed: true },
|
|
63
|
+
{ name: "payment", type: "uint256", indexed: false }
|
|
64
|
+
],
|
|
65
|
+
anonymous: false
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
async function executeSafeEthTransfer(params) {
|
|
69
|
+
const {
|
|
70
|
+
walletClient,
|
|
71
|
+
publicClient,
|
|
72
|
+
safeAddress,
|
|
73
|
+
recipient,
|
|
74
|
+
amount,
|
|
75
|
+
chainId
|
|
76
|
+
} = params;
|
|
77
|
+
const account = walletClient.account;
|
|
78
|
+
const chain = walletClient.chain;
|
|
79
|
+
if (!account || !chain) {
|
|
80
|
+
throw new Error("Wallet not connected");
|
|
81
|
+
}
|
|
82
|
+
if (chain.id !== chainId) {
|
|
83
|
+
throw new Error(`Switch to ${getChainName(chainId)} to sign`);
|
|
84
|
+
}
|
|
85
|
+
const isOwner = await publicClient.readContract({
|
|
86
|
+
address: safeAddress,
|
|
87
|
+
abi: SAFE_ABI,
|
|
88
|
+
functionName: "isOwner",
|
|
89
|
+
args: [account.address]
|
|
90
|
+
});
|
|
91
|
+
if (!isOwner) {
|
|
92
|
+
throw new Error("Connected wallet is not a Safe owner");
|
|
93
|
+
}
|
|
94
|
+
const safeTx = {
|
|
95
|
+
to: recipient,
|
|
96
|
+
value: amount,
|
|
97
|
+
data: "0x",
|
|
98
|
+
operation: 0,
|
|
99
|
+
safeTxGas: 0n,
|
|
100
|
+
baseGas: 0n,
|
|
101
|
+
gasPrice: 0n,
|
|
102
|
+
gasToken: zeroAddress,
|
|
103
|
+
refundReceiver: zeroAddress
|
|
104
|
+
};
|
|
105
|
+
const signature = concat([
|
|
106
|
+
pad(account.address, { size: 32 }),
|
|
107
|
+
pad(toHex(0), { size: 32 }),
|
|
108
|
+
toHex(1, { size: 1 })
|
|
109
|
+
]);
|
|
110
|
+
const txHash = await walletClient.writeContract({
|
|
111
|
+
account,
|
|
112
|
+
chain,
|
|
113
|
+
address: safeAddress,
|
|
114
|
+
abi: SAFE_ABI,
|
|
115
|
+
functionName: "execTransaction",
|
|
116
|
+
args: [
|
|
117
|
+
safeTx.to,
|
|
118
|
+
safeTx.value,
|
|
119
|
+
safeTx.data,
|
|
120
|
+
safeTx.operation,
|
|
121
|
+
safeTx.safeTxGas,
|
|
122
|
+
safeTx.baseGas,
|
|
123
|
+
safeTx.gasPrice,
|
|
124
|
+
safeTx.gasToken,
|
|
125
|
+
safeTx.refundReceiver,
|
|
126
|
+
signature
|
|
127
|
+
]
|
|
128
|
+
});
|
|
129
|
+
const receipt = await publicClient.waitForTransactionReceipt({
|
|
130
|
+
hash: txHash
|
|
131
|
+
});
|
|
132
|
+
const safeLogs = receipt.logs.filter(
|
|
133
|
+
(log) => log.address.toLowerCase() === safeAddress.toLowerCase()
|
|
134
|
+
);
|
|
135
|
+
const parsed = parseEventLogs({
|
|
136
|
+
abi: SAFE_ABI,
|
|
137
|
+
logs: safeLogs,
|
|
138
|
+
strict: false
|
|
139
|
+
});
|
|
140
|
+
const failed = parsed.find((log) => log.eventName === "ExecutionFailure");
|
|
141
|
+
if (failed) {
|
|
142
|
+
throw new Error("Safe transaction failed");
|
|
143
|
+
}
|
|
144
|
+
const succeeded = parsed.find((log) => log.eventName === "ExecutionSuccess");
|
|
145
|
+
if (!succeeded) {
|
|
146
|
+
throw new Error("Safe transaction status unavailable");
|
|
147
|
+
}
|
|
148
|
+
return { txHash };
|
|
149
|
+
}
|
|
150
|
+
async function executeSafeErc20Transfer(params) {
|
|
151
|
+
const {
|
|
152
|
+
walletClient,
|
|
153
|
+
publicClient,
|
|
154
|
+
safeAddress,
|
|
155
|
+
tokenAddress,
|
|
156
|
+
recipient,
|
|
157
|
+
amount,
|
|
158
|
+
chainId
|
|
159
|
+
} = params;
|
|
160
|
+
const account = walletClient.account;
|
|
161
|
+
const chain = walletClient.chain;
|
|
162
|
+
if (!account || !chain) {
|
|
163
|
+
throw new Error("Wallet not connected");
|
|
164
|
+
}
|
|
165
|
+
if (chain.id !== chainId) {
|
|
166
|
+
throw new Error(`Switch to ${getChainName(chainId)} to sign`);
|
|
167
|
+
}
|
|
168
|
+
const isOwner = await publicClient.readContract({
|
|
169
|
+
address: safeAddress,
|
|
170
|
+
abi: SAFE_ABI,
|
|
171
|
+
functionName: "isOwner",
|
|
172
|
+
args: [account.address]
|
|
173
|
+
});
|
|
174
|
+
if (!isOwner) {
|
|
175
|
+
throw new Error("Connected wallet is not a Safe owner");
|
|
176
|
+
}
|
|
177
|
+
const data = encodeFunctionData({
|
|
178
|
+
abi: erc20Abi,
|
|
179
|
+
functionName: "transfer",
|
|
180
|
+
args: [recipient, amount]
|
|
181
|
+
});
|
|
182
|
+
const safeTx = {
|
|
183
|
+
to: tokenAddress,
|
|
184
|
+
value: 0n,
|
|
185
|
+
data,
|
|
186
|
+
operation: 0,
|
|
187
|
+
safeTxGas: 0n,
|
|
188
|
+
baseGas: 0n,
|
|
189
|
+
gasPrice: 0n,
|
|
190
|
+
gasToken: zeroAddress,
|
|
191
|
+
refundReceiver: zeroAddress
|
|
192
|
+
};
|
|
193
|
+
const signature = concat([
|
|
194
|
+
pad(account.address, { size: 32 }),
|
|
195
|
+
pad(toHex(0), { size: 32 }),
|
|
196
|
+
toHex(1, { size: 1 })
|
|
197
|
+
]);
|
|
198
|
+
const txHash = await walletClient.writeContract({
|
|
199
|
+
account,
|
|
200
|
+
chain,
|
|
201
|
+
address: safeAddress,
|
|
202
|
+
abi: SAFE_ABI,
|
|
203
|
+
functionName: "execTransaction",
|
|
204
|
+
args: [
|
|
205
|
+
safeTx.to,
|
|
206
|
+
safeTx.value,
|
|
207
|
+
safeTx.data,
|
|
208
|
+
safeTx.operation,
|
|
209
|
+
safeTx.safeTxGas,
|
|
210
|
+
safeTx.baseGas,
|
|
211
|
+
safeTx.gasPrice,
|
|
212
|
+
safeTx.gasToken,
|
|
213
|
+
safeTx.refundReceiver,
|
|
214
|
+
signature
|
|
215
|
+
]
|
|
216
|
+
});
|
|
217
|
+
const receipt = await publicClient.waitForTransactionReceipt({
|
|
218
|
+
hash: txHash
|
|
219
|
+
});
|
|
220
|
+
const safeLogs = receipt.logs.filter(
|
|
221
|
+
(log) => log.address.toLowerCase() === safeAddress.toLowerCase()
|
|
222
|
+
);
|
|
223
|
+
const parsed = parseEventLogs({
|
|
224
|
+
abi: SAFE_ABI,
|
|
225
|
+
logs: safeLogs,
|
|
226
|
+
strict: false
|
|
227
|
+
});
|
|
228
|
+
const failed = parsed.find((log) => log.eventName === "ExecutionFailure");
|
|
229
|
+
if (failed) {
|
|
230
|
+
throw new Error("Safe transaction failed");
|
|
231
|
+
}
|
|
232
|
+
const succeeded = parsed.find((log) => log.eventName === "ExecutionSuccess");
|
|
233
|
+
if (!succeeded) {
|
|
234
|
+
throw new Error("Safe transaction status unavailable");
|
|
235
|
+
}
|
|
236
|
+
return { txHash };
|
|
237
|
+
}
|
|
238
|
+
var SAFE_TX_TYPES = {
|
|
239
|
+
SafeTx: [
|
|
240
|
+
{ name: "to", type: "address" },
|
|
241
|
+
{ name: "value", type: "uint256" },
|
|
242
|
+
{ name: "data", type: "bytes" },
|
|
243
|
+
{ name: "operation", type: "uint8" },
|
|
244
|
+
{ name: "safeTxGas", type: "uint256" },
|
|
245
|
+
{ name: "baseGas", type: "uint256" },
|
|
246
|
+
{ name: "gasPrice", type: "uint256" },
|
|
247
|
+
{ name: "gasToken", type: "address" },
|
|
248
|
+
{ name: "refundReceiver", type: "address" },
|
|
249
|
+
{ name: "nonce", type: "uint256" }
|
|
250
|
+
]
|
|
251
|
+
};
|
|
252
|
+
async function buildSafeTransaction(params) {
|
|
253
|
+
const { publicClient, safeAddress, to, value, data, chainId } = params;
|
|
254
|
+
const nonce = await publicClient.readContract({
|
|
255
|
+
address: safeAddress,
|
|
256
|
+
abi: SAFE_ABI,
|
|
257
|
+
functionName: "nonce"
|
|
258
|
+
});
|
|
259
|
+
const message = {
|
|
260
|
+
to,
|
|
261
|
+
value,
|
|
262
|
+
data,
|
|
263
|
+
operation: 0,
|
|
264
|
+
safeTxGas: 0n,
|
|
265
|
+
baseGas: 0n,
|
|
266
|
+
gasPrice: 0n,
|
|
267
|
+
gasToken: zeroAddress,
|
|
268
|
+
refundReceiver: zeroAddress,
|
|
269
|
+
nonce
|
|
270
|
+
};
|
|
271
|
+
const safeTxHash = hashTypedData({
|
|
272
|
+
domain: { chainId, verifyingContract: safeAddress },
|
|
273
|
+
types: SAFE_TX_TYPES,
|
|
274
|
+
primaryType: "SafeTx",
|
|
275
|
+
message
|
|
276
|
+
});
|
|
277
|
+
return {
|
|
278
|
+
chainId,
|
|
279
|
+
safeAddress,
|
|
280
|
+
safeTxHash,
|
|
281
|
+
typedData: {
|
|
282
|
+
domain: { chainId, verifyingContract: safeAddress },
|
|
283
|
+
types: SAFE_TX_TYPES,
|
|
284
|
+
primaryType: "SafeTx",
|
|
285
|
+
message
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export {
|
|
291
|
+
SAFE_ABI,
|
|
292
|
+
executeSafeEthTransfer,
|
|
293
|
+
executeSafeErc20Transfer,
|
|
294
|
+
buildSafeTransaction
|
|
295
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkMQIJZNTPcjs = require('./chunk-MQIJZNTP.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
|
|
8
8
|
|
|
9
9
|
// src/core/reown.tsx
|
|
10
10
|
var _react = require('react');
|
|
@@ -45,7 +45,7 @@ var APPKIT_NETWORK_BY_ID = {
|
|
|
45
45
|
[_networks.soneium.id]: _networks.soneium,
|
|
46
46
|
[_networks.plasma.id]: _networks.plasma
|
|
47
47
|
};
|
|
48
|
-
var EVM_NETWORKS =
|
|
48
|
+
var EVM_NETWORKS = _chunkMILJQWPTcjs.SUPPORTED_CHAINS.map((chain) => {
|
|
49
49
|
const network = APPKIT_NETWORK_BY_ID[chain.id];
|
|
50
50
|
if (!network) {
|
|
51
51
|
throw new Error(
|
|
@@ -107,15 +107,6 @@ function ReownWalletProvider({
|
|
|
107
107
|
const config = adapter.wagmiConfig;
|
|
108
108
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _wagmi.WagmiProvider, { config, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children }) });
|
|
109
109
|
}
|
|
110
|
-
async function disconnectWallet() {
|
|
111
|
-
if (!_react3.modal) {
|
|
112
|
-
console.warn(
|
|
113
|
-
"[rhinestone] disconnectWallet called before the modal provider mounted; no-op."
|
|
114
|
-
);
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
await _react3.modal.disconnect();
|
|
118
|
-
}
|
|
119
110
|
function useReownWallet() {
|
|
120
111
|
const { open } = _react3.useAppKit.call(void 0, );
|
|
121
112
|
const { address, isConnected, caipAddress } = _react3.useAppKitAccount.call(void 0, );
|
|
@@ -154,9 +145,9 @@ function useReownWallet() {
|
|
|
154
145
|
await switchChainAsync({ chainId });
|
|
155
146
|
}
|
|
156
147
|
} catch (err) {
|
|
157
|
-
if (
|
|
148
|
+
if (_chunkMQIJZNTPcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
158
149
|
throw new Error(
|
|
159
|
-
`Switch to ${
|
|
150
|
+
`Switch to ${_chunkMILJQWPTcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
|
|
160
151
|
);
|
|
161
152
|
}
|
|
162
153
|
throw err;
|
|
@@ -168,5 +159,4 @@ function useReownWallet() {
|
|
|
168
159
|
|
|
169
160
|
|
|
170
161
|
|
|
171
|
-
|
|
172
|
-
exports.ReownWalletProvider = ReownWalletProvider; exports.disconnectWallet = disconnectWallet; exports.useReownWallet = useReownWallet;
|
|
162
|
+
exports.ReownWalletProvider = ReownWalletProvider; exports.useReownWallet = useReownWallet;
|
package/dist/constants.cjs
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
|
|
34
33
|
|
|
35
34
|
|
|
35
|
+
var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -63,4 +63,8 @@ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
exports.CHAIN_BY_ID = _chunkMILJQWPTcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMILJQWPTcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS; exports.HYPERCORE_CHAIN_ID = _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkMILJQWPTcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS; exports.SOLANA_TOKENS = _chunkMILJQWPTcjs.SOLANA_TOKENS; exports.SOURCE_CHAINS = _chunkMILJQWPTcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMILJQWPTcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkMILJQWPTcjs.chainRegistry; exports.findChainIdForToken = _chunkMILJQWPTcjs.findChainIdForToken; exports.getChainBadge = _chunkMILJQWPTcjs.getChainBadge; exports.getChainIcon = _chunkMILJQWPTcjs.getChainIcon; exports.getChainId = _chunkMILJQWPTcjs.getChainId; exports.getChainName = _chunkMILJQWPTcjs.getChainName; exports.getChainObject = _chunkMILJQWPTcjs.getChainObject; exports.getExplorerName = _chunkMILJQWPTcjs.getExplorerName; exports.getExplorerTxUrl = _chunkMILJQWPTcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMILJQWPTcjs.getExplorerUrl; exports.getSolanaTokenByMint = _chunkMILJQWPTcjs.getSolanaTokenByMint; exports.getSolanaTokenBySymbol = _chunkMILJQWPTcjs.getSolanaTokenBySymbol; exports.getSupportedChainIds = _chunkMILJQWPTcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMILJQWPTcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMILJQWPTcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMILJQWPTcjs.getTokenAddress; exports.getTokenDecimals = _chunkMILJQWPTcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMILJQWPTcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMILJQWPTcjs.getTokenIcon; exports.getTokenSymbol = _chunkMILJQWPTcjs.getTokenSymbol; exports.getUsdcAddress = _chunkMILJQWPTcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMILJQWPTcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMILJQWPTcjs.isSupportedTokenAddressForChain;
|
package/dist/constants.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS,
|
|
1
|
+
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, d as SupportedTokenOption, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.cjs';
|
|
2
2
|
import 'viem/chains';
|
|
3
3
|
import 'viem';
|
|
4
4
|
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS,
|
|
1
|
+
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, d as SupportedTokenOption, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.js';
|
|
2
2
|
import 'viem/chains';
|
|
3
3
|
import 'viem';
|
|
4
4
|
|
package/dist/constants.mjs
CHANGED
|
@@ -2,6 +2,8 @@ import {
|
|
|
2
2
|
CHAIN_BY_ID,
|
|
3
3
|
DEFAULT_BACKEND_URL,
|
|
4
4
|
DEFAULT_SIGNER_ADDRESS,
|
|
5
|
+
HYPERCORE_CHAIN_ID,
|
|
6
|
+
HYPERCORE_USDC_ADDRESS,
|
|
5
7
|
NATIVE_TOKEN_ADDRESS,
|
|
6
8
|
SOLANA_TOKENS,
|
|
7
9
|
SOURCE_CHAINS,
|
|
@@ -30,11 +32,13 @@ import {
|
|
|
30
32
|
getUsdcAddress,
|
|
31
33
|
getUsdcDecimals,
|
|
32
34
|
isSupportedTokenAddressForChain
|
|
33
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6YRDD462.mjs";
|
|
34
36
|
export {
|
|
35
37
|
CHAIN_BY_ID,
|
|
36
38
|
DEFAULT_BACKEND_URL,
|
|
37
39
|
DEFAULT_SIGNER_ADDRESS,
|
|
40
|
+
HYPERCORE_CHAIN_ID,
|
|
41
|
+
HYPERCORE_USDC_ADDRESS,
|
|
38
42
|
NATIVE_TOKEN_ADDRESS,
|
|
39
43
|
SOLANA_TOKENS,
|
|
40
44
|
SOURCE_CHAINS,
|
package/dist/deposit.cjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkSPUZLWQScjs = require('./chunk-SPUZLWQS.cjs');
|
|
4
|
+
require('./chunk-R5CPOBCF.cjs');
|
|
5
|
+
require('./chunk-MQIJZNTP.cjs');
|
|
6
|
+
require('./chunk-AJHFNHG3.cjs');
|
|
7
|
+
require('./chunk-MILJQWPT.cjs');
|
|
6
8
|
|
|
7
9
|
|
|
8
|
-
exports.DepositModal =
|
|
10
|
+
exports.DepositModal = _chunkSPUZLWQScjs.DepositModal;
|
package/dist/deposit.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { f as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { f as DepositModalProps } from './types-RzfAD14B.cjs';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-RzfAD14B.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
|
-
declare function DepositModal(props: DepositModalProps):
|
|
6
|
+
declare function DepositModal(props: DepositModalProps): react.JSX.Element;
|
|
7
7
|
declare namespace DepositModal {
|
|
8
8
|
var displayName: string;
|
|
9
9
|
}
|
package/dist/deposit.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { f as DepositModalProps } from './types-
|
|
3
|
-
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { f as DepositModalProps } from './types-RzfAD14B.js';
|
|
3
|
+
export { A as AssetOption, a as ConnectedEventData, D as DappImportsConfig, c as DepositCompleteEventData, d as DepositFailedEventData, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData } from './types-RzfAD14B.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
|
|
6
|
-
declare function DepositModal(props: DepositModalProps):
|
|
6
|
+
declare function DepositModal(props: DepositModalProps): react.JSX.Element;
|
|
7
7
|
declare namespace DepositModal {
|
|
8
8
|
var displayName: string;
|
|
9
9
|
}
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QYSCCX4K.mjs";
|
|
4
|
+
import "./chunk-BAEB5AFZ.mjs";
|
|
5
|
+
import "./chunk-3C35DVPE.mjs";
|
|
6
|
+
import "./chunk-TQ2AYMWS.mjs";
|
|
7
|
+
import "./chunk-6YRDD462.mjs";
|
|
6
8
|
export {
|
|
7
9
|
DepositModal
|
|
8
10
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSPUZLWQScjs = require('./chunk-SPUZLWQS.cjs');
|
|
4
|
+
require('./chunk-R5CPOBCF.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
+
var _chunkLEL6GMEQcjs = require('./chunk-LEL6GMEQ.cjs');
|
|
8
|
+
require('./chunk-MQIJZNTP.cjs');
|
|
9
|
+
require('./chunk-AJHFNHG3.cjs');
|
|
7
10
|
|
|
8
11
|
|
|
9
|
-
var _chunkKIPKYPNFcjs = require('./chunk-KIPKYPNF.cjs');
|
|
10
|
-
require('./chunk-MMXUBBGK.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
@@ -37,8 +38,19 @@ require('./chunk-MMXUBBGK.cjs');
|
|
|
37
38
|
|
|
38
39
|
|
|
39
40
|
|
|
40
|
-
var
|
|
41
|
+
var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
|
|
41
42
|
|
|
43
|
+
// src/core/reown-disconnect.ts
|
|
44
|
+
var _react = require('@reown/appkit/react');
|
|
45
|
+
async function disconnectWallet() {
|
|
46
|
+
if (!_react.modal) {
|
|
47
|
+
console.warn(
|
|
48
|
+
"[rhinestone] disconnectWallet called before the modal provider mounted; no-op."
|
|
49
|
+
);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
await _react.modal.disconnect();
|
|
53
|
+
}
|
|
42
54
|
|
|
43
55
|
|
|
44
56
|
|
|
@@ -70,4 +82,7 @@ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
|
|
|
70
82
|
|
|
71
83
|
|
|
72
84
|
|
|
73
|
-
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
exports.CHAIN_BY_ID = _chunkMILJQWPTcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkMILJQWPTcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkSPUZLWQScjs.DepositModal; exports.HYPERCORE_CHAIN_ID = _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_USDC_ADDRESS = _chunkMILJQWPTcjs.HYPERCORE_USDC_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkMILJQWPTcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkMILJQWPTcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkLEL6GMEQcjs.WithdrawModal; exports.chainRegistry = _chunkMILJQWPTcjs.chainRegistry; exports.disconnectWallet = disconnectWallet; exports.findChainIdForToken = _chunkMILJQWPTcjs.findChainIdForToken; exports.getChainBadge = _chunkMILJQWPTcjs.getChainBadge; exports.getChainIcon = _chunkMILJQWPTcjs.getChainIcon; exports.getChainId = _chunkMILJQWPTcjs.getChainId; exports.getChainName = _chunkMILJQWPTcjs.getChainName; exports.getChainObject = _chunkMILJQWPTcjs.getChainObject; exports.getExplorerName = _chunkMILJQWPTcjs.getExplorerName; exports.getExplorerTxUrl = _chunkMILJQWPTcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkMILJQWPTcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkMILJQWPTcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkMILJQWPTcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkMILJQWPTcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkMILJQWPTcjs.getTokenAddress; exports.getTokenDecimals = _chunkMILJQWPTcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkMILJQWPTcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkMILJQWPTcjs.getTokenIcon; exports.getTokenSymbol = _chunkMILJQWPTcjs.getTokenSymbol; exports.getUsdcAddress = _chunkMILJQWPTcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkMILJQWPTcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkMILJQWPTcjs.isSupportedTokenAddressForChain;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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 DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-
|
|
4
|
-
export {
|
|
5
|
-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-RzfAD14B.cjs';
|
|
4
|
+
export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.cjs';
|
|
5
|
+
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.cjs';
|
|
6
|
+
import 'react';
|
|
6
7
|
import 'viem';
|
|
7
8
|
import 'viem/chains';
|
|
8
9
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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 DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-
|
|
4
|
-
export {
|
|
5
|
-
|
|
3
|
+
export { A as AssetOption, C as ChainId, a as ConnectedEventData, D as DappImportsConfig, b as DepositAnalyticsEvent, c as DepositCompleteEventData, d as DepositFailedEventData, e as DepositLifecycleEvent, f as DepositModalProps, g as DepositModalTheme, h as DepositModalUIConfig, i as DepositSubmittedEventData, E as ErrorEventData, M as ModalAnalyticsEvent, O as OrderBookSwapAction, j as OutputTokenRule, P as PostBridgeAction, R as RouteConfig, S as SafeTransactionRequest, W as WithdrawAnalyticsEvent, k as WithdrawCompleteEventData, l as WithdrawFailedEventData, m as WithdrawLifecycleEvent, n as WithdrawModalProps, o as WithdrawSubmittedEventData } from './types-RzfAD14B.js';
|
|
4
|
+
export { PolymarketAccount, PolymarketTokenBalance } from './polymarket.js';
|
|
5
|
+
export { C as CHAIN_BY_ID, D as DEFAULT_BACKEND_URL, a as DEFAULT_SIGNER_ADDRESS, H as HYPERCORE_CHAIN_ID, b as HYPERCORE_USDC_ADDRESS, N as NATIVE_TOKEN_ADDRESS, S as SOURCE_CHAINS, c as SUPPORTED_CHAINS, e as chainRegistry, f as findChainIdForToken, g as getChainBadge, h as getChainIcon, i as getChainId, j as getChainName, k as getChainObject, l as getExplorerName, m as getExplorerTxUrl, n as getExplorerUrl, o as getSupportedChainIds, p as getSupportedTargetTokens, q as getSupportedTokenSymbolsForChain, r as getTargetTokenSymbolsForChain, s as getTokenAddress, t as getTokenDecimals, u as getTokenDecimalsByAddress, v as getTokenIcon, w as getTokenSymbol, x as getUsdcAddress, y as getUsdcDecimals, z as isSupportedTokenAddressForChain } from './caip-CsslyHGL.js';
|
|
6
|
+
import 'react';
|
|
6
7
|
import 'viem';
|
|
7
8
|
import 'viem/chains';
|
|
8
9
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QYSCCX4K.mjs";
|
|
4
|
+
import "./chunk-BAEB5AFZ.mjs";
|
|
4
5
|
import {
|
|
5
6
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
} from "./chunk-OISMGA2L.mjs";
|
|
10
|
-
import "./chunk-TJG2AFPS.mjs";
|
|
7
|
+
} from "./chunk-DZQD3DAV.mjs";
|
|
8
|
+
import "./chunk-3C35DVPE.mjs";
|
|
9
|
+
import "./chunk-TQ2AYMWS.mjs";
|
|
11
10
|
import {
|
|
12
11
|
CHAIN_BY_ID,
|
|
13
12
|
DEFAULT_BACKEND_URL,
|
|
14
13
|
DEFAULT_SIGNER_ADDRESS,
|
|
14
|
+
HYPERCORE_CHAIN_ID,
|
|
15
|
+
HYPERCORE_USDC_ADDRESS,
|
|
15
16
|
NATIVE_TOKEN_ADDRESS,
|
|
16
17
|
SOURCE_CHAINS,
|
|
17
18
|
SUPPORTED_CHAINS,
|
|
@@ -37,12 +38,26 @@ import {
|
|
|
37
38
|
getUsdcAddress,
|
|
38
39
|
getUsdcDecimals,
|
|
39
40
|
isSupportedTokenAddressForChain
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6YRDD462.mjs";
|
|
42
|
+
|
|
43
|
+
// src/core/reown-disconnect.ts
|
|
44
|
+
import { modal } from "@reown/appkit/react";
|
|
45
|
+
async function disconnectWallet() {
|
|
46
|
+
if (!modal) {
|
|
47
|
+
console.warn(
|
|
48
|
+
"[rhinestone] disconnectWallet called before the modal provider mounted; no-op."
|
|
49
|
+
);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
await modal.disconnect();
|
|
53
|
+
}
|
|
41
54
|
export {
|
|
42
55
|
CHAIN_BY_ID,
|
|
43
56
|
DEFAULT_BACKEND_URL,
|
|
44
57
|
DEFAULT_SIGNER_ADDRESS,
|
|
45
58
|
DepositModal,
|
|
59
|
+
HYPERCORE_CHAIN_ID,
|
|
60
|
+
HYPERCORE_USDC_ADDRESS,
|
|
46
61
|
NATIVE_TOKEN_ADDRESS,
|
|
47
62
|
SOURCE_CHAINS,
|
|
48
63
|
SUPPORTED_CHAINS,
|