@rhinestone/deposit-modal 0.1.14 → 0.1.16
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 +46 -21
- package/dist/index.cjs +350 -253
- package/dist/index.d.cts +8 -12
- package/dist/index.d.ts +8 -12
- package/dist/index.mjs +363 -274
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -60,22 +60,20 @@ interface ErrorEventData {
|
|
|
60
60
|
code?: string;
|
|
61
61
|
}
|
|
62
62
|
interface DepositModalProps {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
dappWalletClient?: WalletClient | null;
|
|
64
|
+
dappPublicClient?: PublicClient | null;
|
|
65
|
+
dappAddress?: Address | null;
|
|
66
66
|
targetChain: Chain | number;
|
|
67
67
|
targetToken: Address;
|
|
68
68
|
isOpen: boolean;
|
|
69
69
|
onClose: () => void;
|
|
70
70
|
inline?: boolean;
|
|
71
|
-
switchChain?: (chainId: number) => Promise<{
|
|
72
|
-
id: number;
|
|
73
|
-
} | void>;
|
|
74
71
|
sourceChain?: Chain | number;
|
|
75
72
|
sourceToken?: Address;
|
|
76
73
|
defaultAmount?: string;
|
|
77
74
|
recipient?: Address;
|
|
78
75
|
backendUrl?: string;
|
|
76
|
+
rhinestoneApiKey?: string;
|
|
79
77
|
signerAddress?: Address;
|
|
80
78
|
sessionChainIds?: number[];
|
|
81
79
|
forceRegister?: boolean;
|
|
@@ -103,9 +101,9 @@ interface WithdrawSignParams {
|
|
|
103
101
|
isNative: boolean;
|
|
104
102
|
}
|
|
105
103
|
interface WithdrawModalProps {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
dappWalletClient?: WalletClient | null;
|
|
105
|
+
dappPublicClient?: PublicClient | null;
|
|
106
|
+
dappAddress?: Address | null;
|
|
109
107
|
safeAddress: Address;
|
|
110
108
|
sourceChain: Chain | number;
|
|
111
109
|
sourceToken: Address;
|
|
@@ -116,10 +114,8 @@ interface WithdrawModalProps {
|
|
|
116
114
|
isOpen: boolean;
|
|
117
115
|
onClose: () => void;
|
|
118
116
|
inline?: boolean;
|
|
119
|
-
switchChain?: (chainId: number) => Promise<{
|
|
120
|
-
id: number;
|
|
121
|
-
} | void>;
|
|
122
117
|
backendUrl?: string;
|
|
118
|
+
rhinestoneApiKey?: string;
|
|
123
119
|
signerAddress?: Address;
|
|
124
120
|
sessionChainIds?: number[];
|
|
125
121
|
forceRegister?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -60,22 +60,20 @@ interface ErrorEventData {
|
|
|
60
60
|
code?: string;
|
|
61
61
|
}
|
|
62
62
|
interface DepositModalProps {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
dappWalletClient?: WalletClient | null;
|
|
64
|
+
dappPublicClient?: PublicClient | null;
|
|
65
|
+
dappAddress?: Address | null;
|
|
66
66
|
targetChain: Chain | number;
|
|
67
67
|
targetToken: Address;
|
|
68
68
|
isOpen: boolean;
|
|
69
69
|
onClose: () => void;
|
|
70
70
|
inline?: boolean;
|
|
71
|
-
switchChain?: (chainId: number) => Promise<{
|
|
72
|
-
id: number;
|
|
73
|
-
} | void>;
|
|
74
71
|
sourceChain?: Chain | number;
|
|
75
72
|
sourceToken?: Address;
|
|
76
73
|
defaultAmount?: string;
|
|
77
74
|
recipient?: Address;
|
|
78
75
|
backendUrl?: string;
|
|
76
|
+
rhinestoneApiKey?: string;
|
|
79
77
|
signerAddress?: Address;
|
|
80
78
|
sessionChainIds?: number[];
|
|
81
79
|
forceRegister?: boolean;
|
|
@@ -103,9 +101,9 @@ interface WithdrawSignParams {
|
|
|
103
101
|
isNative: boolean;
|
|
104
102
|
}
|
|
105
103
|
interface WithdrawModalProps {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
dappWalletClient?: WalletClient | null;
|
|
105
|
+
dappPublicClient?: PublicClient | null;
|
|
106
|
+
dappAddress?: Address | null;
|
|
109
107
|
safeAddress: Address;
|
|
110
108
|
sourceChain: Chain | number;
|
|
111
109
|
sourceToken: Address;
|
|
@@ -116,10 +114,8 @@ interface WithdrawModalProps {
|
|
|
116
114
|
isOpen: boolean;
|
|
117
115
|
onClose: () => void;
|
|
118
116
|
inline?: boolean;
|
|
119
|
-
switchChain?: (chainId: number) => Promise<{
|
|
120
|
-
id: number;
|
|
121
|
-
} | void>;
|
|
122
117
|
backendUrl?: string;
|
|
118
|
+
rhinestoneApiKey?: string;
|
|
123
119
|
signerAddress?: Address;
|
|
124
120
|
sessionChainIds?: number[];
|
|
125
121
|
forceRegister?: boolean;
|