@rhinestone/deposit-modal 0.1.14 → 0.1.15
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 +45 -21
- package/dist/index.cjs +327 -248
- package/dist/index.d.cts +6 -12
- package/dist/index.d.ts +6 -12
- package/dist/index.mjs +340 -269
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -60,17 +60,14 @@ 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;
|
|
@@ -103,9 +100,9 @@ interface WithdrawSignParams {
|
|
|
103
100
|
isNative: boolean;
|
|
104
101
|
}
|
|
105
102
|
interface WithdrawModalProps {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
dappWalletClient?: WalletClient | null;
|
|
104
|
+
dappPublicClient?: PublicClient | null;
|
|
105
|
+
dappAddress?: Address | null;
|
|
109
106
|
safeAddress: Address;
|
|
110
107
|
sourceChain: Chain | number;
|
|
111
108
|
sourceToken: Address;
|
|
@@ -116,9 +113,6 @@ interface WithdrawModalProps {
|
|
|
116
113
|
isOpen: boolean;
|
|
117
114
|
onClose: () => void;
|
|
118
115
|
inline?: boolean;
|
|
119
|
-
switchChain?: (chainId: number) => Promise<{
|
|
120
|
-
id: number;
|
|
121
|
-
} | void>;
|
|
122
116
|
backendUrl?: string;
|
|
123
117
|
signerAddress?: Address;
|
|
124
118
|
sessionChainIds?: number[];
|
package/dist/index.d.ts
CHANGED
|
@@ -60,17 +60,14 @@ 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;
|
|
@@ -103,9 +100,9 @@ interface WithdrawSignParams {
|
|
|
103
100
|
isNative: boolean;
|
|
104
101
|
}
|
|
105
102
|
interface WithdrawModalProps {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
dappWalletClient?: WalletClient | null;
|
|
104
|
+
dappPublicClient?: PublicClient | null;
|
|
105
|
+
dappAddress?: Address | null;
|
|
109
106
|
safeAddress: Address;
|
|
110
107
|
sourceChain: Chain | number;
|
|
111
108
|
sourceToken: Address;
|
|
@@ -116,9 +113,6 @@ interface WithdrawModalProps {
|
|
|
116
113
|
isOpen: boolean;
|
|
117
114
|
onClose: () => void;
|
|
118
115
|
inline?: boolean;
|
|
119
|
-
switchChain?: (chainId: number) => Promise<{
|
|
120
|
-
id: number;
|
|
121
|
-
} | void>;
|
|
122
116
|
backendUrl?: string;
|
|
123
117
|
signerAddress?: Address;
|
|
124
118
|
sessionChainIds?: number[];
|