@rhinestone/deposit-modal 0.1.28 → 0.1.29

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.
@@ -7,7 +7,6 @@ import {
7
7
  optimism,
8
8
  polygon
9
9
  } from "viem/chains";
10
- import { chainRegistry } from "@rhinestone/shared-configs";
11
10
  var DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
12
11
  var DEFAULT_SIGNER_ADDRESS = "0x177bfcdd15bc01e99013dcc5d2b09cd87a18ce9c";
13
12
  var NATIVE_TOKEN_ADDRESS = "0x0000000000000000000000000000000000000000";
@@ -61,6 +60,128 @@ var SYMBOL_ALIASES = {
61
60
  var CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL = {
62
61
  USDT0: "USDT"
63
62
  };
63
+ var chainRegistry = {
64
+ [mainnet.id]: {
65
+ name: mainnet.name,
66
+ tokens: [
67
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
68
+ {
69
+ symbol: "USDC",
70
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
71
+ decimals: 6
72
+ },
73
+ {
74
+ symbol: "WETH",
75
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
76
+ decimals: 18
77
+ },
78
+ {
79
+ symbol: "USDT0",
80
+ address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
81
+ decimals: 6
82
+ }
83
+ ]
84
+ },
85
+ [base.id]: {
86
+ name: base.name,
87
+ tokens: [
88
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
89
+ {
90
+ symbol: "USDC",
91
+ address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
92
+ decimals: 6
93
+ },
94
+ {
95
+ symbol: "WETH",
96
+ address: "0x4200000000000000000000000000000000000006",
97
+ decimals: 18
98
+ }
99
+ ]
100
+ },
101
+ [arbitrum.id]: {
102
+ name: arbitrum.name,
103
+ tokens: [
104
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
105
+ {
106
+ symbol: "USDC",
107
+ address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
108
+ decimals: 6
109
+ },
110
+ {
111
+ symbol: "WETH",
112
+ address: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
113
+ decimals: 18
114
+ },
115
+ {
116
+ symbol: "USDT0",
117
+ address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
118
+ decimals: 6
119
+ }
120
+ ]
121
+ },
122
+ [optimism.id]: {
123
+ name: optimism.name,
124
+ tokens: [
125
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
126
+ {
127
+ symbol: "USDC",
128
+ address: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
129
+ decimals: 6
130
+ },
131
+ {
132
+ symbol: "WETH",
133
+ address: "0x4200000000000000000000000000000000000006",
134
+ decimals: 18
135
+ },
136
+ {
137
+ symbol: "USDT0",
138
+ address: "0x01bFF41798a0BcF287b996046Ca68b395DbC1071",
139
+ decimals: 6
140
+ }
141
+ ]
142
+ },
143
+ [polygon.id]: {
144
+ name: polygon.name,
145
+ tokens: [
146
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
147
+ {
148
+ symbol: "USDC",
149
+ address: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
150
+ decimals: 6
151
+ },
152
+ {
153
+ symbol: "WETH",
154
+ address: "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
155
+ decimals: 18
156
+ },
157
+ {
158
+ symbol: "USDT0",
159
+ address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
160
+ decimals: 6
161
+ }
162
+ ]
163
+ },
164
+ [bsc.id]: {
165
+ name: bsc.name,
166
+ tokens: [
167
+ {
168
+ symbol: "USDC",
169
+ address: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
170
+ decimals: 18
171
+ },
172
+ {
173
+ symbol: "WETH",
174
+ address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8",
175
+ decimals: 18
176
+ },
177
+ {
178
+ symbol: "USDT",
179
+ address: "0x55d398326f99059fF775485246999027B3197955",
180
+ decimals: 18
181
+ }
182
+ ]
183
+ }
184
+ };
64
185
  function getChainId(chain) {
65
186
  return typeof chain === "number" ? chain : chain.id;
66
187
  }
@@ -274,13 +395,13 @@ function getTokenIcon(symbol) {
274
395
  }
275
396
 
276
397
  export {
277
- chainRegistry,
278
398
  DEFAULT_BACKEND_URL,
279
399
  DEFAULT_SIGNER_ADDRESS,
280
400
  NATIVE_TOKEN_ADDRESS,
281
401
  CHAIN_BY_ID,
282
402
  SOURCE_CHAINS,
283
403
  SUPPORTED_CHAINS,
404
+ chainRegistry,
284
405
  getChainId,
285
406
  getChainObject,
286
407
  getUsdcAddress,
@@ -7,7 +7,6 @@
7
7
 
8
8
 
9
9
  var _chains = require('viem/chains');
10
- var _sharedconfigs = require('@rhinestone/shared-configs');
11
10
  var DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
12
11
  var DEFAULT_SIGNER_ADDRESS = "0x177bfcdd15bc01e99013dcc5d2b09cd87a18ce9c";
13
12
  var NATIVE_TOKEN_ADDRESS = "0x0000000000000000000000000000000000000000";
@@ -61,6 +60,128 @@ var SYMBOL_ALIASES = {
61
60
  var CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL = {
62
61
  USDT0: "USDT"
63
62
  };
63
+ var chainRegistry = {
64
+ [_chains.mainnet.id]: {
65
+ name: _chains.mainnet.name,
66
+ tokens: [
67
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
68
+ {
69
+ symbol: "USDC",
70
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
71
+ decimals: 6
72
+ },
73
+ {
74
+ symbol: "WETH",
75
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
76
+ decimals: 18
77
+ },
78
+ {
79
+ symbol: "USDT0",
80
+ address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
81
+ decimals: 6
82
+ }
83
+ ]
84
+ },
85
+ [_chains.base.id]: {
86
+ name: _chains.base.name,
87
+ tokens: [
88
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
89
+ {
90
+ symbol: "USDC",
91
+ address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
92
+ decimals: 6
93
+ },
94
+ {
95
+ symbol: "WETH",
96
+ address: "0x4200000000000000000000000000000000000006",
97
+ decimals: 18
98
+ }
99
+ ]
100
+ },
101
+ [_chains.arbitrum.id]: {
102
+ name: _chains.arbitrum.name,
103
+ tokens: [
104
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
105
+ {
106
+ symbol: "USDC",
107
+ address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
108
+ decimals: 6
109
+ },
110
+ {
111
+ symbol: "WETH",
112
+ address: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
113
+ decimals: 18
114
+ },
115
+ {
116
+ symbol: "USDT0",
117
+ address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
118
+ decimals: 6
119
+ }
120
+ ]
121
+ },
122
+ [_chains.optimism.id]: {
123
+ name: _chains.optimism.name,
124
+ tokens: [
125
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
126
+ {
127
+ symbol: "USDC",
128
+ address: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
129
+ decimals: 6
130
+ },
131
+ {
132
+ symbol: "WETH",
133
+ address: "0x4200000000000000000000000000000000000006",
134
+ decimals: 18
135
+ },
136
+ {
137
+ symbol: "USDT0",
138
+ address: "0x01bFF41798a0BcF287b996046Ca68b395DbC1071",
139
+ decimals: 6
140
+ }
141
+ ]
142
+ },
143
+ [_chains.polygon.id]: {
144
+ name: _chains.polygon.name,
145
+ tokens: [
146
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
147
+ {
148
+ symbol: "USDC",
149
+ address: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
150
+ decimals: 6
151
+ },
152
+ {
153
+ symbol: "WETH",
154
+ address: "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
155
+ decimals: 18
156
+ },
157
+ {
158
+ symbol: "USDT0",
159
+ address: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
160
+ decimals: 6
161
+ }
162
+ ]
163
+ },
164
+ [_chains.bsc.id]: {
165
+ name: _chains.bsc.name,
166
+ tokens: [
167
+ {
168
+ symbol: "USDC",
169
+ address: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
170
+ decimals: 18
171
+ },
172
+ {
173
+ symbol: "WETH",
174
+ address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8",
175
+ decimals: 18
176
+ },
177
+ {
178
+ symbol: "USDT",
179
+ address: "0x55d398326f99059fF775485246999027B3197955",
180
+ decimals: 18
181
+ }
182
+ ]
183
+ }
184
+ };
64
185
  function getChainId(chain) {
65
186
  return typeof chain === "number" ? chain : chain.id;
66
187
  }
@@ -85,7 +206,7 @@ function isSymbolSupportedOnChain(symbol, chainId) {
85
206
  return symbols.includes(normalizeTokenSymbol(symbol));
86
207
  }
87
208
  function getTokenFromRegistry(chainId, symbol) {
88
- const chainEntry = _sharedconfigs.chainRegistry[String(chainId)];
209
+ const chainEntry = chainRegistry[String(chainId)];
89
210
  if (!chainEntry) return void 0;
90
211
  const normalized = normalizeTokenSymbol(symbol);
91
212
  const candidates = _nullishCoalesce(SYMBOL_ALIASES[normalized], () => ( [normalized]));
@@ -166,7 +287,7 @@ function getTokenDecimalsByAddress(token, chainId) {
166
287
  return 18;
167
288
  }
168
289
  if (chainId) {
169
- const chainEntry = _sharedconfigs.chainRegistry[String(chainId)];
290
+ const chainEntry = chainRegistry[String(chainId)];
170
291
  if (chainEntry) {
171
292
  const found = chainEntry.tokens.find(
172
293
  (t) => t.address.toLowerCase() === normalized
@@ -174,7 +295,7 @@ function getTokenDecimalsByAddress(token, chainId) {
174
295
  if (found) return found.decimals;
175
296
  }
176
297
  }
177
- for (const chainEntry of Object.values(_sharedconfigs.chainRegistry)) {
298
+ for (const chainEntry of Object.values(chainRegistry)) {
178
299
  const found = chainEntry.tokens.find(
179
300
  (t) => t.address.toLowerCase() === normalized
180
301
  );
@@ -184,7 +305,7 @@ function getTokenDecimalsByAddress(token, chainId) {
184
305
  }
185
306
  function findChainIdForToken(address) {
186
307
  const normalized = address.toLowerCase();
187
- for (const [chainIdStr, chainEntry] of Object.entries(_sharedconfigs.chainRegistry)) {
308
+ for (const [chainIdStr, chainEntry] of Object.entries(chainRegistry)) {
188
309
  for (const token of chainEntry.tokens) {
189
310
  if (token.address.toLowerCase() === normalized) {
190
311
  return Number(chainIdStr);
@@ -199,7 +320,7 @@ function getTokenSymbol(token, chainId) {
199
320
  return "ETH";
200
321
  }
201
322
  if (chainId) {
202
- const chainEntry = _sharedconfigs.chainRegistry[String(chainId)];
323
+ const chainEntry = chainRegistry[String(chainId)];
203
324
  if (chainEntry) {
204
325
  const found = chainEntry.tokens.find(
205
326
  (t) => t.address.toLowerCase() === normalized
@@ -208,7 +329,7 @@ function getTokenSymbol(token, chainId) {
208
329
  return _nullishCoalesce(CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL[found.symbol.toUpperCase()], () => ( found.symbol));
209
330
  }
210
331
  }
211
- for (const chainEntry of Object.values(_sharedconfigs.chainRegistry)) {
332
+ for (const chainEntry of Object.values(chainRegistry)) {
212
333
  const found = chainEntry.tokens.find(
213
334
  (t) => t.address.toLowerCase() === normalized
214
335
  );
@@ -228,7 +349,7 @@ var CHAIN_BADGES = {
228
349
  function getChainName(chainId) {
229
350
  const chain = CHAIN_BY_ID[chainId];
230
351
  if (chain) return chain.name;
231
- const chainEntry = _sharedconfigs.chainRegistry[String(chainId)];
352
+ const chainEntry = chainRegistry[String(chainId)];
232
353
  if (chainEntry) return chainEntry.name;
233
354
  return `Chain ${chainId}`;
234
355
  }
@@ -301,4 +422,4 @@ function getTokenIcon(symbol) {
301
422
 
302
423
 
303
424
 
304
- exports.chainRegistry = _sharedconfigs.chainRegistry; exports.DEFAULT_BACKEND_URL = DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = NATIVE_TOKEN_ADDRESS; exports.CHAIN_BY_ID = CHAIN_BY_ID; exports.SOURCE_CHAINS = SOURCE_CHAINS; exports.SUPPORTED_CHAINS = SUPPORTED_CHAINS; exports.getChainId = getChainId; exports.getChainObject = getChainObject; exports.getUsdcAddress = getUsdcAddress; exports.getUsdcDecimals = getUsdcDecimals; exports.getTokenAddress = getTokenAddress; exports.getTokenDecimals = getTokenDecimals; exports.getSupportedTokenSymbolsForChain = getSupportedTokenSymbolsForChain; exports.getSupportedChainIds = getSupportedChainIds; exports.isSupportedTokenAddressForChain = isSupportedTokenAddressForChain; exports.getSupportedTargetTokens = getSupportedTargetTokens; exports.getTokenDecimalsByAddress = getTokenDecimalsByAddress; exports.findChainIdForToken = findChainIdForToken; exports.getTokenSymbol = getTokenSymbol; exports.getChainName = getChainName; exports.getChainBadge = getChainBadge; exports.getExplorerUrl = getExplorerUrl; exports.getExplorerTxUrl = getExplorerTxUrl; exports.getExplorerName = getExplorerName; exports.getChainIcon = getChainIcon; exports.getTokenIcon = getTokenIcon;
425
+ exports.DEFAULT_BACKEND_URL = DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = NATIVE_TOKEN_ADDRESS; exports.CHAIN_BY_ID = CHAIN_BY_ID; exports.SOURCE_CHAINS = SOURCE_CHAINS; exports.SUPPORTED_CHAINS = SUPPORTED_CHAINS; exports.chainRegistry = chainRegistry; exports.getChainId = getChainId; exports.getChainObject = getChainObject; exports.getUsdcAddress = getUsdcAddress; exports.getUsdcDecimals = getUsdcDecimals; exports.getTokenAddress = getTokenAddress; exports.getTokenDecimals = getTokenDecimals; exports.getSupportedTokenSymbolsForChain = getSupportedTokenSymbolsForChain; exports.getSupportedChainIds = getSupportedChainIds; exports.isSupportedTokenAddressForChain = isSupportedTokenAddressForChain; exports.getSupportedTargetTokens = getSupportedTargetTokens; exports.getTokenDecimalsByAddress = getTokenDecimalsByAddress; exports.findChainIdForToken = findChainIdForToken; exports.getTokenSymbol = getTokenSymbol; exports.getChainName = getChainName; exports.getChainBadge = getChainBadge; exports.getExplorerUrl = getExplorerUrl; exports.getExplorerTxUrl = getExplorerTxUrl; exports.getExplorerName = getExplorerName; exports.getChainIcon = getChainIcon; exports.getTokenIcon = getTokenIcon;
@@ -16,7 +16,7 @@ import {
16
16
  isNativeAsset,
17
17
  loadSessionOwnerFromStorage,
18
18
  saveSessionOwnerToStorage
19
- } from "./chunk-RQSAANC3.mjs";
19
+ } from "./chunk-N6T4TKXI.mjs";
20
20
  import {
21
21
  DEFAULT_BACKEND_URL,
22
22
  DEFAULT_SIGNER_ADDRESS,
@@ -29,7 +29,7 @@ import {
29
29
  getTokenDecimalsByAddress,
30
30
  getTokenIcon,
31
31
  getTokenSymbol
32
- } from "./chunk-A6QLADED.mjs";
32
+ } from "./chunk-CSQRKM4Y.mjs";
33
33
 
34
34
  // src/WithdrawModal.tsx
35
35
  import {
@@ -1300,7 +1300,7 @@ function WithdrawFlow({
1300
1300
  // src/WithdrawModal.tsx
1301
1301
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1302
1302
  var ReownWithdrawInner = lazy(
1303
- () => import("./WithdrawModalReown-LIYQG2BW.mjs").then((m) => ({
1303
+ () => import("./WithdrawModalReown-CJCNT7SA.mjs").then((m) => ({
1304
1304
  default: m.WithdrawModalReown
1305
1305
  }))
1306
1306
  );
@@ -8,7 +8,7 @@ import {
8
8
  getTokenDecimalsByAddress,
9
9
  getTokenSymbol,
10
10
  isSupportedTokenAddressForChain
11
- } from "./chunk-A6QLADED.mjs";
11
+ } from "./chunk-CSQRKM4Y.mjs";
12
12
 
13
13
  // src/components/ui/Modal.tsx
14
14
  import {
@@ -21,7 +21,7 @@ import {
21
21
  portfolioToAssets,
22
22
  saveSessionOwnerToStorage,
23
23
  tokenFormatter
24
- } from "./chunk-RQSAANC3.mjs";
24
+ } from "./chunk-N6T4TKXI.mjs";
25
25
  import {
26
26
  DEFAULT_BACKEND_URL,
27
27
  DEFAULT_SIGNER_ADDRESS,
@@ -36,7 +36,7 @@ import {
36
36
  getTokenAddress,
37
37
  getTokenIcon,
38
38
  getTokenSymbol
39
- } from "./chunk-A6QLADED.mjs";
39
+ } from "./chunk-CSQRKM4Y.mjs";
40
40
 
41
41
  // src/DepositModal.tsx
42
42
  import {
@@ -2105,7 +2105,7 @@ function DepositFlow({
2105
2105
  // src/DepositModal.tsx
2106
2106
  import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
2107
2107
  var ReownDepositInner = lazy(
2108
- () => import("./DepositModalReown-FF4YU5VV.mjs").then((m) => ({ default: m.DepositModalReown }))
2108
+ () => import("./DepositModalReown-BVHWFWIG.mjs").then((m) => ({ default: m.DepositModalReown }))
2109
2109
  );
2110
2110
  function DepositModal(props) {
2111
2111
  const needsReown = !!props.reownAppId;
@@ -26,7 +26,7 @@
26
26
 
27
27
 
28
28
 
29
- var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
29
+ var _chunkDLYVHOMEcjs = require('./chunk-DLYVHOME.cjs');
30
30
 
31
31
 
32
32
 
@@ -55,4 +55,4 @@ var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
55
55
 
56
56
 
57
57
 
58
- exports.CHAIN_BY_ID = _chunkCEIWN53Ncjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkCEIWN53Ncjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkCEIWN53Ncjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkCEIWN53Ncjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkCEIWN53Ncjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkCEIWN53Ncjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkCEIWN53Ncjs.chainRegistry; exports.findChainIdForToken = _chunkCEIWN53Ncjs.findChainIdForToken; exports.getChainBadge = _chunkCEIWN53Ncjs.getChainBadge; exports.getChainIcon = _chunkCEIWN53Ncjs.getChainIcon; exports.getChainId = _chunkCEIWN53Ncjs.getChainId; exports.getChainName = _chunkCEIWN53Ncjs.getChainName; exports.getChainObject = _chunkCEIWN53Ncjs.getChainObject; exports.getExplorerName = _chunkCEIWN53Ncjs.getExplorerName; exports.getExplorerTxUrl = _chunkCEIWN53Ncjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkCEIWN53Ncjs.getExplorerUrl; exports.getSupportedChainIds = _chunkCEIWN53Ncjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkCEIWN53Ncjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkCEIWN53Ncjs.getSupportedTokenSymbolsForChain; exports.getTokenAddress = _chunkCEIWN53Ncjs.getTokenAddress; exports.getTokenDecimals = _chunkCEIWN53Ncjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkCEIWN53Ncjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkCEIWN53Ncjs.getTokenIcon; exports.getTokenSymbol = _chunkCEIWN53Ncjs.getTokenSymbol; exports.getUsdcAddress = _chunkCEIWN53Ncjs.getUsdcAddress; exports.getUsdcDecimals = _chunkCEIWN53Ncjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkCEIWN53Ncjs.isSupportedTokenAddressForChain;
58
+ exports.CHAIN_BY_ID = _chunkDLYVHOMEcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkDLYVHOMEcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkDLYVHOMEcjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkDLYVHOMEcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkDLYVHOMEcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkDLYVHOMEcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkDLYVHOMEcjs.chainRegistry; exports.findChainIdForToken = _chunkDLYVHOMEcjs.findChainIdForToken; exports.getChainBadge = _chunkDLYVHOMEcjs.getChainBadge; exports.getChainIcon = _chunkDLYVHOMEcjs.getChainIcon; exports.getChainId = _chunkDLYVHOMEcjs.getChainId; exports.getChainName = _chunkDLYVHOMEcjs.getChainName; exports.getChainObject = _chunkDLYVHOMEcjs.getChainObject; exports.getExplorerName = _chunkDLYVHOMEcjs.getExplorerName; exports.getExplorerTxUrl = _chunkDLYVHOMEcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkDLYVHOMEcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkDLYVHOMEcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkDLYVHOMEcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkDLYVHOMEcjs.getSupportedTokenSymbolsForChain; exports.getTokenAddress = _chunkDLYVHOMEcjs.getTokenAddress; exports.getTokenDecimals = _chunkDLYVHOMEcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkDLYVHOMEcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkDLYVHOMEcjs.getTokenIcon; exports.getTokenSymbol = _chunkDLYVHOMEcjs.getTokenSymbol; exports.getUsdcAddress = _chunkDLYVHOMEcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkDLYVHOMEcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkDLYVHOMEcjs.isSupportedTokenAddressForChain;
@@ -1,6 +1,5 @@
1
1
  import { Chain } from 'viem/chains';
2
2
  import { Address } from 'viem';
3
- export { chainRegistry } from '@rhinestone/shared-configs';
4
3
 
5
4
  declare const DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
6
5
  declare const DEFAULT_SIGNER_ADDRESS: Address;
@@ -8,6 +7,16 @@ declare const NATIVE_TOKEN_ADDRESS: Address;
8
7
  declare const CHAIN_BY_ID: Record<number, Chain>;
9
8
  declare const SOURCE_CHAINS: Chain[];
10
9
  declare const SUPPORTED_CHAINS: Chain[];
10
+ type ChainRegistryToken = {
11
+ symbol: string;
12
+ address: Address;
13
+ decimals: number;
14
+ };
15
+ type ChainRegistryEntry = {
16
+ name: string;
17
+ tokens: readonly ChainRegistryToken[];
18
+ };
19
+ declare const chainRegistry: Record<string, ChainRegistryEntry>;
11
20
  type SupportedTokenOption = {
12
21
  symbol: string;
13
22
  address: Address;
@@ -38,4 +47,4 @@ declare function getExplorerName(chainId: number): string;
38
47
  declare function getChainIcon(chainId: number): string | undefined;
39
48
  declare function getTokenIcon(symbol: string): string | undefined;
40
49
 
41
- export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, type SupportedTokenOption, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain };
50
+ export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, type SupportedTokenOption, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain };
@@ -1,6 +1,5 @@
1
1
  import { Chain } from 'viem/chains';
2
2
  import { Address } from 'viem';
3
- export { chainRegistry } from '@rhinestone/shared-configs';
4
3
 
5
4
  declare const DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
6
5
  declare const DEFAULT_SIGNER_ADDRESS: Address;
@@ -8,6 +7,16 @@ declare const NATIVE_TOKEN_ADDRESS: Address;
8
7
  declare const CHAIN_BY_ID: Record<number, Chain>;
9
8
  declare const SOURCE_CHAINS: Chain[];
10
9
  declare const SUPPORTED_CHAINS: Chain[];
10
+ type ChainRegistryToken = {
11
+ symbol: string;
12
+ address: Address;
13
+ decimals: number;
14
+ };
15
+ type ChainRegistryEntry = {
16
+ name: string;
17
+ tokens: readonly ChainRegistryToken[];
18
+ };
19
+ declare const chainRegistry: Record<string, ChainRegistryEntry>;
11
20
  type SupportedTokenOption = {
12
21
  symbol: string;
13
22
  address: Address;
@@ -38,4 +47,4 @@ declare function getExplorerName(chainId: number): string;
38
47
  declare function getChainIcon(chainId: number): string | undefined;
39
48
  declare function getTokenIcon(symbol: string): string | undefined;
40
49
 
41
- export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, type SupportedTokenOption, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain };
50
+ export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, type SupportedTokenOption, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain };
@@ -26,7 +26,7 @@ import {
26
26
  getUsdcAddress,
27
27
  getUsdcDecimals,
28
28
  isSupportedTokenAddressForChain
29
- } from "./chunk-A6QLADED.mjs";
29
+ } from "./chunk-CSQRKM4Y.mjs";
30
30
  export {
31
31
  CHAIN_BY_ID,
32
32
  DEFAULT_BACKEND_URL,
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXJ4G6RO6cjs = require('./chunk-XJ4G6RO6.cjs');
4
- require('./chunk-VW3QQWEL.cjs');
5
- require('./chunk-CEIWN53N.cjs');
3
+ var _chunk5QJNOPNFcjs = require('./chunk-5QJNOPNF.cjs');
4
+ require('./chunk-7ZCUANBT.cjs');
5
+ require('./chunk-DLYVHOME.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkXJ4G6RO6cjs.DepositModal;
8
+ exports.DepositModal = _chunk5QJNOPNFcjs.DepositModal;
package/dist/deposit.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-YXTWMYHK.mjs";
4
- import "./chunk-RQSAANC3.mjs";
5
- import "./chunk-A6QLADED.mjs";
3
+ } from "./chunk-XTTTHW3W.mjs";
4
+ import "./chunk-N6T4TKXI.mjs";
5
+ import "./chunk-CSQRKM4Y.mjs";
6
6
  export {
7
7
  DepositModal
8
8
  };
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXJ4G6RO6cjs = require('./chunk-XJ4G6RO6.cjs');
3
+ var _chunk5QJNOPNFcjs = require('./chunk-5QJNOPNF.cjs');
4
4
 
5
5
 
6
- var _chunkLP6DQCKVcjs = require('./chunk-LP6DQCKV.cjs');
7
- require('./chunk-VW3QQWEL.cjs');
6
+ var _chunkCPIQJR47cjs = require('./chunk-CPIQJR47.cjs');
7
+ require('./chunk-7ZCUANBT.cjs');
8
8
 
9
9
 
10
10
 
@@ -33,7 +33,7 @@ require('./chunk-VW3QQWEL.cjs');
33
33
 
34
34
 
35
35
 
36
- var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
36
+ var _chunkDLYVHOMEcjs = require('./chunk-DLYVHOME.cjs');
37
37
 
38
38
 
39
39
 
@@ -64,4 +64,4 @@ var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
64
64
 
65
65
 
66
66
 
67
- exports.CHAIN_BY_ID = _chunkCEIWN53Ncjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkCEIWN53Ncjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkCEIWN53Ncjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkXJ4G6RO6cjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkCEIWN53Ncjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkCEIWN53Ncjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkCEIWN53Ncjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkLP6DQCKVcjs.WithdrawModal; exports.chainRegistry = _chunkCEIWN53Ncjs.chainRegistry; exports.findChainIdForToken = _chunkCEIWN53Ncjs.findChainIdForToken; exports.getChainBadge = _chunkCEIWN53Ncjs.getChainBadge; exports.getChainIcon = _chunkCEIWN53Ncjs.getChainIcon; exports.getChainId = _chunkCEIWN53Ncjs.getChainId; exports.getChainName = _chunkCEIWN53Ncjs.getChainName; exports.getChainObject = _chunkCEIWN53Ncjs.getChainObject; exports.getExplorerName = _chunkCEIWN53Ncjs.getExplorerName; exports.getExplorerTxUrl = _chunkCEIWN53Ncjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkCEIWN53Ncjs.getExplorerUrl; exports.getSupportedChainIds = _chunkCEIWN53Ncjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkCEIWN53Ncjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkCEIWN53Ncjs.getSupportedTokenSymbolsForChain; exports.getTokenAddress = _chunkCEIWN53Ncjs.getTokenAddress; exports.getTokenDecimals = _chunkCEIWN53Ncjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkCEIWN53Ncjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkCEIWN53Ncjs.getTokenIcon; exports.getTokenSymbol = _chunkCEIWN53Ncjs.getTokenSymbol; exports.getUsdcAddress = _chunkCEIWN53Ncjs.getUsdcAddress; exports.getUsdcDecimals = _chunkCEIWN53Ncjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkCEIWN53Ncjs.isSupportedTokenAddressForChain;
67
+ exports.CHAIN_BY_ID = _chunkDLYVHOMEcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkDLYVHOMEcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkDLYVHOMEcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk5QJNOPNFcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkDLYVHOMEcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkDLYVHOMEcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkDLYVHOMEcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkCPIQJR47cjs.WithdrawModal; exports.chainRegistry = _chunkDLYVHOMEcjs.chainRegistry; exports.findChainIdForToken = _chunkDLYVHOMEcjs.findChainIdForToken; exports.getChainBadge = _chunkDLYVHOMEcjs.getChainBadge; exports.getChainIcon = _chunkDLYVHOMEcjs.getChainIcon; exports.getChainId = _chunkDLYVHOMEcjs.getChainId; exports.getChainName = _chunkDLYVHOMEcjs.getChainName; exports.getChainObject = _chunkDLYVHOMEcjs.getChainObject; exports.getExplorerName = _chunkDLYVHOMEcjs.getExplorerName; exports.getExplorerTxUrl = _chunkDLYVHOMEcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkDLYVHOMEcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkDLYVHOMEcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkDLYVHOMEcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkDLYVHOMEcjs.getSupportedTokenSymbolsForChain; exports.getTokenAddress = _chunkDLYVHOMEcjs.getTokenAddress; exports.getTokenDecimals = _chunkDLYVHOMEcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkDLYVHOMEcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkDLYVHOMEcjs.getTokenIcon; exports.getTokenSymbol = _chunkDLYVHOMEcjs.getTokenSymbol; exports.getUsdcAddress = _chunkDLYVHOMEcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkDLYVHOMEcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkDLYVHOMEcjs.isSupportedTokenAddressForChain;
package/dist/index.d.cts CHANGED
@@ -1,9 +1,8 @@
1
1
  export { DepositModal } from './deposit.cjs';
2
2
  export { WithdrawModal } from './withdraw.cjs';
3
3
  export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, c as DepositModalProps, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, g as WithdrawFailedEventData, h as WithdrawModalProps, i as WithdrawSubmittedEventData } from './types-BwaQ7jK5.cjs';
4
- export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
4
+ export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.cjs';
5
5
  export { SafeTransactionRequest } from './safe.cjs';
6
- export { chainRegistry } from '@rhinestone/shared-configs';
7
6
  import 'react/jsx-runtime';
8
7
  import 'viem';
9
8
  import 'viem/chains';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  export { DepositModal } from './deposit.js';
2
2
  export { WithdrawModal } from './withdraw.js';
3
3
  export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, c as DepositModalProps, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, g as WithdrawFailedEventData, h as WithdrawModalProps, i as WithdrawSubmittedEventData } from './types-CgXyx46m.js';
4
- export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
4
+ export { CHAIN_BY_ID, DEFAULT_BACKEND_URL, DEFAULT_SIGNER_ADDRESS, NATIVE_TOKEN_ADDRESS, SOURCE_CHAINS, SUPPORTED_CHAINS, chainRegistry, findChainIdForToken, getChainBadge, getChainIcon, getChainId, getChainName, getChainObject, getExplorerName, getExplorerTxUrl, getExplorerUrl, getSupportedChainIds, getSupportedTargetTokens, getSupportedTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain } from './constants.js';
5
5
  export { SafeTransactionRequest } from './safe.js';
6
- export { chainRegistry } from '@rhinestone/shared-configs';
7
6
  import 'react/jsx-runtime';
8
7
  import 'viem';
9
8
  import 'viem/chains';
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-YXTWMYHK.mjs";
3
+ } from "./chunk-XTTTHW3W.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-XF7M4TTT.mjs";
7
- import "./chunk-RQSAANC3.mjs";
6
+ } from "./chunk-K6YG3I6O.mjs";
7
+ import "./chunk-N6T4TKXI.mjs";
8
8
  import {
9
9
  CHAIN_BY_ID,
10
10
  DEFAULT_BACKEND_URL,
@@ -33,7 +33,7 @@ import {
33
33
  getUsdcAddress,
34
34
  getUsdcDecimals,
35
35
  isSupportedTokenAddressForChain
36
- } from "./chunk-A6QLADED.mjs";
36
+ } from "./chunk-CSQRKM4Y.mjs";
37
37
  export {
38
38
  CHAIN_BY_ID,
39
39
  DEFAULT_BACKEND_URL,
package/dist/reown.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXJ4G6RO6cjs = require('./chunk-XJ4G6RO6.cjs');
3
+ var _chunk5QJNOPNFcjs = require('./chunk-5QJNOPNF.cjs');
4
4
 
5
5
 
6
- var _chunkLP6DQCKVcjs = require('./chunk-LP6DQCKV.cjs');
7
- require('./chunk-VW3QQWEL.cjs');
8
- require('./chunk-CEIWN53N.cjs');
6
+ var _chunkCPIQJR47cjs = require('./chunk-CPIQJR47.cjs');
7
+ require('./chunk-7ZCUANBT.cjs');
8
+ require('./chunk-DLYVHOME.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.DepositModal = _chunkXJ4G6RO6cjs.DepositModal; exports.WithdrawModal = _chunkLP6DQCKVcjs.WithdrawModal;
12
+ exports.DepositModal = _chunk5QJNOPNFcjs.DepositModal; exports.WithdrawModal = _chunkCPIQJR47cjs.WithdrawModal;
package/dist/reown.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-YXTWMYHK.mjs";
3
+ } from "./chunk-XTTTHW3W.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-XF7M4TTT.mjs";
7
- import "./chunk-RQSAANC3.mjs";
8
- import "./chunk-A6QLADED.mjs";
6
+ } from "./chunk-K6YG3I6O.mjs";
7
+ import "./chunk-N6T4TKXI.mjs";
8
+ import "./chunk-CSQRKM4Y.mjs";
9
9
  export {
10
10
  DepositModal,
11
11
  WithdrawModal