@rhinestone/deposit-modal 0.1.20 → 0.1.22
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 -5953
- package/dist/index.d.cts +8 -220
- package/dist/index.d.ts +8 -220
- package/dist/index.mjs +33 -5923
- 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
package/dist/safe.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/safe.d.cts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Address, Hex } from 'viem';
|
|
2
|
+
|
|
3
|
+
interface SafeTransactionRequest {
|
|
4
|
+
chainId: number;
|
|
5
|
+
safeAddress: Address;
|
|
6
|
+
safeTxHash: Hex;
|
|
7
|
+
typedData: {
|
|
8
|
+
domain: {
|
|
9
|
+
chainId: number;
|
|
10
|
+
verifyingContract: Address;
|
|
11
|
+
};
|
|
12
|
+
types: typeof SAFE_TX_TYPES;
|
|
13
|
+
primaryType: "SafeTx";
|
|
14
|
+
message: {
|
|
15
|
+
to: Address;
|
|
16
|
+
value: bigint;
|
|
17
|
+
data: Hex;
|
|
18
|
+
operation: number;
|
|
19
|
+
safeTxGas: bigint;
|
|
20
|
+
baseGas: bigint;
|
|
21
|
+
gasPrice: bigint;
|
|
22
|
+
gasToken: Address;
|
|
23
|
+
refundReceiver: Address;
|
|
24
|
+
nonce: bigint;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const SAFE_TX_TYPES: {
|
|
29
|
+
readonly SafeTx: readonly [{
|
|
30
|
+
readonly name: "to";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "value";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "data";
|
|
37
|
+
readonly type: "bytes";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "operation";
|
|
40
|
+
readonly type: "uint8";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "safeTxGas";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "baseGas";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "gasPrice";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "gasToken";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "refundReceiver";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "nonce";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type { SafeTransactionRequest };
|
package/dist/safe.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Address, Hex } from 'viem';
|
|
2
|
+
|
|
3
|
+
interface SafeTransactionRequest {
|
|
4
|
+
chainId: number;
|
|
5
|
+
safeAddress: Address;
|
|
6
|
+
safeTxHash: Hex;
|
|
7
|
+
typedData: {
|
|
8
|
+
domain: {
|
|
9
|
+
chainId: number;
|
|
10
|
+
verifyingContract: Address;
|
|
11
|
+
};
|
|
12
|
+
types: typeof SAFE_TX_TYPES;
|
|
13
|
+
primaryType: "SafeTx";
|
|
14
|
+
message: {
|
|
15
|
+
to: Address;
|
|
16
|
+
value: bigint;
|
|
17
|
+
data: Hex;
|
|
18
|
+
operation: number;
|
|
19
|
+
safeTxGas: bigint;
|
|
20
|
+
baseGas: bigint;
|
|
21
|
+
gasPrice: bigint;
|
|
22
|
+
gasToken: Address;
|
|
23
|
+
refundReceiver: Address;
|
|
24
|
+
nonce: bigint;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const SAFE_TX_TYPES: {
|
|
29
|
+
readonly SafeTx: readonly [{
|
|
30
|
+
readonly name: "to";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "value";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "data";
|
|
37
|
+
readonly type: "bytes";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "operation";
|
|
40
|
+
readonly type: "uint8";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "safeTxGas";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "baseGas";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "gasPrice";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "gasToken";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "refundReceiver";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "nonce";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type { SafeTransactionRequest };
|
package/dist/safe.mjs
ADDED
|
File without changes
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { Address, Hex, WalletClient, PublicClient, Chain } from 'viem';
|
|
2
|
+
import { SafeTransactionRequest } from './safe.cjs';
|
|
3
|
+
|
|
4
|
+
interface DepositModalTheme {
|
|
5
|
+
mode?: "light" | "dark";
|
|
6
|
+
radius?: "none" | "sm" | "md" | "lg" | "full";
|
|
7
|
+
fontColor?: string;
|
|
8
|
+
iconColor?: string;
|
|
9
|
+
ctaColor?: string;
|
|
10
|
+
ctaHoverColor?: string;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
}
|
|
14
|
+
interface DepositModalUIConfig {
|
|
15
|
+
showLogo?: boolean;
|
|
16
|
+
showStepper?: boolean;
|
|
17
|
+
showBackButton?: boolean;
|
|
18
|
+
balanceTitle?: string;
|
|
19
|
+
maxDepositUsd?: number;
|
|
20
|
+
minDepositUsd?: number;
|
|
21
|
+
}
|
|
22
|
+
interface DepositModalBranding {
|
|
23
|
+
logoUrl?: string;
|
|
24
|
+
title?: string;
|
|
25
|
+
}
|
|
26
|
+
interface ConnectedEventData {
|
|
27
|
+
address: Address;
|
|
28
|
+
smartAccount: Address;
|
|
29
|
+
}
|
|
30
|
+
interface DepositSubmittedEventData {
|
|
31
|
+
txHash: Hex;
|
|
32
|
+
sourceChain: number;
|
|
33
|
+
amount: string;
|
|
34
|
+
}
|
|
35
|
+
interface DepositCompleteEventData {
|
|
36
|
+
txHash: Hex;
|
|
37
|
+
destinationTxHash?: Hex;
|
|
38
|
+
}
|
|
39
|
+
interface DepositFailedEventData {
|
|
40
|
+
txHash: Hex;
|
|
41
|
+
error?: string;
|
|
42
|
+
}
|
|
43
|
+
interface WithdrawSubmittedEventData {
|
|
44
|
+
txHash: Hex;
|
|
45
|
+
sourceChain: number;
|
|
46
|
+
amount: string;
|
|
47
|
+
safeAddress: Address;
|
|
48
|
+
}
|
|
49
|
+
interface WithdrawCompleteEventData {
|
|
50
|
+
txHash: Hex;
|
|
51
|
+
destinationTxHash?: Hex;
|
|
52
|
+
}
|
|
53
|
+
interface WithdrawFailedEventData {
|
|
54
|
+
txHash: Hex;
|
|
55
|
+
error?: string;
|
|
56
|
+
}
|
|
57
|
+
interface ErrorEventData {
|
|
58
|
+
message: string;
|
|
59
|
+
code?: string;
|
|
60
|
+
}
|
|
61
|
+
interface DepositModalProps {
|
|
62
|
+
dappWalletClient?: WalletClient | null;
|
|
63
|
+
dappPublicClient?: PublicClient | null;
|
|
64
|
+
dappAddress?: Address | null;
|
|
65
|
+
targetChain: Chain | number;
|
|
66
|
+
targetToken: Address;
|
|
67
|
+
isOpen: boolean;
|
|
68
|
+
onClose: () => void;
|
|
69
|
+
inline?: boolean;
|
|
70
|
+
sourceChain?: Chain | number;
|
|
71
|
+
sourceToken?: Address;
|
|
72
|
+
defaultAmount?: string;
|
|
73
|
+
recipient: Address;
|
|
74
|
+
backendUrl?: string;
|
|
75
|
+
rhinestoneApiKey?: string;
|
|
76
|
+
signerAddress?: Address;
|
|
77
|
+
sessionChainIds?: number[];
|
|
78
|
+
forceRegister?: boolean;
|
|
79
|
+
waitForFinalTx?: boolean;
|
|
80
|
+
reownAppId?: string;
|
|
81
|
+
onRequestConnect?: () => void;
|
|
82
|
+
connectButtonLabel?: string;
|
|
83
|
+
theme?: DepositModalTheme;
|
|
84
|
+
branding?: DepositModalBranding;
|
|
85
|
+
uiConfig?: DepositModalUIConfig;
|
|
86
|
+
className?: string;
|
|
87
|
+
onReady?: () => void;
|
|
88
|
+
onConnected?: (data: ConnectedEventData) => void;
|
|
89
|
+
onDepositSubmitted?: (data: DepositSubmittedEventData) => void;
|
|
90
|
+
onDepositComplete?: (data: DepositCompleteEventData) => void;
|
|
91
|
+
onDepositFailed?: (data: DepositFailedEventData) => void;
|
|
92
|
+
onError?: (data: ErrorEventData) => void;
|
|
93
|
+
debug?: boolean;
|
|
94
|
+
}
|
|
95
|
+
interface WithdrawModalProps {
|
|
96
|
+
dappWalletClient?: WalletClient | null;
|
|
97
|
+
dappPublicClient?: PublicClient | null;
|
|
98
|
+
dappAddress?: Address | null;
|
|
99
|
+
safeAddress: Address;
|
|
100
|
+
sourceChain: Chain | number;
|
|
101
|
+
sourceToken: Address;
|
|
102
|
+
targetChain: Chain | number;
|
|
103
|
+
targetToken: Address;
|
|
104
|
+
recipient?: Address;
|
|
105
|
+
defaultAmount?: string;
|
|
106
|
+
isOpen: boolean;
|
|
107
|
+
onClose: () => void;
|
|
108
|
+
inline?: boolean;
|
|
109
|
+
backendUrl?: string;
|
|
110
|
+
rhinestoneApiKey?: string;
|
|
111
|
+
signerAddress?: Address;
|
|
112
|
+
sessionChainIds?: number[];
|
|
113
|
+
forceRegister?: boolean;
|
|
114
|
+
waitForFinalTx?: boolean;
|
|
115
|
+
reownAppId?: string;
|
|
116
|
+
onRelayTransaction?: (request: SafeTransactionRequest) => Promise<{
|
|
117
|
+
txHash: Hex;
|
|
118
|
+
}>;
|
|
119
|
+
onRequestConnect?: () => void;
|
|
120
|
+
connectButtonLabel?: string;
|
|
121
|
+
theme?: DepositModalTheme;
|
|
122
|
+
branding?: DepositModalBranding;
|
|
123
|
+
uiConfig?: DepositModalUIConfig;
|
|
124
|
+
className?: string;
|
|
125
|
+
onReady?: () => void;
|
|
126
|
+
onConnected?: (data: ConnectedEventData) => void;
|
|
127
|
+
onWithdrawSubmitted?: (data: WithdrawSubmittedEventData) => void;
|
|
128
|
+
onWithdrawComplete?: (data: WithdrawCompleteEventData) => void;
|
|
129
|
+
onWithdrawFailed?: (data: WithdrawFailedEventData) => void;
|
|
130
|
+
onError?: (data: ErrorEventData) => void;
|
|
131
|
+
debug?: boolean;
|
|
132
|
+
}
|
|
133
|
+
interface AssetOption {
|
|
134
|
+
id: string;
|
|
135
|
+
chainId: number;
|
|
136
|
+
token: Address;
|
|
137
|
+
symbol: string;
|
|
138
|
+
name: string;
|
|
139
|
+
decimals: number;
|
|
140
|
+
balance?: string;
|
|
141
|
+
balanceUsd?: number;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type { AssetOption as A, ConnectedEventData as C, DepositCompleteEventData as D, ErrorEventData as E, WithdrawCompleteEventData as W, DepositFailedEventData as a, DepositModalBranding as b, DepositModalProps as c, DepositModalTheme as d, DepositModalUIConfig as e, DepositSubmittedEventData as f, WithdrawFailedEventData as g, WithdrawModalProps as h, WithdrawSubmittedEventData as i };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { Address, Hex, WalletClient, PublicClient, Chain } from 'viem';
|
|
2
|
+
import { SafeTransactionRequest } from './safe.js';
|
|
3
|
+
|
|
4
|
+
interface DepositModalTheme {
|
|
5
|
+
mode?: "light" | "dark";
|
|
6
|
+
radius?: "none" | "sm" | "md" | "lg" | "full";
|
|
7
|
+
fontColor?: string;
|
|
8
|
+
iconColor?: string;
|
|
9
|
+
ctaColor?: string;
|
|
10
|
+
ctaHoverColor?: string;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
}
|
|
14
|
+
interface DepositModalUIConfig {
|
|
15
|
+
showLogo?: boolean;
|
|
16
|
+
showStepper?: boolean;
|
|
17
|
+
showBackButton?: boolean;
|
|
18
|
+
balanceTitle?: string;
|
|
19
|
+
maxDepositUsd?: number;
|
|
20
|
+
minDepositUsd?: number;
|
|
21
|
+
}
|
|
22
|
+
interface DepositModalBranding {
|
|
23
|
+
logoUrl?: string;
|
|
24
|
+
title?: string;
|
|
25
|
+
}
|
|
26
|
+
interface ConnectedEventData {
|
|
27
|
+
address: Address;
|
|
28
|
+
smartAccount: Address;
|
|
29
|
+
}
|
|
30
|
+
interface DepositSubmittedEventData {
|
|
31
|
+
txHash: Hex;
|
|
32
|
+
sourceChain: number;
|
|
33
|
+
amount: string;
|
|
34
|
+
}
|
|
35
|
+
interface DepositCompleteEventData {
|
|
36
|
+
txHash: Hex;
|
|
37
|
+
destinationTxHash?: Hex;
|
|
38
|
+
}
|
|
39
|
+
interface DepositFailedEventData {
|
|
40
|
+
txHash: Hex;
|
|
41
|
+
error?: string;
|
|
42
|
+
}
|
|
43
|
+
interface WithdrawSubmittedEventData {
|
|
44
|
+
txHash: Hex;
|
|
45
|
+
sourceChain: number;
|
|
46
|
+
amount: string;
|
|
47
|
+
safeAddress: Address;
|
|
48
|
+
}
|
|
49
|
+
interface WithdrawCompleteEventData {
|
|
50
|
+
txHash: Hex;
|
|
51
|
+
destinationTxHash?: Hex;
|
|
52
|
+
}
|
|
53
|
+
interface WithdrawFailedEventData {
|
|
54
|
+
txHash: Hex;
|
|
55
|
+
error?: string;
|
|
56
|
+
}
|
|
57
|
+
interface ErrorEventData {
|
|
58
|
+
message: string;
|
|
59
|
+
code?: string;
|
|
60
|
+
}
|
|
61
|
+
interface DepositModalProps {
|
|
62
|
+
dappWalletClient?: WalletClient | null;
|
|
63
|
+
dappPublicClient?: PublicClient | null;
|
|
64
|
+
dappAddress?: Address | null;
|
|
65
|
+
targetChain: Chain | number;
|
|
66
|
+
targetToken: Address;
|
|
67
|
+
isOpen: boolean;
|
|
68
|
+
onClose: () => void;
|
|
69
|
+
inline?: boolean;
|
|
70
|
+
sourceChain?: Chain | number;
|
|
71
|
+
sourceToken?: Address;
|
|
72
|
+
defaultAmount?: string;
|
|
73
|
+
recipient: Address;
|
|
74
|
+
backendUrl?: string;
|
|
75
|
+
rhinestoneApiKey?: string;
|
|
76
|
+
signerAddress?: Address;
|
|
77
|
+
sessionChainIds?: number[];
|
|
78
|
+
forceRegister?: boolean;
|
|
79
|
+
waitForFinalTx?: boolean;
|
|
80
|
+
reownAppId?: string;
|
|
81
|
+
onRequestConnect?: () => void;
|
|
82
|
+
connectButtonLabel?: string;
|
|
83
|
+
theme?: DepositModalTheme;
|
|
84
|
+
branding?: DepositModalBranding;
|
|
85
|
+
uiConfig?: DepositModalUIConfig;
|
|
86
|
+
className?: string;
|
|
87
|
+
onReady?: () => void;
|
|
88
|
+
onConnected?: (data: ConnectedEventData) => void;
|
|
89
|
+
onDepositSubmitted?: (data: DepositSubmittedEventData) => void;
|
|
90
|
+
onDepositComplete?: (data: DepositCompleteEventData) => void;
|
|
91
|
+
onDepositFailed?: (data: DepositFailedEventData) => void;
|
|
92
|
+
onError?: (data: ErrorEventData) => void;
|
|
93
|
+
debug?: boolean;
|
|
94
|
+
}
|
|
95
|
+
interface WithdrawModalProps {
|
|
96
|
+
dappWalletClient?: WalletClient | null;
|
|
97
|
+
dappPublicClient?: PublicClient | null;
|
|
98
|
+
dappAddress?: Address | null;
|
|
99
|
+
safeAddress: Address;
|
|
100
|
+
sourceChain: Chain | number;
|
|
101
|
+
sourceToken: Address;
|
|
102
|
+
targetChain: Chain | number;
|
|
103
|
+
targetToken: Address;
|
|
104
|
+
recipient?: Address;
|
|
105
|
+
defaultAmount?: string;
|
|
106
|
+
isOpen: boolean;
|
|
107
|
+
onClose: () => void;
|
|
108
|
+
inline?: boolean;
|
|
109
|
+
backendUrl?: string;
|
|
110
|
+
rhinestoneApiKey?: string;
|
|
111
|
+
signerAddress?: Address;
|
|
112
|
+
sessionChainIds?: number[];
|
|
113
|
+
forceRegister?: boolean;
|
|
114
|
+
waitForFinalTx?: boolean;
|
|
115
|
+
reownAppId?: string;
|
|
116
|
+
onRelayTransaction?: (request: SafeTransactionRequest) => Promise<{
|
|
117
|
+
txHash: Hex;
|
|
118
|
+
}>;
|
|
119
|
+
onRequestConnect?: () => void;
|
|
120
|
+
connectButtonLabel?: string;
|
|
121
|
+
theme?: DepositModalTheme;
|
|
122
|
+
branding?: DepositModalBranding;
|
|
123
|
+
uiConfig?: DepositModalUIConfig;
|
|
124
|
+
className?: string;
|
|
125
|
+
onReady?: () => void;
|
|
126
|
+
onConnected?: (data: ConnectedEventData) => void;
|
|
127
|
+
onWithdrawSubmitted?: (data: WithdrawSubmittedEventData) => void;
|
|
128
|
+
onWithdrawComplete?: (data: WithdrawCompleteEventData) => void;
|
|
129
|
+
onWithdrawFailed?: (data: WithdrawFailedEventData) => void;
|
|
130
|
+
onError?: (data: ErrorEventData) => void;
|
|
131
|
+
debug?: boolean;
|
|
132
|
+
}
|
|
133
|
+
interface AssetOption {
|
|
134
|
+
id: string;
|
|
135
|
+
chainId: number;
|
|
136
|
+
token: Address;
|
|
137
|
+
symbol: string;
|
|
138
|
+
name: string;
|
|
139
|
+
decimals: number;
|
|
140
|
+
balance?: string;
|
|
141
|
+
balanceUsd?: number;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type { AssetOption as A, ConnectedEventData as C, DepositCompleteEventData as D, ErrorEventData as E, WithdrawCompleteEventData as W, DepositFailedEventData as a, DepositModalBranding as b, DepositModalProps as c, DepositModalTheme as d, DepositModalUIConfig as e, DepositSubmittedEventData as f, WithdrawFailedEventData as g, WithdrawModalProps as h, WithdrawSubmittedEventData as i };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkV6HZJZOLcjs = require('./chunk-V6HZJZOL.cjs');
|
|
4
|
+
require('./chunk-BO745KAB.cjs');
|
|
5
|
+
require('./chunk-CEIWN53N.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.WithdrawModal = _chunkV6HZJZOLcjs.WithdrawModal;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { h as WithdrawModalProps } from './types-D_xeOU8G.cjs';
|
|
3
|
+
export { A as AssetOption, C as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, g as WithdrawFailedEventData, i as WithdrawSubmittedEventData } from './types-D_xeOU8G.cjs';
|
|
4
|
+
export { SafeTransactionRequest } from './safe.cjs';
|
|
5
|
+
import 'viem';
|
|
6
|
+
|
|
7
|
+
declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare namespace WithdrawModal {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { WithdrawModal, WithdrawModalProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { h as WithdrawModalProps } from './types-DnGF9RJJ.js';
|
|
3
|
+
export { A as AssetOption, C as ConnectedEventData, E as ErrorEventData, W as WithdrawCompleteEventData, g as WithdrawFailedEventData, i as WithdrawSubmittedEventData } from './types-DnGF9RJJ.js';
|
|
4
|
+
export { SafeTransactionRequest } from './safe.js';
|
|
5
|
+
import 'viem';
|
|
6
|
+
|
|
7
|
+
declare function WithdrawModal(props: WithdrawModalProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare namespace WithdrawModal {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { WithdrawModal, WithdrawModalProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhinestone/deposit-modal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "React modal component for Rhinestone cross-chain deposits",
|
|
5
5
|
"author": "Rhinestone <dev@rhinestone.wtf>",
|
|
6
6
|
"bugs": {
|
|
@@ -16,6 +16,26 @@
|
|
|
16
16
|
"import": "./dist/index.mjs",
|
|
17
17
|
"require": "./dist/index.cjs"
|
|
18
18
|
},
|
|
19
|
+
"./deposit": {
|
|
20
|
+
"types": "./dist/deposit.d.ts",
|
|
21
|
+
"import": "./dist/deposit.mjs",
|
|
22
|
+
"require": "./dist/deposit.cjs"
|
|
23
|
+
},
|
|
24
|
+
"./withdraw": {
|
|
25
|
+
"types": "./dist/withdraw.d.ts",
|
|
26
|
+
"import": "./dist/withdraw.mjs",
|
|
27
|
+
"require": "./dist/withdraw.cjs"
|
|
28
|
+
},
|
|
29
|
+
"./safe": {
|
|
30
|
+
"types": "./dist/safe.d.ts",
|
|
31
|
+
"import": "./dist/safe.mjs",
|
|
32
|
+
"require": "./dist/safe.cjs"
|
|
33
|
+
},
|
|
34
|
+
"./constants": {
|
|
35
|
+
"types": "./dist/constants.d.ts",
|
|
36
|
+
"import": "./dist/constants.mjs",
|
|
37
|
+
"require": "./dist/constants.cjs"
|
|
38
|
+
},
|
|
19
39
|
"./styles.css": {
|
|
20
40
|
"types": "./dist/styles.d.ts",
|
|
21
41
|
"default": "./dist/styles.css"
|
|
@@ -36,7 +56,8 @@
|
|
|
36
56
|
},
|
|
37
57
|
"peerDependencies": {
|
|
38
58
|
"react": ">=18",
|
|
39
|
-
"react-dom": ">=18"
|
|
59
|
+
"react-dom": ">=18",
|
|
60
|
+
"viem": ">=2"
|
|
40
61
|
},
|
|
41
62
|
"dependencies": {
|
|
42
63
|
"@rhinestone/sdk": "^1.2.11",
|
|
@@ -45,8 +66,7 @@
|
|
|
45
66
|
"@reown/appkit-adapter-wagmi": "^1.8.17",
|
|
46
67
|
"qrcode-generator": "^2.0.4",
|
|
47
68
|
"wagmi": "^3.4.2",
|
|
48
|
-
"@tanstack/react-query": "^5.0.0"
|
|
49
|
-
"viem": "^2.0.0"
|
|
69
|
+
"@tanstack/react-query": "^5.0.0"
|
|
50
70
|
},
|
|
51
71
|
"devDependencies": {
|
|
52
72
|
"@types/react": "^19.0.0",
|
|
@@ -55,7 +75,8 @@
|
|
|
55
75
|
"react": "^19.0.0",
|
|
56
76
|
"react-dom": "^19.0.0",
|
|
57
77
|
"tsup": "^8.0.0",
|
|
58
|
-
"typescript": "^5.5.0"
|
|
78
|
+
"typescript": "^5.5.0",
|
|
79
|
+
"viem": "^2.0.0"
|
|
59
80
|
},
|
|
60
81
|
"keywords": [
|
|
61
82
|
"rhinestone",
|