@verified-network/verified-custody 0.6.0 → 0.6.1
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/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -15,6 +15,10 @@ type VerifiedWalletVault = {
|
|
|
15
15
|
chainId?: number;
|
|
16
16
|
regAddress?: string;
|
|
17
17
|
};
|
|
18
|
+
type VerifiedChainConfigType = {
|
|
19
|
+
rpcUrls: string[];
|
|
20
|
+
};
|
|
21
|
+
type VerifiedChainConfig = Record<number, VerifiedChainConfigType>;
|
|
18
22
|
type VerifiedWalletTx = {
|
|
19
23
|
id: string;
|
|
20
24
|
};
|
|
@@ -30,6 +34,7 @@ interface VerifiedCustodyProps {
|
|
|
30
34
|
delayPageElement?: React.JSX.Element;
|
|
31
35
|
delayPageStyle?: React.CSSProperties;
|
|
32
36
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
37
|
+
chainConfig?: VerifiedChainConfig;
|
|
33
38
|
popupView?: boolean;
|
|
34
39
|
defaultCountry?: {
|
|
35
40
|
area: string;
|
|
@@ -56,6 +61,11 @@ interface VerifiedCustodyProps {
|
|
|
56
61
|
txToSign: any;
|
|
57
62
|
[key: string]: any;
|
|
58
63
|
}>;
|
|
64
|
+
signMsgElement?: React.ComponentType<{
|
|
65
|
+
setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
66
|
+
msgToSign: any;
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}>;
|
|
59
69
|
}
|
|
60
70
|
interface VerifiedCustodyHelpers {
|
|
61
71
|
sendCoSignerInvitation: (channel: "sms" | "email", cosigerId: string, creatorId: string, hashedCretorPin: string) => Promise<boolean>;
|
|
@@ -111,6 +121,7 @@ declare const FTUPage: (props: {
|
|
|
111
121
|
enablePhone?: boolean;
|
|
112
122
|
setisOnboard?: (isOnboard: boolean) => void;
|
|
113
123
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
124
|
+
externalchainConfig?: VerifiedChainConfig;
|
|
114
125
|
setIsLoading?: (isLoading: boolean) => void;
|
|
115
126
|
setShowDashboard?: (showDashboard: boolean) => void;
|
|
116
127
|
setShowResetPin?: (showResetPin: boolean) => void;
|
|
@@ -161,6 +172,7 @@ declare const EnterPinPage: (props: {
|
|
|
161
172
|
reqVaultData?: any;
|
|
162
173
|
reqTxData?: any;
|
|
163
174
|
signTxElement?: any;
|
|
175
|
+
signMsgElement?: any;
|
|
164
176
|
txToSign?: any;
|
|
165
177
|
setIsLoading: (isLoading: boolean) => void;
|
|
166
178
|
setShowDashboard?: (showDashboard: boolean) => void;
|
|
@@ -175,6 +187,7 @@ declare const EnterPinPage: (props: {
|
|
|
175
187
|
name: string;
|
|
176
188
|
}) => void;
|
|
177
189
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
190
|
+
externalchainConfig?: VerifiedChainConfig;
|
|
178
191
|
enablePhone?: boolean;
|
|
179
192
|
dashbordElement?: React$1.ComponentType<{
|
|
180
193
|
setIsLoading: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
@@ -225,6 +238,7 @@ declare const CreatePinPage: (props: {
|
|
|
225
238
|
vaultData?: any;
|
|
226
239
|
txData?: any;
|
|
227
240
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
241
|
+
externalchainConfig?: VerifiedChainConfig;
|
|
228
242
|
isExistingUser?: boolean;
|
|
229
243
|
rootTagId?: string;
|
|
230
244
|
rootExpandedWidth?: string;
|
|
@@ -342,6 +356,7 @@ declare const AddCosignersPage: (props: {
|
|
|
342
356
|
name: string;
|
|
343
357
|
};
|
|
344
358
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
359
|
+
externalchainConfig?: VerifiedChainConfig;
|
|
345
360
|
enablePhone?: boolean;
|
|
346
361
|
action?: string;
|
|
347
362
|
setShowDashboard?: (showDashboard: boolean) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ type VerifiedWalletVault = {
|
|
|
15
15
|
chainId?: number;
|
|
16
16
|
regAddress?: string;
|
|
17
17
|
};
|
|
18
|
+
type VerifiedChainConfigType = {
|
|
19
|
+
rpcUrls: string[];
|
|
20
|
+
};
|
|
21
|
+
type VerifiedChainConfig = Record<number, VerifiedChainConfigType>;
|
|
18
22
|
type VerifiedWalletTx = {
|
|
19
23
|
id: string;
|
|
20
24
|
};
|
|
@@ -30,6 +34,7 @@ interface VerifiedCustodyProps {
|
|
|
30
34
|
delayPageElement?: React.JSX.Element;
|
|
31
35
|
delayPageStyle?: React.CSSProperties;
|
|
32
36
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
37
|
+
chainConfig?: VerifiedChainConfig;
|
|
33
38
|
popupView?: boolean;
|
|
34
39
|
defaultCountry?: {
|
|
35
40
|
area: string;
|
|
@@ -56,6 +61,11 @@ interface VerifiedCustodyProps {
|
|
|
56
61
|
txToSign: any;
|
|
57
62
|
[key: string]: any;
|
|
58
63
|
}>;
|
|
64
|
+
signMsgElement?: React.ComponentType<{
|
|
65
|
+
setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
66
|
+
msgToSign: any;
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}>;
|
|
59
69
|
}
|
|
60
70
|
interface VerifiedCustodyHelpers {
|
|
61
71
|
sendCoSignerInvitation: (channel: "sms" | "email", cosigerId: string, creatorId: string, hashedCretorPin: string) => Promise<boolean>;
|
|
@@ -111,6 +121,7 @@ declare const FTUPage: (props: {
|
|
|
111
121
|
enablePhone?: boolean;
|
|
112
122
|
setisOnboard?: (isOnboard: boolean) => void;
|
|
113
123
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
124
|
+
externalchainConfig?: VerifiedChainConfig;
|
|
114
125
|
setIsLoading?: (isLoading: boolean) => void;
|
|
115
126
|
setShowDashboard?: (showDashboard: boolean) => void;
|
|
116
127
|
setShowResetPin?: (showResetPin: boolean) => void;
|
|
@@ -161,6 +172,7 @@ declare const EnterPinPage: (props: {
|
|
|
161
172
|
reqVaultData?: any;
|
|
162
173
|
reqTxData?: any;
|
|
163
174
|
signTxElement?: any;
|
|
175
|
+
signMsgElement?: any;
|
|
164
176
|
txToSign?: any;
|
|
165
177
|
setIsLoading: (isLoading: boolean) => void;
|
|
166
178
|
setShowDashboard?: (showDashboard: boolean) => void;
|
|
@@ -175,6 +187,7 @@ declare const EnterPinPage: (props: {
|
|
|
175
187
|
name: string;
|
|
176
188
|
}) => void;
|
|
177
189
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
190
|
+
externalchainConfig?: VerifiedChainConfig;
|
|
178
191
|
enablePhone?: boolean;
|
|
179
192
|
dashbordElement?: React$1.ComponentType<{
|
|
180
193
|
setIsLoading: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
@@ -225,6 +238,7 @@ declare const CreatePinPage: (props: {
|
|
|
225
238
|
vaultData?: any;
|
|
226
239
|
txData?: any;
|
|
227
240
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
241
|
+
externalchainConfig?: VerifiedChainConfig;
|
|
228
242
|
isExistingUser?: boolean;
|
|
229
243
|
rootTagId?: string;
|
|
230
244
|
rootExpandedWidth?: string;
|
|
@@ -342,6 +356,7 @@ declare const AddCosignersPage: (props: {
|
|
|
342
356
|
name: string;
|
|
343
357
|
};
|
|
344
358
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
359
|
+
externalchainConfig?: VerifiedChainConfig;
|
|
345
360
|
enablePhone?: boolean;
|
|
346
361
|
action?: string;
|
|
347
362
|
setShowDashboard?: (showDashboard: boolean) => void;
|