@dynamic-labs/wallet-book 4.25.5 → 4.25.6
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/CHANGELOG.md +8 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +6 -6
- package/src/build/index.d.ts +3 -3
- package/src/build/sources/walletConnect/index.d.ts +27 -27
- package/src/components/WalletIcon.d.ts +1 -1
- package/src/helpers/findWalletBookWallet.d.ts +3 -3
- package/src/helpers/findWalletBookWalletByNameAndChain.d.ts +3 -3
- package/src/hooks/fetchWalletBook/fetchWalletBook.d.ts +3 -3
- package/src/hooks/useWalletBookCdn.d.ts +3 -3
- package/src/schemas/utils/nonEmptyString.cjs +23 -2
- package/src/schemas/utils/nonEmptyString.d.ts +2 -2
- package/src/schemas/utils/nonEmptyString.js +3 -2
- package/src/schemas/utils/nonEmptyStringArray.cjs +23 -2
- package/src/schemas/utils/nonEmptyStringArray.d.ts +2 -2
- package/src/schemas/utils/nonEmptyStringArray.js +3 -2
- package/src/schemas/walletBookSchema.cjs +28 -7
- package/src/schemas/walletBookSchema.d.ts +204 -1067
- package/src/schemas/walletBookSchema.js +4 -3
- package/src/schemas/walletConnectSourceSchema.d.ts +119 -511
- package/src/schemas/walletGroup.cjs +30 -11
- package/src/schemas/walletGroup.d.ts +26 -110
- package/src/schemas/walletGroup.js +6 -7
- package/src/schemas/walletSchema.cjs +78 -81
- package/src/schemas/walletSchema.d.ts +108 -441
- package/src/schemas/walletSchema.js +50 -73
- package/wallet-book-fallbacks.cjs +1 -1
- package/wallet-book-fallbacks.js +1 -1
|
@@ -3,25 +3,44 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var z = require('zod/mini');
|
|
7
7
|
var nonEmptyString = require('./utils/nonEmptyString.cjs');
|
|
8
8
|
var walletSchema = require('./walletSchema.cjs');
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-namespace
|
|
31
|
+
const WalletOverrideEntrySchema = z__namespace.object({
|
|
32
|
+
brand: z__namespace.optional(walletSchema.brandSchema),
|
|
12
33
|
name: nonEmptyString.nonEmptyString,
|
|
13
34
|
});
|
|
14
|
-
const walletGroupSchema =
|
|
15
|
-
brand:
|
|
16
|
-
.object({
|
|
35
|
+
const walletGroupSchema = z__namespace.object({
|
|
36
|
+
brand: z__namespace.optional(z__namespace.object({
|
|
17
37
|
alt: nonEmptyString.nonEmptyString,
|
|
18
38
|
primaryColor: nonEmptyString.nonEmptyString,
|
|
19
39
|
spriteId: nonEmptyString.nonEmptyString,
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
walletOverrides: zod.z.record(WalletOverrideEntrySchema).optional(),
|
|
40
|
+
})),
|
|
41
|
+
key: z__namespace.string(),
|
|
42
|
+
name: z__namespace.string(),
|
|
43
|
+
walletOverrides: z__namespace.optional(z__namespace.record(z__namespace.string(), WalletOverrideEntrySchema)),
|
|
25
44
|
});
|
|
26
45
|
|
|
27
46
|
exports.walletGroupSchema = walletGroupSchema;
|
|
@@ -1,113 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const WalletOverrideEntrySchema: z.
|
|
3
|
-
brand: z.
|
|
4
|
-
alt: z.
|
|
5
|
-
primaryColor: z.
|
|
6
|
-
spriteId: z.
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
alt
|
|
13
|
-
primaryColor
|
|
14
|
-
spriteId
|
|
15
|
-
}>>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
primaryColor?: unknown;
|
|
28
|
-
spriteId?: unknown;
|
|
29
|
-
} | undefined;
|
|
30
|
-
name?: unknown;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const walletGroupSchema: z.ZodObject<{
|
|
33
|
-
brand: z.ZodOptional<z.ZodObject<{
|
|
34
|
-
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
35
|
-
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
36
|
-
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
37
|
-
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
alt?: string | undefined;
|
|
39
|
-
primaryColor?: string | undefined;
|
|
40
|
-
spriteId?: string | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
alt?: unknown;
|
|
43
|
-
primaryColor?: unknown;
|
|
44
|
-
spriteId?: unknown;
|
|
45
|
-
}>>;
|
|
46
|
-
key: z.ZodString;
|
|
47
|
-
name: z.ZodString;
|
|
48
|
-
walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
49
|
-
brand: z.ZodOptional<z.ZodObject<{
|
|
50
|
-
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
51
|
-
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
52
|
-
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
53
|
-
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
alt?: string | undefined;
|
|
55
|
-
primaryColor?: string | undefined;
|
|
56
|
-
spriteId?: string | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
alt?: unknown;
|
|
59
|
-
primaryColor?: unknown;
|
|
60
|
-
spriteId?: unknown;
|
|
61
|
-
}>>;
|
|
62
|
-
name: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
63
|
-
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
brand?: {
|
|
65
|
-
alt?: string | undefined;
|
|
66
|
-
primaryColor?: string | undefined;
|
|
67
|
-
spriteId?: string | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
name?: string | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
brand?: {
|
|
72
|
-
alt?: unknown;
|
|
73
|
-
primaryColor?: unknown;
|
|
74
|
-
spriteId?: unknown;
|
|
75
|
-
} | undefined;
|
|
76
|
-
name?: unknown;
|
|
77
|
-
}>>>;
|
|
78
|
-
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
name: string;
|
|
80
|
-
key: string;
|
|
81
|
-
brand?: {
|
|
82
|
-
alt?: string | undefined;
|
|
83
|
-
primaryColor?: string | undefined;
|
|
84
|
-
spriteId?: string | undefined;
|
|
85
|
-
} | undefined;
|
|
86
|
-
walletOverrides?: Record<string, {
|
|
87
|
-
brand?: {
|
|
88
|
-
alt?: string | undefined;
|
|
89
|
-
primaryColor?: string | undefined;
|
|
90
|
-
spriteId?: string | undefined;
|
|
91
|
-
} | undefined;
|
|
92
|
-
name?: string | undefined;
|
|
93
|
-
}> | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
name: string;
|
|
96
|
-
key: string;
|
|
97
|
-
brand?: {
|
|
98
|
-
alt?: unknown;
|
|
99
|
-
primaryColor?: unknown;
|
|
100
|
-
spriteId?: unknown;
|
|
101
|
-
} | undefined;
|
|
102
|
-
walletOverrides?: Record<string, {
|
|
103
|
-
brand?: {
|
|
104
|
-
alt?: unknown;
|
|
105
|
-
primaryColor?: unknown;
|
|
106
|
-
spriteId?: unknown;
|
|
107
|
-
} | undefined;
|
|
108
|
-
name?: unknown;
|
|
109
|
-
}> | undefined;
|
|
110
|
-
}>;
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
declare const WalletOverrideEntrySchema: z.ZodMiniObject<{
|
|
3
|
+
brand: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
4
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
5
|
+
primaryColor: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
6
|
+
spriteId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
name: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const walletGroupSchema: z.ZodMiniObject<{
|
|
11
|
+
brand: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
12
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
13
|
+
primaryColor: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
14
|
+
spriteId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
key: z.ZodMiniString<string>;
|
|
17
|
+
name: z.ZodMiniString<string>;
|
|
18
|
+
walletOverrides: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
19
|
+
brand: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
20
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
21
|
+
primaryColor: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
22
|
+
spriteId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
name: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
111
27
|
export type WalletGroupSchema = z.infer<typeof walletGroupSchema>;
|
|
112
28
|
export type WalletGroupOverride = z.infer<typeof WalletOverrideEntrySchema>;
|
|
113
29
|
export {};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod/mini';
|
|
3
3
|
import { nonEmptyString } from './utils/nonEmptyString.js';
|
|
4
4
|
import { brandSchema } from './walletSchema.js';
|
|
5
5
|
|
|
6
|
+
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-namespace
|
|
6
7
|
const WalletOverrideEntrySchema = z.object({
|
|
7
|
-
brand:
|
|
8
|
+
brand: z.optional(brandSchema),
|
|
8
9
|
name: nonEmptyString,
|
|
9
10
|
});
|
|
10
11
|
const walletGroupSchema = z.object({
|
|
11
|
-
brand: z
|
|
12
|
-
.object({
|
|
12
|
+
brand: z.optional(z.object({
|
|
13
13
|
alt: nonEmptyString,
|
|
14
14
|
primaryColor: nonEmptyString,
|
|
15
15
|
spriteId: nonEmptyString,
|
|
16
|
-
})
|
|
17
|
-
.optional(),
|
|
16
|
+
})),
|
|
18
17
|
key: z.string(),
|
|
19
18
|
name: z.string(),
|
|
20
|
-
walletOverrides: z.record(
|
|
19
|
+
walletOverrides: z.optional(z.record(z.string(), WalletOverrideEntrySchema)),
|
|
21
20
|
});
|
|
22
21
|
|
|
23
22
|
export { walletGroupSchema };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var z = require('zod/mini');
|
|
7
7
|
var filterEmptyObject = require('./utils/filterEmptyObject.cjs');
|
|
8
8
|
var nonEmptyString = require('./utils/nonEmptyString.cjs');
|
|
9
9
|
var nonEmptyStringArray = require('./utils/nonEmptyStringArray.cjs');
|
|
@@ -13,36 +13,50 @@ var transformEdgeExtensionId = require('./utils/transformEdgeExtensionId.cjs');
|
|
|
13
13
|
var transformFirefoxExtensionId = require('./utils/transformFirefoxExtensionId.cjs');
|
|
14
14
|
var transformIosId = require('./utils/transformIosId.cjs');
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
function _interopNamespace(e) {
|
|
17
|
+
if (e && e.__esModule) return e;
|
|
18
|
+
var n = Object.create(null);
|
|
19
|
+
if (e) {
|
|
20
|
+
Object.keys(e).forEach(function (k) {
|
|
21
|
+
if (k !== 'default') {
|
|
22
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
23
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return e[k]; }
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
n["default"] = e;
|
|
31
|
+
return Object.freeze(n);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-namespace
|
|
37
|
+
const injectedConfigSchema = z__namespace.object({
|
|
38
|
+
chain: z__namespace.string(),
|
|
39
|
+
extensionLocators: z__namespace.array(z__namespace.object({
|
|
40
|
+
flag: z__namespace.string(),
|
|
41
|
+
value: z__namespace._default(z__namespace.optional(z__namespace.boolean()), true),
|
|
21
42
|
})),
|
|
22
43
|
/**
|
|
23
44
|
* Allows declaring which interface, if any, this wallet's implementation follows
|
|
24
45
|
* ex. Leather with https://btckit.org/
|
|
25
46
|
*/
|
|
26
|
-
providerInterface:
|
|
47
|
+
providerInterface: z__namespace.optional(z__namespace.string()),
|
|
27
48
|
/**
|
|
28
49
|
* Allows declaring that this wallet is discoverable through the the Wallet Standard
|
|
29
50
|
* See https://github.com/wallet-standard/wallet-standard
|
|
30
51
|
* Also allows ignoring wallets that don't support the provided features
|
|
31
52
|
*/
|
|
32
|
-
walletStandard:
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
walletStandardLocators: zod.z
|
|
40
|
-
.array(zod.z.object({ locator: zod.z.string(), name: zod.z.string() }))
|
|
41
|
-
.optional(),
|
|
42
|
-
windowLocations: zod.z
|
|
43
|
-
.array(zod.z.string())
|
|
44
|
-
.optional()
|
|
45
|
-
.refine((val) => {
|
|
53
|
+
walletStandard: z__namespace.optional(z__namespace.object({
|
|
54
|
+
features: z__namespace.array(z__namespace.string()),
|
|
55
|
+
name: z__namespace.string(),
|
|
56
|
+
providerId: z__namespace.optional(z__namespace.string()),
|
|
57
|
+
})),
|
|
58
|
+
walletStandardLocators: z__namespace.optional(z__namespace.array(z__namespace.object({ locator: z__namespace.string(), name: z__namespace.string() }))),
|
|
59
|
+
windowLocations: z__namespace.optional(z__namespace.array(z__namespace.string())).check(z__namespace.refine((val) => {
|
|
46
60
|
if (!val)
|
|
47
61
|
return true;
|
|
48
62
|
if (!val.some((v) => ['ethereum', 'ethereum.providers'].includes(v)))
|
|
@@ -51,87 +65,70 @@ const injectedConfigSchema = zod.z.object({
|
|
|
51
65
|
}, {
|
|
52
66
|
message: 'windowLocations cannot include ethereum or ethereum.providers as they are included by default',
|
|
53
67
|
path: ['config'],
|
|
54
|
-
}),
|
|
68
|
+
})),
|
|
55
69
|
});
|
|
56
|
-
const brandSchema =
|
|
70
|
+
const brandSchema = z__namespace.object({
|
|
57
71
|
alt: nonEmptyString.nonEmptyString,
|
|
58
72
|
primaryColor: nonEmptyString.nonEmptyString,
|
|
59
73
|
spriteId: nonEmptyString.nonEmptyString,
|
|
60
74
|
});
|
|
61
|
-
const walletSchema =
|
|
62
|
-
.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
.
|
|
68
|
-
|
|
69
|
-
edgeId: nonEmptyString.nonEmptyString.transform(transformEdgeExtensionId.transformEdgeExtensionId),
|
|
70
|
-
firefoxId: nonEmptyString.nonEmptyString.transform(transformFirefoxExtensionId.transformFirefoxExtensionId),
|
|
75
|
+
const walletSchema = z__namespace.pipe(z__namespace.pipe(z__namespace.transform((val) => val), z__namespace.object({
|
|
76
|
+
brand: z__namespace.optional(brandSchema),
|
|
77
|
+
chainGroup: z__namespace.optional(z__namespace.string()),
|
|
78
|
+
chains: z__namespace.optional(z__namespace.array(z__namespace.string())),
|
|
79
|
+
desktop: z__namespace.optional(z__namespace.pipe(z__namespace.object({
|
|
80
|
+
chromeId: z__namespace.optional(z__namespace.pipe(nonEmptyString.nonEmptyString, z__namespace.transform(transformChromeExtensionId.transformChromeExtensionId))),
|
|
81
|
+
edgeId: z__namespace.optional(z__namespace.pipe(nonEmptyString.nonEmptyString, z__namespace.transform(transformEdgeExtensionId.transformEdgeExtensionId))),
|
|
82
|
+
firefoxId: z__namespace.optional(z__namespace.pipe(nonEmptyString.nonEmptyString, z__namespace.transform(transformFirefoxExtensionId.transformFirefoxExtensionId))),
|
|
71
83
|
native: nonEmptyString.nonEmptyString,
|
|
72
84
|
operaId: nonEmptyString.nonEmptyString,
|
|
73
85
|
safariId: nonEmptyString.nonEmptyString,
|
|
74
86
|
universal: nonEmptyString.nonEmptyString,
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
filterFromWalletConnect: zod.z.boolean().optional(),
|
|
80
|
-
group: zod.z.string().optional(),
|
|
87
|
+
}), z__namespace.transform(filterEmptyObject.filterEmptyObject))),
|
|
88
|
+
eip6963Config: z__namespace.optional(z__namespace.object({ rdns: z__namespace.string() })),
|
|
89
|
+
filterFromWalletConnect: z__namespace.optional(z__namespace.boolean()),
|
|
90
|
+
group: z__namespace.optional(z__namespace.string()),
|
|
81
91
|
/**
|
|
82
92
|
* Indicates which hardware wallets are enabled for this wallet
|
|
83
93
|
*/
|
|
84
|
-
hardwareWallets:
|
|
85
|
-
injectedConfig:
|
|
86
|
-
mobile:
|
|
87
|
-
.
|
|
88
|
-
|
|
89
|
-
androidId: nonEmptyString.nonEmptyString.transform(transformAndroidId.transformAndroidId),
|
|
94
|
+
hardwareWallets: z__namespace.optional(z__namespace.array(z__namespace.string())),
|
|
95
|
+
injectedConfig: z__namespace.optional(z__namespace.array(injectedConfigSchema)),
|
|
96
|
+
mobile: z__namespace.optional(z__namespace.pipe(z__namespace.optional(z__namespace.object({
|
|
97
|
+
android: z__namespace.nullish(z__namespace.string()),
|
|
98
|
+
androidId: z__namespace.optional(z__namespace.pipe(nonEmptyString.nonEmptyString, z__namespace.transform(transformAndroidId.transformAndroidId))),
|
|
90
99
|
/**
|
|
91
100
|
* @deprecated Use inAppBrowserV2 instead for EVM wallet deep linking
|
|
92
101
|
*/
|
|
93
|
-
inAppBrowser:
|
|
94
|
-
inAppBrowserV2:
|
|
95
|
-
ios:
|
|
96
|
-
iosId: nonEmptyString.nonEmptyString.transform(transformIosId.transformIosId),
|
|
102
|
+
inAppBrowser: z__namespace.nullish(z__namespace.string()),
|
|
103
|
+
inAppBrowserV2: z__namespace.nullish(z__namespace.string()),
|
|
104
|
+
ios: z__namespace.nullish(z__namespace.string()),
|
|
105
|
+
iosId: z__namespace.optional(z__namespace.pipe(nonEmptyString.nonEmptyString, z__namespace.transform(transformIosId.transformIosId))),
|
|
97
106
|
native: nonEmptyString.nonEmptyString,
|
|
98
107
|
universal: nonEmptyString.nonEmptyString,
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
mobileExperience: zod.z.enum(['in-app-browser', 'redirect']).optional(),
|
|
103
|
-
name: zod.z.string(),
|
|
108
|
+
})), z__namespace.transform(filterEmptyObject.filterEmptyObject))),
|
|
109
|
+
mobileExperience: z__namespace.optional(z__namespace.enum(['in-app-browser', 'redirect'])),
|
|
110
|
+
name: z__namespace.string(),
|
|
104
111
|
shortName: nonEmptyString.nonEmptyString,
|
|
105
|
-
showOnlyIfInstalled:
|
|
106
|
-
switchNetworkOnlyFromWallet:
|
|
107
|
-
walletConnect:
|
|
108
|
-
.object({
|
|
112
|
+
showOnlyIfInstalled: z__namespace.optional(z__namespace.boolean()),
|
|
113
|
+
switchNetworkOnlyFromWallet: z__namespace.optional(z__namespace.boolean()),
|
|
114
|
+
walletConnect: z__namespace.optional(z__namespace.pipe(z__namespace.optional(z__namespace.object({
|
|
109
115
|
sdks: nonEmptyStringArray.nonEmptyStringArray,
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
.transform(filterEmptyObject.filterEmptyObject),
|
|
113
|
-
walletGroup: zod.z.string().optional(),
|
|
116
|
+
})), z__namespace.transform(filterEmptyObject.filterEmptyObject))),
|
|
117
|
+
walletGroup: z__namespace.optional(z__namespace.string()),
|
|
114
118
|
/**
|
|
115
119
|
* Indicates which connector methods/events are not supported, keyed by wallet type
|
|
116
120
|
*/
|
|
117
|
-
walletLimitations:
|
|
118
|
-
.object({
|
|
119
|
-
|
|
120
|
-
.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
.optional(),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
unsupportedMethods: zod.z.array(zod.z.string()).optional(),
|
|
129
|
-
})
|
|
130
|
-
.optional(),
|
|
131
|
-
})
|
|
132
|
-
.optional(),
|
|
133
|
-
}))
|
|
134
|
-
.transform((val) => {
|
|
121
|
+
walletLimitations: z__namespace.optional(z__namespace.object({
|
|
122
|
+
browserExtension: z__namespace.optional(z__namespace.object({
|
|
123
|
+
unsupportedEvents: z__namespace.optional(z__namespace.array(z__namespace.string())),
|
|
124
|
+
unsupportedMethods: z__namespace.optional(z__namespace.array(z__namespace.string())),
|
|
125
|
+
})),
|
|
126
|
+
mobile: z__namespace.optional(z__namespace.object({
|
|
127
|
+
unsupportedEvents: z__namespace.optional(z__namespace.array(z__namespace.string())),
|
|
128
|
+
unsupportedMethods: z__namespace.optional(z__namespace.array(z__namespace.string())),
|
|
129
|
+
})),
|
|
130
|
+
})),
|
|
131
|
+
})), z__namespace.transform((val) => {
|
|
135
132
|
var _a, _b, _c, _d, _e, _f;
|
|
136
133
|
if (val.group) {
|
|
137
134
|
val.chainGroup = val.group;
|
|
@@ -143,7 +140,7 @@ const walletSchema = zod.z
|
|
|
143
140
|
(_f = val.mobile) === null || _f === void 0 ? true : delete _f.android;
|
|
144
141
|
}
|
|
145
142
|
return val;
|
|
146
|
-
});
|
|
143
|
+
}));
|
|
147
144
|
|
|
148
145
|
exports.brandSchema = brandSchema;
|
|
149
146
|
exports.walletSchema = walletSchema;
|