@rhinestone/deposit-modal 0.0.0-dev-20260727134150 → 0.0.0-dev-20260727165236
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 +73 -6
- package/dist/{chunk-OCIJCL3T.cjs → DepositModalReown-EI63MROO.cjs} +65 -10
- package/dist/{chunk-C2RYQFRD.mjs → DepositModalReown-ZU3CPDTC.mjs} +59 -4
- package/dist/{caip-CVNR5sgz.d.cts → caip-CA6s0-GB.d.cts} +1 -2
- package/dist/{caip-CVNR5sgz.d.ts → caip-CA6s0-GB.d.ts} +1 -2
- package/dist/{chunk-LGB6MRI6.cjs → chunk-CU65HAN5.cjs} +213 -288
- package/dist/{chunk-2O2FJYRY.mjs → chunk-G5JWMTDR.mjs} +5 -3
- package/dist/chunk-GQXT6UL7.mjs +80 -0
- package/dist/{chunk-QYIHS7A4.mjs → chunk-L4EOEP42.mjs} +129 -489
- package/dist/{chunk-NONZTRNC.cjs → chunk-O35FIERS.cjs} +82 -358
- package/dist/{chunk-RARNNVZO.mjs → chunk-OMREKQB2.mjs} +57 -4
- package/dist/{chunk-3R5AAKR3.cjs → chunk-QYYGX36T.cjs} +1665 -1076
- package/dist/chunk-UKN74GQZ.cjs +80 -0
- package/dist/{chunk-UEXLROK5.cjs → chunk-UOO6V5WZ.cjs} +215 -575
- package/dist/{chunk-CZQSKRJQ.cjs → chunk-VULYPMCV.cjs} +336 -1061
- package/dist/{chunk-VMSYOEV4.mjs → chunk-VXYJ432Q.mjs} +59 -335
- package/dist/{chunk-54L44OIF.mjs → chunk-WRSITJQ2.mjs} +145 -220
- package/dist/{chunk-ORKEBFMR.cjs → chunk-XBNXKZHQ.cjs} +62 -9
- package/dist/{chunk-P5T4XSN2.cjs → chunk-YGBHFYTW.cjs} +4 -2
- package/dist/{chunk-Y3LCV7LN.mjs → chunk-YNRJ643P.mjs} +369 -1094
- package/dist/{chunk-2ZWIUDV2.mjs → chunk-YVI7Q7P7.mjs} +1874 -1285
- package/dist/claim.cjs +5 -5
- package/dist/claim.d.cts +3 -6
- package/dist/claim.d.ts +3 -6
- package/dist/claim.mjs +4 -4
- package/dist/constants.cjs +2 -6
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants.mjs +2 -6
- package/dist/deposit.cjs +7 -8
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +6 -7
- package/dist/index.cjs +9 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +10 -13
- package/dist/polymarket.cjs +4 -6
- package/dist/polymarket.mjs +1 -3
- package/dist/server.cjs +96 -0
- package/dist/server.d.cts +60 -0
- package/dist/server.d.ts +60 -0
- package/dist/server.mjs +96 -0
- package/dist/{types-D--Fa-Ww.d.cts → types-Cuyhz25e.d.cts} +112 -92
- package/dist/{types-D--Fa-Ww.d.ts → types-Cuyhz25e.d.ts} +112 -92
- package/dist/withdraw.cjs +5 -7
- package/dist/withdraw.d.cts +3 -6
- package/dist/withdraw.d.ts +3 -6
- package/dist/withdraw.mjs +4 -6
- package/package.json +11 -1
- package/dist/ClaimModalReown-CTQZRNM2.cjs +0 -35
- package/dist/ClaimModalReown-LUTLPXAS.mjs +0 -35
- package/dist/DepositModalReown-32D6SKGK.cjs +0 -65
- package/dist/DepositModalReown-7O3SOMPB.mjs +0 -65
- package/dist/WithdrawModalReown-3WP7XHJQ.mjs +0 -48
- package/dist/WithdrawModalReown-AYGDXWAR.cjs +0 -48
- package/dist/chunk-7BJR6XVG.mjs +0 -6
- package/dist/chunk-PCGUB54G.cjs +0 -6
- package/dist/chunk-RH6XQHMA.mjs +0 -295
- package/dist/chunk-UNVVUULP.cjs +0 -295
package/README.md
CHANGED
|
@@ -51,11 +51,36 @@ export function DepositButton({ walletClient, publicClient, address }) {
|
|
|
51
51
|
}
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
## Withdraw
|
|
55
|
+
|
|
56
|
+
`WithdrawModal` lives at `@rhinestone/deposit-modal/withdraw` and reports through the same `onLifecycle` + `onError` callbacks. It needs no wallet: you give it the account holding the funds and a function that performs one transfer.
|
|
57
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
import { WithdrawModal } from "@rhinestone/deposit-modal/withdraw";
|
|
60
|
+
|
|
61
|
+
<WithdrawModal
|
|
62
|
+
isOpen={open}
|
|
63
|
+
onClose={() => setOpen(false)}
|
|
64
|
+
accountAddress={userWallet}
|
|
65
|
+
sourceChain={137}
|
|
66
|
+
sourceToken={USDC_POLYGON}
|
|
67
|
+
targetChain={8453}
|
|
68
|
+
targetToken={USDC_BASE}
|
|
69
|
+
onSendTransaction={async ({ chainId, token, amount, to }) => ({
|
|
70
|
+
txHash: await myWallet.sendTransfer({ chainId, token, amount, to }),
|
|
71
|
+
})}
|
|
72
|
+
onLifecycle={(event) => console.log(event)}
|
|
73
|
+
/>;
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The user picks the destination chain, token, recipient, and amount in the modal; you move the funds. Two rules:
|
|
77
|
+
|
|
78
|
+
- **Send to `to`.** It's the Rhinestone deposit account the processor watches and bridges on to the recipient — except on a same-route withdrawal (source chain and token identical to the target), where the modal skips the bridge and `to` is the recipient itself. Never substitute an address of your own.
|
|
79
|
+
- **Return the on-chain transaction hash**, not a userOp hash. The modal tracks progress by looking the deposit up by that hash. Reject the promise to surface a failure.
|
|
55
80
|
|
|
56
81
|
## Claim a failed deposit
|
|
57
82
|
|
|
58
|
-
`ClaimModal` lets
|
|
83
|
+
`ClaimModal` lets a user get a failed or rejected EVM deposit sent back to them on its source chain. They paste the deposit's transaction hash and name a destination — **no wallet connection is involved at any point**.
|
|
59
84
|
|
|
60
85
|
```tsx
|
|
61
86
|
import { ClaimModal } from "@rhinestone/deposit-modal/claim";
|
|
@@ -63,16 +88,58 @@ import { ClaimModal } from "@rhinestone/deposit-modal/claim";
|
|
|
63
88
|
<ClaimModal
|
|
64
89
|
isOpen={claimOpen}
|
|
65
90
|
onClose={() => setClaimOpen(false)}
|
|
66
|
-
|
|
67
|
-
// Optional lookup/
|
|
91
|
+
refundEndpoint="/api/refund"
|
|
92
|
+
// Optional lookup/destination prefills:
|
|
68
93
|
defaultSourceChain={42161}
|
|
69
94
|
defaultTxHash={depositTxHash}
|
|
70
|
-
defaultRecipient={address}
|
|
71
95
|
onLifecycle={(event) => console.log(event)}
|
|
72
96
|
/>
|
|
73
97
|
```
|
|
74
98
|
|
|
75
|
-
|
|
99
|
+
### Why you have to authorize it
|
|
100
|
+
|
|
101
|
+
Deposit accounts are owned by the Rhinestone service, so there is no user wallet that can sign for a refund — and when the deposit arrived from an exchange, the sender can't sign either. Whether a deposit belongs to a given user is something **only your app knows**: you authenticated them, and you chose the `recipient` you passed to the widget.
|
|
102
|
+
|
|
103
|
+
So `refundEndpoint` points at something you control. Two shapes:
|
|
104
|
+
|
|
105
|
+
**Your own backend** — same-origin, so the session cookie authenticates it. `createRefundHandler` does everything except the auth decision:
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
// app/api/refund/route.ts
|
|
109
|
+
import { createRefundHandler } from "@rhinestone/deposit-modal/server";
|
|
110
|
+
|
|
111
|
+
export const POST = createRefundHandler({
|
|
112
|
+
apiKey: process.env.RHINESTONE_API_KEY!,
|
|
113
|
+
async authorize(request) {
|
|
114
|
+
const session = await getSession(request);
|
|
115
|
+
if (!session) return null; // → 401
|
|
116
|
+
return { recipient: session.depositRecipient }; // the one YOU passed the widget
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
It verifies the deposit really belongs to that recipient before spending your API key, and 403s otherwise. Return a `destination` from `authorize` to pin where funds go and take that choice away from the browser — the handler reports the effective destination back, so the modal's success screen and `complete` event name the address that was actually paid rather than the one the browser asked for.
|
|
122
|
+
|
|
123
|
+
If you write your own endpoint instead, echo a `destination` in the success body whenever you override the requested one, for the same reason.
|
|
124
|
+
|
|
125
|
+
**A deposit-widget-proxy** — cross-origin, so cookies don't travel. Set `REFUND_TOKEN_SECRET` on the proxy and mint a short-lived token instead:
|
|
126
|
+
|
|
127
|
+
```tsx
|
|
128
|
+
<ClaimModal
|
|
129
|
+
refundEndpoint="https://your-proxy.example/deposits/refund"
|
|
130
|
+
getUserToken={(refund) =>
|
|
131
|
+
fetch("/api/refund-token", {
|
|
132
|
+
method: "POST",
|
|
133
|
+
body: JSON.stringify(refund),
|
|
134
|
+
}).then((r) => r.json()).then((r) => r.token)
|
|
135
|
+
}
|
|
136
|
+
/* … */
|
|
137
|
+
/>
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Bind the token to the specific refund it authorizes, not just to the user — an identity-only token is a bearer credential spendable on any destination. See the deposit-widget-proxy README for the mint endpoint.
|
|
141
|
+
|
|
142
|
+
`GET /deposits` still needs to be proxied for the lookup step, as before.
|
|
76
143
|
|
|
77
144
|
## Fiat on-ramp (Swapped)
|
|
78
145
|
|
|
@@ -1,14 +1,23 @@
|
|
|
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 _chunkQYYGX36Tcjs = require('./chunk-QYYGX36T.cjs');
|
|
4
|
+
require('./chunk-VULYPMCV.cjs');
|
|
5
|
+
require('./chunk-UKN74GQZ.cjs');
|
|
3
6
|
|
|
4
|
-
var _chunkNONZTRNCcjs = require('./chunk-NONZTRNC.cjs');
|
|
5
7
|
|
|
6
8
|
|
|
9
|
+
var _chunkO35FIERScjs = require('./chunk-O35FIERS.cjs');
|
|
7
10
|
|
|
8
|
-
var _chunkP5T4XSN2cjs = require('./chunk-P5T4XSN2.cjs');
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
|
|
13
|
+
var _chunkYGBHFYTWcjs = require('./chunk-YGBHFYTW.cjs');
|
|
14
|
+
require('./chunk-XBNXKZHQ.cjs');
|
|
15
|
+
|
|
16
|
+
// src/DepositModalReown.tsx
|
|
11
17
|
var _react = require('react');
|
|
18
|
+
|
|
19
|
+
// src/core/reown.tsx
|
|
20
|
+
|
|
12
21
|
var _reactquery = require('@tanstack/react-query');
|
|
13
22
|
var _appkitadapterwagmi = require('@reown/appkit-adapter-wagmi');
|
|
14
23
|
var _appkitadaptersolana = require('@reown/appkit-adapter-solana');
|
|
@@ -59,7 +68,7 @@ var APPKIT_NETWORK_BY_ID = {
|
|
|
59
68
|
[_networks.katana.id]: _networks.katana,
|
|
60
69
|
[_networks.hyperEvm.id]: _networks.hyperEvm
|
|
61
70
|
};
|
|
62
|
-
var EVM_NETWORKS =
|
|
71
|
+
var EVM_NETWORKS = _chunkYGBHFYTWcjs.SUPPORTED_CHAINS.map((chain) => {
|
|
63
72
|
const network = APPKIT_NETWORK_BY_ID[chain.id];
|
|
64
73
|
if (!network) {
|
|
65
74
|
throw new Error(
|
|
@@ -78,14 +87,14 @@ function buildTransports(rpcUrls) {
|
|
|
78
87
|
const transports = {};
|
|
79
88
|
for (const network of EVM_NETWORKS) {
|
|
80
89
|
const id = Number(network.id);
|
|
81
|
-
transports[id] = _viem.http.call(void 0,
|
|
90
|
+
transports[id] = _viem.http.call(void 0, _chunkO35FIERScjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
82
91
|
}
|
|
83
92
|
return transports;
|
|
84
93
|
}
|
|
85
94
|
function getEvmRpcFingerprint(rpcUrls) {
|
|
86
95
|
return EVM_NETWORKS.map((network) => {
|
|
87
96
|
const id = Number(network.id);
|
|
88
|
-
return `${id}=${_nullishCoalesce(
|
|
97
|
+
return `${id}=${_nullishCoalesce(_chunkO35FIERScjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
89
98
|
}).join("|");
|
|
90
99
|
}
|
|
91
100
|
var cachedAdapter = null;
|
|
@@ -179,9 +188,9 @@ function useReownWallet() {
|
|
|
179
188
|
await switchChainAsync({ chainId });
|
|
180
189
|
}
|
|
181
190
|
} catch (err) {
|
|
182
|
-
if (
|
|
191
|
+
if (_chunkO35FIERScjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
183
192
|
throw new Error(
|
|
184
|
-
`Switch to ${
|
|
193
|
+
`Switch to ${_chunkYGBHFYTWcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
|
|
185
194
|
);
|
|
186
195
|
}
|
|
187
196
|
throw err;
|
|
@@ -190,7 +199,53 @@ function useReownWallet() {
|
|
|
190
199
|
};
|
|
191
200
|
}
|
|
192
201
|
|
|
202
|
+
// src/DepositModalReown.tsx
|
|
203
|
+
|
|
204
|
+
var _react5 = require('@reown/appkit-adapter-solana/react');
|
|
205
|
+
|
|
206
|
+
function DepositModalWithReown(props) {
|
|
207
|
+
const reown = useReownWallet();
|
|
208
|
+
const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
|
|
209
|
+
const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
|
|
210
|
+
enableSolana ? "solana" : "eip155"
|
|
211
|
+
);
|
|
212
|
+
const { connection: solanaConnection } = _react5.useAppKitConnection.call(void 0, );
|
|
213
|
+
const reownWithSolana = _react.useMemo.call(void 0,
|
|
214
|
+
() => ({
|
|
215
|
+
...reown,
|
|
216
|
+
solanaProvider: enableSolana && reown.isSolana ? solanaWalletProvider : void 0,
|
|
217
|
+
solanaConnection: enableSolana && reown.isSolana ? solanaConnection : void 0
|
|
218
|
+
}),
|
|
219
|
+
[enableSolana, reown, solanaWalletProvider, solanaConnection]
|
|
220
|
+
);
|
|
221
|
+
const handleConnect = _react.useCallback.call(void 0, () => {
|
|
222
|
+
reown.openConnect();
|
|
223
|
+
}, [reown.openConnect]);
|
|
224
|
+
const handleDisconnect = _react.useCallback.call(void 0, () => {
|
|
225
|
+
reown.disconnect();
|
|
226
|
+
}, [reown.disconnect]);
|
|
227
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
228
|
+
_chunkQYYGX36Tcjs.DepositModalInner,
|
|
229
|
+
{
|
|
230
|
+
...props,
|
|
231
|
+
reownWallet: reownWithSolana,
|
|
232
|
+
onConnect: handleConnect,
|
|
233
|
+
onDisconnect: handleDisconnect
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
function DepositModalReown(props) {
|
|
238
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
239
|
+
ReownWalletProvider,
|
|
240
|
+
{
|
|
241
|
+
projectId: props.reownAppId,
|
|
242
|
+
theme: props.theme,
|
|
243
|
+
enableSolana: props.enableSolana,
|
|
244
|
+
rpcUrls: props.rpcUrls,
|
|
245
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositModalWithReown, { ...props })
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
}
|
|
193
249
|
|
|
194
250
|
|
|
195
|
-
|
|
196
|
-
exports.ReownWalletProvider = ReownWalletProvider; exports.useReownWallet = useReownWallet;
|
|
251
|
+
exports.DepositModalReown = DepositModalReown;
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DepositModalInner
|
|
3
|
+
} from "./chunk-YVI7Q7P7.mjs";
|
|
4
|
+
import "./chunk-YNRJ643P.mjs";
|
|
5
|
+
import "./chunk-GQXT6UL7.mjs";
|
|
1
6
|
import {
|
|
2
7
|
isUnsupportedChainSwitchError,
|
|
3
8
|
rpcUrlFor
|
|
4
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VXYJ432Q.mjs";
|
|
5
10
|
import {
|
|
6
11
|
SUPPORTED_CHAINS,
|
|
7
12
|
getChainName
|
|
8
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-G5JWMTDR.mjs";
|
|
14
|
+
import "./chunk-OMREKQB2.mjs";
|
|
15
|
+
|
|
16
|
+
// src/DepositModalReown.tsx
|
|
17
|
+
import { useCallback, useMemo } from "react";
|
|
9
18
|
|
|
10
19
|
// src/core/reown.tsx
|
|
11
20
|
import { useState } from "react";
|
|
@@ -190,7 +199,53 @@ function useReownWallet() {
|
|
|
190
199
|
};
|
|
191
200
|
}
|
|
192
201
|
|
|
202
|
+
// src/DepositModalReown.tsx
|
|
203
|
+
import { useAppKitProvider } from "@reown/appkit/react";
|
|
204
|
+
import { useAppKitConnection } from "@reown/appkit-adapter-solana/react";
|
|
205
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
206
|
+
function DepositModalWithReown(props) {
|
|
207
|
+
const reown = useReownWallet();
|
|
208
|
+
const enableSolana = props.enableSolana ?? true;
|
|
209
|
+
const { walletProvider: solanaWalletProvider } = useAppKitProvider(
|
|
210
|
+
enableSolana ? "solana" : "eip155"
|
|
211
|
+
);
|
|
212
|
+
const { connection: solanaConnection } = useAppKitConnection();
|
|
213
|
+
const reownWithSolana = useMemo(
|
|
214
|
+
() => ({
|
|
215
|
+
...reown,
|
|
216
|
+
solanaProvider: enableSolana && reown.isSolana ? solanaWalletProvider : void 0,
|
|
217
|
+
solanaConnection: enableSolana && reown.isSolana ? solanaConnection : void 0
|
|
218
|
+
}),
|
|
219
|
+
[enableSolana, reown, solanaWalletProvider, solanaConnection]
|
|
220
|
+
);
|
|
221
|
+
const handleConnect = useCallback(() => {
|
|
222
|
+
reown.openConnect();
|
|
223
|
+
}, [reown.openConnect]);
|
|
224
|
+
const handleDisconnect = useCallback(() => {
|
|
225
|
+
reown.disconnect();
|
|
226
|
+
}, [reown.disconnect]);
|
|
227
|
+
return /* @__PURE__ */ jsx2(
|
|
228
|
+
DepositModalInner,
|
|
229
|
+
{
|
|
230
|
+
...props,
|
|
231
|
+
reownWallet: reownWithSolana,
|
|
232
|
+
onConnect: handleConnect,
|
|
233
|
+
onDisconnect: handleDisconnect
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
function DepositModalReown(props) {
|
|
238
|
+
return /* @__PURE__ */ jsx2(
|
|
239
|
+
ReownWalletProvider,
|
|
240
|
+
{
|
|
241
|
+
projectId: props.reownAppId,
|
|
242
|
+
theme: props.theme,
|
|
243
|
+
enableSolana: props.enableSolana,
|
|
244
|
+
rpcUrls: props.rpcUrls,
|
|
245
|
+
children: /* @__PURE__ */ jsx2(DepositModalWithReown, { ...props })
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
}
|
|
193
249
|
export {
|
|
194
|
-
|
|
195
|
-
useReownWallet
|
|
250
|
+
DepositModalReown
|
|
196
251
|
};
|
|
@@ -13,7 +13,6 @@ declare function tokenIconUrl(symbol: string): string;
|
|
|
13
13
|
declare function getTokenIcon(symbol: string): string;
|
|
14
14
|
|
|
15
15
|
declare const DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
|
|
16
|
-
declare const DEFAULT_SIGNER_ADDRESS: Address;
|
|
17
16
|
declare const NATIVE_TOKEN_ADDRESS: Address;
|
|
18
17
|
declare const CHAIN_BY_ID: Record<number, Chain>;
|
|
19
18
|
declare const SOURCE_CHAINS: Chain[];
|
|
@@ -74,4 +73,4 @@ declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba63
|
|
|
74
73
|
*/
|
|
75
74
|
declare const HYPERCORE_USDT0_ADDRESS = "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb";
|
|
76
75
|
|
|
77
|
-
export {
|
|
76
|
+
export { type SupportedTokenOption as A, CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, HYPERCORE_CHAIN_ID as H, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, HYPERCORE_USDC_ADDRESS as a, HYPERCORE_USDT0_ADDRESS as b, SUPPORTED_CHAINS as c, chainRegistry as d, getChainIcon as e, findChainIdForToken as f, getChainBadge as g, getChainId as h, getChainName as i, getChainObject as j, getExplorerName as k, getExplorerTxUrl as l, getExplorerUrl as m, getSupportedChainIds as n, getSupportedTargetTokens as o, getSupportedTokenSymbolsForChain as p, getTargetTokenSymbolsForChain as q, getTokenAddress as r, getTokenDecimals as s, getTokenDecimalsByAddress as t, getTokenIcon as u, getTokenSymbol as v, getUsdcAddress as w, getUsdcDecimals as x, isSupportedTokenAddressForChain as y, tokenIconUrl as z };
|
|
@@ -13,7 +13,6 @@ declare function tokenIconUrl(symbol: string): string;
|
|
|
13
13
|
declare function getTokenIcon(symbol: string): string;
|
|
14
14
|
|
|
15
15
|
declare const DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
|
|
16
|
-
declare const DEFAULT_SIGNER_ADDRESS: Address;
|
|
17
16
|
declare const NATIVE_TOKEN_ADDRESS: Address;
|
|
18
17
|
declare const CHAIN_BY_ID: Record<number, Chain>;
|
|
19
18
|
declare const SOURCE_CHAINS: Chain[];
|
|
@@ -74,4 +73,4 @@ declare const HYPERCORE_USDC_ADDRESS = "0xb88339CB7199b77E23DB6E890353E22632Ba63
|
|
|
74
73
|
*/
|
|
75
74
|
declare const HYPERCORE_USDT0_ADDRESS = "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb";
|
|
76
75
|
|
|
77
|
-
export {
|
|
76
|
+
export { type SupportedTokenOption as A, CHAIN_BY_ID as C, DEFAULT_BACKEND_URL as D, HYPERCORE_CHAIN_ID as H, NATIVE_TOKEN_ADDRESS as N, SOURCE_CHAINS as S, HYPERCORE_USDC_ADDRESS as a, HYPERCORE_USDT0_ADDRESS as b, SUPPORTED_CHAINS as c, chainRegistry as d, getChainIcon as e, findChainIdForToken as f, getChainBadge as g, getChainId as h, getChainName as i, getChainObject as j, getExplorerName as k, getExplorerTxUrl as l, getExplorerUrl as m, getSupportedChainIds as n, getSupportedTargetTokens as o, getSupportedTokenSymbolsForChain as p, getTargetTokenSymbolsForChain as q, getTokenAddress as r, getTokenDecimals as s, getTokenDecimalsByAddress as t, getTokenIcon as u, getTokenSymbol as v, getUsdcAddress as w, getUsdcDecimals as x, isSupportedTokenAddressForChain as y, tokenIconUrl as z };
|