@rhinestone/deposit-modal 0.1.21 → 0.1.23
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 +92 -67
- package/dist/DepositModalReown-324WTBDE.cjs +33 -0
- package/dist/DepositModalReown-YTWIR7A4.mjs +33 -0
- package/dist/WithdrawModalReown-ICP3DH6Q.mjs +33 -0
- package/dist/WithdrawModalReown-ZNTE2G6W.cjs +33 -0
- package/dist/chunk-6VJ2ZTNQ.cjs +90 -0
- package/dist/chunk-A6QLADED.mjs +304 -0
- package/dist/chunk-BO745KAB.cjs +1648 -0
- package/dist/chunk-CEIWN53N.cjs +304 -0
- package/dist/chunk-J7UK4L5T.mjs +1524 -0
- package/dist/chunk-JBT2ZV3Q.mjs +1648 -0
- package/dist/chunk-LBEP3A2Z.mjs +90 -0
- package/dist/chunk-N2LJOFT2.mjs +2346 -0
- package/dist/chunk-V6HZJZOL.cjs +1524 -0
- package/dist/chunk-W7ZYJB2X.cjs +2346 -0
- package/dist/constants.cjs +58 -0
- package/dist/constants.d.cts +41 -0
- package/dist/constants.d.ts +41 -0
- package/dist/constants.mjs +58 -0
- package/dist/deposit.cjs +8 -0
- package/dist/deposit.d.cts +12 -0
- package/dist/deposit.d.ts +12 -0
- package/dist/deposit.mjs +8 -0
- package/dist/index.cjs +36 -5976
- package/dist/index.d.cts +8 -220
- package/dist/index.d.ts +8 -220
- package/dist/index.mjs +33 -5946
- package/dist/safe.cjs +1 -0
- package/dist/safe.d.cts +62 -0
- package/dist/safe.d.ts +62 -0
- package/dist/safe.mjs +0 -0
- package/dist/types-D_xeOU8G.d.cts +144 -0
- package/dist/types-DnGF9RJJ.d.ts +144 -0
- package/dist/withdraw.cjs +8 -0
- package/dist/withdraw.d.cts +12 -0
- package/dist/withdraw.d.ts +12 -0
- package/dist/withdraw.mjs +8 -0
- package/package.json +26 -5
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
var _chunkCEIWN53Ncjs = require('./chunk-CEIWN53N.cjs');
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
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;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Chain } from 'viem/chains';
|
|
2
|
+
import { Address } from 'viem';
|
|
3
|
+
export { chainRegistry } from '@rhinestone/shared-configs';
|
|
4
|
+
|
|
5
|
+
declare const DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
|
|
6
|
+
declare const DEFAULT_SIGNER_ADDRESS: Address;
|
|
7
|
+
declare const NATIVE_TOKEN_ADDRESS: Address;
|
|
8
|
+
declare const CHAIN_BY_ID: Record<number, Chain>;
|
|
9
|
+
declare const SOURCE_CHAINS: Chain[];
|
|
10
|
+
declare const SUPPORTED_CHAINS: Chain[];
|
|
11
|
+
type SupportedTokenOption = {
|
|
12
|
+
symbol: string;
|
|
13
|
+
address: Address;
|
|
14
|
+
decimals: number;
|
|
15
|
+
};
|
|
16
|
+
declare function getChainId(chain: Chain | number): number;
|
|
17
|
+
declare function getChainObject(chain: Chain | number): Chain | undefined;
|
|
18
|
+
declare function getUsdcAddress(chainId: number): Address | undefined;
|
|
19
|
+
declare function getUsdcDecimals(chainId: number): number;
|
|
20
|
+
declare function getTokenAddress(symbol: string, chainId: number): Address | undefined;
|
|
21
|
+
declare function getTokenDecimals(symbol: string, chainId: number): number;
|
|
22
|
+
declare function getSupportedTokenSymbolsForChain(chainId: number): string[];
|
|
23
|
+
declare function getSupportedChainIds(): number[];
|
|
24
|
+
declare function isSupportedTokenAddressForChain(token: Address, chainId: number): boolean;
|
|
25
|
+
declare function getSupportedTargetTokens(chainId: number): SupportedTokenOption[];
|
|
26
|
+
declare function getTokenDecimalsByAddress(token: Address, chainId?: number): number;
|
|
27
|
+
declare function findChainIdForToken(address: Address): number | undefined;
|
|
28
|
+
declare function getTokenSymbol(token: Address, chainId?: number): string;
|
|
29
|
+
declare function getChainName(chainId: number): string;
|
|
30
|
+
declare function getChainBadge(chainId: number): {
|
|
31
|
+
shortLabel: string;
|
|
32
|
+
color: string;
|
|
33
|
+
bg: string;
|
|
34
|
+
};
|
|
35
|
+
declare function getExplorerUrl(chainId: number): string | undefined;
|
|
36
|
+
declare function getExplorerTxUrl(chainId: number, txHash: string): string | undefined;
|
|
37
|
+
declare function getExplorerName(chainId: number): string;
|
|
38
|
+
declare function getChainIcon(chainId: number): string | undefined;
|
|
39
|
+
declare function getTokenIcon(symbol: string): string | undefined;
|
|
40
|
+
|
|
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 };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Chain } from 'viem/chains';
|
|
2
|
+
import { Address } from 'viem';
|
|
3
|
+
export { chainRegistry } from '@rhinestone/shared-configs';
|
|
4
|
+
|
|
5
|
+
declare const DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
|
|
6
|
+
declare const DEFAULT_SIGNER_ADDRESS: Address;
|
|
7
|
+
declare const NATIVE_TOKEN_ADDRESS: Address;
|
|
8
|
+
declare const CHAIN_BY_ID: Record<number, Chain>;
|
|
9
|
+
declare const SOURCE_CHAINS: Chain[];
|
|
10
|
+
declare const SUPPORTED_CHAINS: Chain[];
|
|
11
|
+
type SupportedTokenOption = {
|
|
12
|
+
symbol: string;
|
|
13
|
+
address: Address;
|
|
14
|
+
decimals: number;
|
|
15
|
+
};
|
|
16
|
+
declare function getChainId(chain: Chain | number): number;
|
|
17
|
+
declare function getChainObject(chain: Chain | number): Chain | undefined;
|
|
18
|
+
declare function getUsdcAddress(chainId: number): Address | undefined;
|
|
19
|
+
declare function getUsdcDecimals(chainId: number): number;
|
|
20
|
+
declare function getTokenAddress(symbol: string, chainId: number): Address | undefined;
|
|
21
|
+
declare function getTokenDecimals(symbol: string, chainId: number): number;
|
|
22
|
+
declare function getSupportedTokenSymbolsForChain(chainId: number): string[];
|
|
23
|
+
declare function getSupportedChainIds(): number[];
|
|
24
|
+
declare function isSupportedTokenAddressForChain(token: Address, chainId: number): boolean;
|
|
25
|
+
declare function getSupportedTargetTokens(chainId: number): SupportedTokenOption[];
|
|
26
|
+
declare function getTokenDecimalsByAddress(token: Address, chainId?: number): number;
|
|
27
|
+
declare function findChainIdForToken(address: Address): number | undefined;
|
|
28
|
+
declare function getTokenSymbol(token: Address, chainId?: number): string;
|
|
29
|
+
declare function getChainName(chainId: number): string;
|
|
30
|
+
declare function getChainBadge(chainId: number): {
|
|
31
|
+
shortLabel: string;
|
|
32
|
+
color: string;
|
|
33
|
+
bg: string;
|
|
34
|
+
};
|
|
35
|
+
declare function getExplorerUrl(chainId: number): string | undefined;
|
|
36
|
+
declare function getExplorerTxUrl(chainId: number, txHash: string): string | undefined;
|
|
37
|
+
declare function getExplorerName(chainId: number): string;
|
|
38
|
+
declare function getChainIcon(chainId: number): string | undefined;
|
|
39
|
+
declare function getTokenIcon(symbol: string): string | undefined;
|
|
40
|
+
|
|
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 };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CHAIN_BY_ID,
|
|
3
|
+
DEFAULT_BACKEND_URL,
|
|
4
|
+
DEFAULT_SIGNER_ADDRESS,
|
|
5
|
+
NATIVE_TOKEN_ADDRESS,
|
|
6
|
+
SOURCE_CHAINS,
|
|
7
|
+
SUPPORTED_CHAINS,
|
|
8
|
+
chainRegistry,
|
|
9
|
+
findChainIdForToken,
|
|
10
|
+
getChainBadge,
|
|
11
|
+
getChainIcon,
|
|
12
|
+
getChainId,
|
|
13
|
+
getChainName,
|
|
14
|
+
getChainObject,
|
|
15
|
+
getExplorerName,
|
|
16
|
+
getExplorerTxUrl,
|
|
17
|
+
getExplorerUrl,
|
|
18
|
+
getSupportedChainIds,
|
|
19
|
+
getSupportedTargetTokens,
|
|
20
|
+
getSupportedTokenSymbolsForChain,
|
|
21
|
+
getTokenAddress,
|
|
22
|
+
getTokenDecimals,
|
|
23
|
+
getTokenDecimalsByAddress,
|
|
24
|
+
getTokenIcon,
|
|
25
|
+
getTokenSymbol,
|
|
26
|
+
getUsdcAddress,
|
|
27
|
+
getUsdcDecimals,
|
|
28
|
+
isSupportedTokenAddressForChain
|
|
29
|
+
} from "./chunk-A6QLADED.mjs";
|
|
30
|
+
export {
|
|
31
|
+
CHAIN_BY_ID,
|
|
32
|
+
DEFAULT_BACKEND_URL,
|
|
33
|
+
DEFAULT_SIGNER_ADDRESS,
|
|
34
|
+
NATIVE_TOKEN_ADDRESS,
|
|
35
|
+
SOURCE_CHAINS,
|
|
36
|
+
SUPPORTED_CHAINS,
|
|
37
|
+
chainRegistry,
|
|
38
|
+
findChainIdForToken,
|
|
39
|
+
getChainBadge,
|
|
40
|
+
getChainIcon,
|
|
41
|
+
getChainId,
|
|
42
|
+
getChainName,
|
|
43
|
+
getChainObject,
|
|
44
|
+
getExplorerName,
|
|
45
|
+
getExplorerTxUrl,
|
|
46
|
+
getExplorerUrl,
|
|
47
|
+
getSupportedChainIds,
|
|
48
|
+
getSupportedTargetTokens,
|
|
49
|
+
getSupportedTokenSymbolsForChain,
|
|
50
|
+
getTokenAddress,
|
|
51
|
+
getTokenDecimals,
|
|
52
|
+
getTokenDecimalsByAddress,
|
|
53
|
+
getTokenIcon,
|
|
54
|
+
getTokenSymbol,
|
|
55
|
+
getUsdcAddress,
|
|
56
|
+
getUsdcDecimals,
|
|
57
|
+
isSupportedTokenAddressForChain
|
|
58
|
+
};
|
package/dist/deposit.cjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { c as DepositModalProps } from './types-D_xeOU8G.cjs';
|
|
3
|
+
export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData } from './types-D_xeOU8G.cjs';
|
|
4
|
+
import 'viem';
|
|
5
|
+
import './safe.cjs';
|
|
6
|
+
|
|
7
|
+
declare function DepositModal(props: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare namespace DepositModal {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { DepositModal, DepositModalProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { c as DepositModalProps } from './types-DnGF9RJJ.js';
|
|
3
|
+
export { A as AssetOption, C as ConnectedEventData, D as DepositCompleteEventData, a as DepositFailedEventData, b as DepositModalBranding, d as DepositModalTheme, e as DepositModalUIConfig, f as DepositSubmittedEventData, E as ErrorEventData } from './types-DnGF9RJJ.js';
|
|
4
|
+
import 'viem';
|
|
5
|
+
import './safe.js';
|
|
6
|
+
|
|
7
|
+
declare function DepositModal(props: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare namespace DepositModal {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { DepositModal, DepositModalProps };
|