@rhinestone/deposit-modal 0.1.28 → 0.1.30
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-FF4YU5VV.mjs → DepositModalReown-OHTRNISJ.mjs} +3 -3
- package/dist/{DepositModalReown-6IXFIXR6.cjs → DepositModalReown-ZD3ROLZG.cjs} +4 -4
- package/dist/{WithdrawModalReown-LIYQG2BW.mjs → WithdrawModalReown-IJAMIPSY.mjs} +3 -3
- package/dist/{WithdrawModalReown-GMIE6AWA.cjs → WithdrawModalReown-SVZQKH2X.cjs} +4 -4
- package/dist/{chunk-YXTWMYHK.mjs → chunk-BOKLFGNS.mjs} +94 -55
- package/dist/{chunk-RQSAANC3.mjs → chunk-CIAKCO7G.mjs} +17 -20
- package/dist/{chunk-LP6DQCKV.cjs → chunk-K4YSUWIT.cjs} +54 -54
- package/dist/{chunk-VW3QQWEL.cjs → chunk-KIRDZLOS.cjs} +55 -58
- package/dist/{chunk-XF7M4TTT.mjs → chunk-S76PY7GZ.mjs} +3 -3
- package/dist/{chunk-A6QLADED.mjs → chunk-VL47TLTE.mjs} +128 -3
- package/dist/{chunk-CEIWN53N.cjs → chunk-WB3ZJJBH.cjs} +135 -10
- package/dist/{chunk-XJ4G6RO6.cjs → chunk-WDDONQLV.cjs} +190 -151
- package/dist/constants.cjs +4 -2
- package/dist/constants.d.cts +12 -2
- package/dist/constants.d.ts +12 -2
- package/dist/constants.mjs +3 -1
- package/dist/deposit.cjs +4 -4
- package/dist/deposit.mjs +3 -3
- package/dist/index.cjs +7 -5
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +6 -4
- package/dist/reown.cjs +5 -5
- package/dist/reown.mjs +4 -4
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.mjs +3 -3
- package/package.json +56 -9
package/dist/constants.cjs
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
|
|
30
29
|
|
|
30
|
+
var _chunkWB3ZJJBHcjs = require('./chunk-WB3ZJJBH.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -55,4 +55,6 @@ var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
exports.CHAIN_BY_ID = _chunkWB3ZJJBHcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkWB3ZJJBHcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkWB3ZJJBHcjs.DEFAULT_SIGNER_ADDRESS; exports.NATIVE_TOKEN_ADDRESS = _chunkWB3ZJJBHcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkWB3ZJJBHcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkWB3ZJJBHcjs.SUPPORTED_CHAINS; exports.chainRegistry = _chunkWB3ZJJBHcjs.chainRegistry; exports.findChainIdForToken = _chunkWB3ZJJBHcjs.findChainIdForToken; exports.getChainBadge = _chunkWB3ZJJBHcjs.getChainBadge; exports.getChainIcon = _chunkWB3ZJJBHcjs.getChainIcon; exports.getChainId = _chunkWB3ZJJBHcjs.getChainId; exports.getChainName = _chunkWB3ZJJBHcjs.getChainName; exports.getChainObject = _chunkWB3ZJJBHcjs.getChainObject; exports.getExplorerName = _chunkWB3ZJJBHcjs.getExplorerName; exports.getExplorerTxUrl = _chunkWB3ZJJBHcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkWB3ZJJBHcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkWB3ZJJBHcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkWB3ZJJBHcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkWB3ZJJBHcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkWB3ZJJBHcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkWB3ZJJBHcjs.getTokenAddress; exports.getTokenDecimals = _chunkWB3ZJJBHcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkWB3ZJJBHcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkWB3ZJJBHcjs.getTokenIcon; exports.getTokenSymbol = _chunkWB3ZJJBHcjs.getTokenSymbol; exports.getUsdcAddress = _chunkWB3ZJJBHcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkWB3ZJJBHcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkWB3ZJJBHcjs.isSupportedTokenAddressForChain;
|
package/dist/constants.d.cts
CHANGED
|
@@ -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;
|
|
@@ -19,6 +28,7 @@ declare function getUsdcAddress(chainId: number): Address | undefined;
|
|
|
19
28
|
declare function getUsdcDecimals(chainId: number): number;
|
|
20
29
|
declare function getTokenAddress(symbol: string, chainId: number): Address | undefined;
|
|
21
30
|
declare function getTokenDecimals(symbol: string, chainId: number): number;
|
|
31
|
+
declare function getTargetTokenSymbolsForChain(chainId: number): string[];
|
|
22
32
|
declare function getSupportedTokenSymbolsForChain(chainId: number): string[];
|
|
23
33
|
declare function getSupportedChainIds(): number[];
|
|
24
34
|
declare function isSupportedTokenAddressForChain(token: Address, chainId: number): boolean;
|
|
@@ -38,4 +48,4 @@ declare function getExplorerName(chainId: number): string;
|
|
|
38
48
|
declare function getChainIcon(chainId: number): string | undefined;
|
|
39
49
|
declare function getTokenIcon(symbol: string): string | undefined;
|
|
40
50
|
|
|
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 };
|
|
51
|
+
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, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain };
|
package/dist/constants.d.ts
CHANGED
|
@@ -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;
|
|
@@ -19,6 +28,7 @@ declare function getUsdcAddress(chainId: number): Address | undefined;
|
|
|
19
28
|
declare function getUsdcDecimals(chainId: number): number;
|
|
20
29
|
declare function getTokenAddress(symbol: string, chainId: number): Address | undefined;
|
|
21
30
|
declare function getTokenDecimals(symbol: string, chainId: number): number;
|
|
31
|
+
declare function getTargetTokenSymbolsForChain(chainId: number): string[];
|
|
22
32
|
declare function getSupportedTokenSymbolsForChain(chainId: number): string[];
|
|
23
33
|
declare function getSupportedChainIds(): number[];
|
|
24
34
|
declare function isSupportedTokenAddressForChain(token: Address, chainId: number): boolean;
|
|
@@ -38,4 +48,4 @@ declare function getExplorerName(chainId: number): string;
|
|
|
38
48
|
declare function getChainIcon(chainId: number): string | undefined;
|
|
39
49
|
declare function getTokenIcon(symbol: string): string | undefined;
|
|
40
50
|
|
|
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 };
|
|
51
|
+
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, getTargetTokenSymbolsForChain, getTokenAddress, getTokenDecimals, getTokenDecimalsByAddress, getTokenIcon, getTokenSymbol, getUsdcAddress, getUsdcDecimals, isSupportedTokenAddressForChain };
|
package/dist/constants.mjs
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
getSupportedChainIds,
|
|
19
19
|
getSupportedTargetTokens,
|
|
20
20
|
getSupportedTokenSymbolsForChain,
|
|
21
|
+
getTargetTokenSymbolsForChain,
|
|
21
22
|
getTokenAddress,
|
|
22
23
|
getTokenDecimals,
|
|
23
24
|
getTokenDecimalsByAddress,
|
|
@@ -26,7 +27,7 @@ import {
|
|
|
26
27
|
getUsdcAddress,
|
|
27
28
|
getUsdcDecimals,
|
|
28
29
|
isSupportedTokenAddressForChain
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VL47TLTE.mjs";
|
|
30
31
|
export {
|
|
31
32
|
CHAIN_BY_ID,
|
|
32
33
|
DEFAULT_BACKEND_URL,
|
|
@@ -47,6 +48,7 @@ export {
|
|
|
47
48
|
getSupportedChainIds,
|
|
48
49
|
getSupportedTargetTokens,
|
|
49
50
|
getSupportedTokenSymbolsForChain,
|
|
51
|
+
getTargetTokenSymbolsForChain,
|
|
50
52
|
getTokenAddress,
|
|
51
53
|
getTokenDecimals,
|
|
52
54
|
getTokenDecimalsByAddress,
|
package/dist/deposit.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkWDDONQLVcjs = require('./chunk-WDDONQLV.cjs');
|
|
4
|
+
require('./chunk-KIRDZLOS.cjs');
|
|
5
|
+
require('./chunk-WB3ZJJBH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.DepositModal =
|
|
8
|
+
exports.DepositModal = _chunkWDDONQLVcjs.DepositModal;
|
package/dist/deposit.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWDDONQLVcjs = require('./chunk-WDDONQLV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkK4YSUWITcjs = require('./chunk-K4YSUWIT.cjs');
|
|
7
|
+
require('./chunk-KIRDZLOS.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -33,8 +33,8 @@ require('./chunk-VW3QQWEL.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
|
|
37
36
|
|
|
37
|
+
var _chunkWB3ZJJBHcjs = require('./chunk-WB3ZJJBH.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -64,4 +64,6 @@ var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
exports.CHAIN_BY_ID = _chunkWB3ZJJBHcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkWB3ZJJBHcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkWB3ZJJBHcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkWDDONQLVcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkWB3ZJJBHcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkWB3ZJJBHcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkWB3ZJJBHcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkK4YSUWITcjs.WithdrawModal; exports.chainRegistry = _chunkWB3ZJJBHcjs.chainRegistry; exports.findChainIdForToken = _chunkWB3ZJJBHcjs.findChainIdForToken; exports.getChainBadge = _chunkWB3ZJJBHcjs.getChainBadge; exports.getChainIcon = _chunkWB3ZJJBHcjs.getChainIcon; exports.getChainId = _chunkWB3ZJJBHcjs.getChainId; exports.getChainName = _chunkWB3ZJJBHcjs.getChainName; exports.getChainObject = _chunkWB3ZJJBHcjs.getChainObject; exports.getExplorerName = _chunkWB3ZJJBHcjs.getExplorerName; exports.getExplorerTxUrl = _chunkWB3ZJJBHcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkWB3ZJJBHcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkWB3ZJJBHcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkWB3ZJJBHcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkWB3ZJJBHcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkWB3ZJJBHcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkWB3ZJJBHcjs.getTokenAddress; exports.getTokenDecimals = _chunkWB3ZJJBHcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkWB3ZJJBHcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkWB3ZJJBHcjs.getTokenIcon; exports.getTokenSymbol = _chunkWB3ZJJBHcjs.getTokenSymbol; exports.getUsdcAddress = _chunkWB3ZJJBHcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkWB3ZJJBHcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkWB3ZJJBHcjs.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, getTargetTokenSymbolsForChain, 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, getTargetTokenSymbolsForChain, 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-
|
|
3
|
+
} from "./chunk-BOKLFGNS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-S76PY7GZ.mjs";
|
|
7
|
+
import "./chunk-CIAKCO7G.mjs";
|
|
8
8
|
import {
|
|
9
9
|
CHAIN_BY_ID,
|
|
10
10
|
DEFAULT_BACKEND_URL,
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
getSupportedChainIds,
|
|
26
26
|
getSupportedTargetTokens,
|
|
27
27
|
getSupportedTokenSymbolsForChain,
|
|
28
|
+
getTargetTokenSymbolsForChain,
|
|
28
29
|
getTokenAddress,
|
|
29
30
|
getTokenDecimals,
|
|
30
31
|
getTokenDecimalsByAddress,
|
|
@@ -33,7 +34,7 @@ import {
|
|
|
33
34
|
getUsdcAddress,
|
|
34
35
|
getUsdcDecimals,
|
|
35
36
|
isSupportedTokenAddressForChain
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VL47TLTE.mjs";
|
|
37
38
|
export {
|
|
38
39
|
CHAIN_BY_ID,
|
|
39
40
|
DEFAULT_BACKEND_URL,
|
|
@@ -56,6 +57,7 @@ export {
|
|
|
56
57
|
getSupportedChainIds,
|
|
57
58
|
getSupportedTargetTokens,
|
|
58
59
|
getSupportedTokenSymbolsForChain,
|
|
60
|
+
getTargetTokenSymbolsForChain,
|
|
59
61
|
getTokenAddress,
|
|
60
62
|
getTokenDecimals,
|
|
61
63
|
getTokenDecimalsByAddress,
|
package/dist/reown.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWDDONQLVcjs = require('./chunk-WDDONQLV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
6
|
+
var _chunkK4YSUWITcjs = require('./chunk-K4YSUWIT.cjs');
|
|
7
|
+
require('./chunk-KIRDZLOS.cjs');
|
|
8
|
+
require('./chunk-WB3ZJJBH.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.DepositModal =
|
|
12
|
+
exports.DepositModal = _chunkWDDONQLVcjs.DepositModal; exports.WithdrawModal = _chunkK4YSUWITcjs.WithdrawModal;
|
package/dist/reown.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BOKLFGNS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
WithdrawModal
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-S76PY7GZ.mjs";
|
|
7
|
+
import "./chunk-CIAKCO7G.mjs";
|
|
8
|
+
import "./chunk-VL47TLTE.mjs";
|
|
9
9
|
export {
|
|
10
10
|
DepositModal,
|
|
11
11
|
WithdrawModal
|
package/dist/withdraw.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkK4YSUWITcjs = require('./chunk-K4YSUWIT.cjs');
|
|
4
|
+
require('./chunk-KIRDZLOS.cjs');
|
|
5
|
+
require('./chunk-WB3ZJJBH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.WithdrawModal =
|
|
8
|
+
exports.WithdrawModal = _chunkK4YSUWITcjs.WithdrawModal;
|
package/dist/withdraw.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhinestone/deposit-modal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "React modal component for Rhinestone cross-chain deposits",
|
|
5
5
|
"author": "Rhinestone <dev@rhinestone.wtf>",
|
|
6
6
|
"bugs": {
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"*.css"
|
|
55
55
|
],
|
|
56
56
|
"scripts": {
|
|
57
|
+
"size": "size-limit",
|
|
57
58
|
"build": "tsup && bun run scripts/postbuild.ts",
|
|
58
59
|
"clean": "rm -rf dist",
|
|
59
60
|
"typecheck": "tsc --noEmit",
|
|
@@ -62,26 +63,72 @@
|
|
|
62
63
|
"peerDependencies": {
|
|
63
64
|
"react": ">=18",
|
|
64
65
|
"react-dom": ">=18",
|
|
65
|
-
"viem": ">=2"
|
|
66
|
+
"viem": ">=2",
|
|
67
|
+
"wagmi": ">=3",
|
|
68
|
+
"@reown/appkit": ">=1",
|
|
69
|
+
"@reown/appkit-adapter-wagmi": ">=1",
|
|
70
|
+
"@tanstack/react-query": ">=5"
|
|
66
71
|
},
|
|
67
72
|
"dependencies": {
|
|
68
|
-
"
|
|
69
|
-
"@reown/appkit": "^1.8.17",
|
|
70
|
-
"@reown/appkit-adapter-wagmi": "^1.8.17",
|
|
71
|
-
"qrcode-generator": "^2.0.4",
|
|
72
|
-
"wagmi": "^3.4.2",
|
|
73
|
-
"@tanstack/react-query": "^5.0.0"
|
|
73
|
+
"qrcode-generator": "^2.0.4"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
+
"@reown/appkit": "^1.8.17",
|
|
77
|
+
"@reown/appkit-adapter-wagmi": "^1.8.17",
|
|
78
|
+
"@size-limit/preset-small-lib": "^12.0.0",
|
|
79
|
+
"@tanstack/react-query": "^5.0.0",
|
|
76
80
|
"@types/react": "^19.0.0",
|
|
77
81
|
"@types/react-dom": "^19.0.0",
|
|
78
82
|
"bun-types": "^1.3.8",
|
|
79
83
|
"react": "^19.0.0",
|
|
80
84
|
"react-dom": "^19.0.0",
|
|
85
|
+
"size-limit": "^12.0.0",
|
|
81
86
|
"tsup": "^8.0.0",
|
|
82
87
|
"typescript": "^5.5.0",
|
|
83
|
-
"viem": "^2.0.0"
|
|
88
|
+
"viem": "^2.0.0",
|
|
89
|
+
"wagmi": "^3.4.2"
|
|
84
90
|
},
|
|
91
|
+
"size-limit": [
|
|
92
|
+
{
|
|
93
|
+
"name": "Total Bundle (Everything)",
|
|
94
|
+
"path": "dist/index.mjs",
|
|
95
|
+
"limit": "50 kB",
|
|
96
|
+
"ignore": [
|
|
97
|
+
"react",
|
|
98
|
+
"react-dom",
|
|
99
|
+
"viem",
|
|
100
|
+
"wagmi",
|
|
101
|
+
"@tanstack/react-query",
|
|
102
|
+
"@reown/appkit",
|
|
103
|
+
"@reown/appkit-adapter-wagmi",
|
|
104
|
+
"@walletconnect/ethereum-provider",
|
|
105
|
+
"@coinbase/wallet-sdk",
|
|
106
|
+
"@metamask/sdk",
|
|
107
|
+
"porto",
|
|
108
|
+
"porto/internal"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "Deposit & Withdraw Modals Only",
|
|
113
|
+
"path": "dist/index.mjs",
|
|
114
|
+
"import": "{ DepositModal, WithdrawModal }",
|
|
115
|
+
"limit": "50 kB",
|
|
116
|
+
"ignore": [
|
|
117
|
+
"react",
|
|
118
|
+
"react-dom",
|
|
119
|
+
"viem",
|
|
120
|
+
"wagmi",
|
|
121
|
+
"@tanstack/react-query",
|
|
122
|
+
"@reown/appkit",
|
|
123
|
+
"@reown/appkit-adapter-wagmi",
|
|
124
|
+
"@walletconnect/ethereum-provider",
|
|
125
|
+
"@coinbase/wallet-sdk",
|
|
126
|
+
"@metamask/sdk",
|
|
127
|
+
"porto",
|
|
128
|
+
"porto/internal"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
],
|
|
85
132
|
"keywords": [
|
|
86
133
|
"rhinestone",
|
|
87
134
|
"deposit",
|