@dynamic-labs/wallet-book 4.0.0-alpha.5 → 4.0.0-alpha.51

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +468 -0
  2. package/README.md +1 -1
  3. package/package.cjs +8 -0
  4. package/package.js +4 -0
  5. package/package.json +7 -13
  6. package/src/build/sources/walletConnectOverrides/index.d.ts +26 -0
  7. package/src/components/WalletIcon.cjs +15 -7
  8. package/src/components/WalletIcon.d.ts +278 -3
  9. package/src/components/WalletIcon.js +17 -9
  10. package/src/helpers/getWalletBookWallet.d.ts +1 -1
  11. package/src/helpers/getWalletIconData.cjs +39 -0
  12. package/src/helpers/getWalletIconData.d.ts +5 -0
  13. package/src/helpers/getWalletIconData.js +35 -0
  14. package/src/helpers/index.d.ts +2 -4
  15. package/src/helpers/isWalletBookPopulated.cjs +8 -0
  16. package/src/helpers/isWalletBookPopulated.d.ts +2 -0
  17. package/src/helpers/isWalletBookPopulated.js +4 -0
  18. package/src/hooks/fetchWalletBook/fetchWalletBook.cjs +48 -0
  19. package/src/hooks/fetchWalletBook/fetchWalletBook.d.ts +97 -0
  20. package/src/hooks/fetchWalletBook/fetchWalletBook.js +38 -0
  21. package/src/hooks/fetchWalletBook/index.d.ts +1 -0
  22. package/src/hooks/useWalletBookCdn.cjs +22 -38
  23. package/src/hooks/useWalletBookCdn.js +22 -38
  24. package/src/index.cjs +9 -11
  25. package/src/index.d.ts +1 -2
  26. package/src/index.js +7 -6
  27. package/wallet-book-fallbacks.cjs +154 -8
  28. package/wallet-book-fallbacks.js +154 -8
  29. package/src/helpers/getWalletLinks.cjs +0 -34
  30. package/src/helpers/getWalletLinks.d.ts +0 -10
  31. package/src/helpers/getWalletLinks.js +0 -30
  32. package/src/helpers/getWalletPrimaryColor.cjs +0 -14
  33. package/src/helpers/getWalletPrimaryColor.d.ts +0 -2
  34. package/src/helpers/getWalletPrimaryColor.js +0 -10
  35. package/src/helpers/isWalletEventSupported.cjs +0 -8
  36. package/src/helpers/isWalletEventSupported.d.ts +0 -2
  37. package/src/helpers/isWalletEventSupported.js +0 -4
  38. package/src/helpers/isWalletMethodSupported.cjs +0 -8
  39. package/src/helpers/isWalletMethodSupported.d.ts +0 -2
  40. package/src/helpers/isWalletMethodSupported.js +0 -4
  41. package/src/schemas/walletConnectSourceSchema.cjs +0 -78
  42. package/src/schemas/walletConnectSourceSchema.js +0 -74
@@ -3,49 +3,33 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var _tslib = require('../../_virtual/_tslib.cjs');
7
6
  var react = require('react');
8
- var utils = require('@dynamic-labs/utils');
9
- require('../schemas/walletConnectSourceSchema.cjs');
10
- var walletBookSchema = require('../schemas/walletBookSchema.cjs');
11
- require('../schemas/walletSchema.cjs');
12
- require('../helpers/renderTemplate.cjs');
13
- var logger = require('../helpers/logger.cjs');
14
- var getWalletBookCdnUrl = require('../helpers/getWalletBookCdnUrl.cjs');
15
- var walletBookFallbacks = require('../../wallet-book-fallbacks.cjs');
7
+ var fetchWalletBook = require('./fetchWalletBook/fetchWalletBook.cjs');
16
8
 
9
+ // Initiate wallet book fetch immediately
10
+ fetchWalletBook.fetchWalletBook();
17
11
  const useWalletBookCdn = () => {
18
- const [walletBook, setWalletBook] = react.useState({});
12
+ const [walletBookState, setWalletBookState] = react.useState(fetchWalletBook.walletBookCache.current);
19
13
  react.useEffect(() => {
20
- const fetchWalletBook = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
21
- const url = getWalletBookCdnUrl.getWalletBookCdnUrl();
22
- const fn = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
23
- const res = yield fetch(url, { mode: 'cors' });
24
- if (res.ok) {
25
- const json = yield res.json();
26
- try {
27
- const parsedData = walletBookSchema.walletBookSchema.parse(json);
28
- return parsedData;
29
- }
30
- catch (e) {
31
- logger.logger.error('Error parsing wallet book data', e, json);
32
- throw e;
33
- }
34
- }
35
- throw new Error(`Failed to fetch wallet book data from ${url} with status code ${res.status}`);
36
- });
37
- const data = yield utils.retryableFn(fn, {
38
- fallbackValue: walletBookSchema.walletBookSchema.parse(walletBookFallbacks["default"]),
39
- logger: logger.logger.createLogger('useWalletBookCdn'),
40
- maxRetries: 3,
41
- retryStrategy: 'timeout-and-rejection',
42
- timeoutMs: 30000,
43
- });
44
- setWalletBook(data);
45
- });
46
- fetchWalletBook();
14
+ fetchWalletBook.walletBookEmitter.on('walletBookLoaded', setWalletBookState);
15
+ /**
16
+ * Justification for this setWalletBookState call imagine the following scenario:
17
+ *
18
+ * 1. fetchWalletBook() is called — the wallet book is not yet loaded
19
+ * 2. useState(walletBookCache.current) is called, and therefore initializes walletBookState to {}
20
+ * 3. Before this effect runs — wallet book is loaded, and the walletBookLoaded event is emitted
21
+ * 4. This effect finally runs and only then subscribes to the walletBookLoaded event
22
+ *
23
+ * In this case, walletBookState would be initialized to {}, and would never be updated to the actual wallet book
24
+ * Therefore, we need to call setWalletBookState(walletBookCache.current)
25
+ * to ensure that walletBookState is initialized to the correct value in this edge case
26
+ */
27
+ setWalletBookState(fetchWalletBook.walletBookCache.current);
28
+ return () => {
29
+ fetchWalletBook.walletBookEmitter.off('walletBookLoaded', setWalletBookState);
30
+ };
47
31
  }, []);
48
- return walletBook;
32
+ return walletBookState;
49
33
  };
50
34
 
51
35
  exports.useWalletBookCdn = useWalletBookCdn;
@@ -1,47 +1,31 @@
1
1
  'use client'
2
- import { __awaiter } from '../../_virtual/_tslib.js';
3
2
  import { useState, useEffect } from 'react';
4
- import { retryableFn } from '@dynamic-labs/utils';
5
- import '../schemas/walletConnectSourceSchema.js';
6
- import { walletBookSchema } from '../schemas/walletBookSchema.js';
7
- import '../schemas/walletSchema.js';
8
- import '../helpers/renderTemplate.js';
9
- import { logger } from '../helpers/logger.js';
10
- import { getWalletBookCdnUrl } from '../helpers/getWalletBookCdnUrl.js';
11
- import walletBookFallbacks from '../../wallet-book-fallbacks.js';
3
+ import { fetchWalletBook, walletBookCache, walletBookEmitter } from './fetchWalletBook/fetchWalletBook.js';
12
4
 
5
+ // Initiate wallet book fetch immediately
6
+ fetchWalletBook();
13
7
  const useWalletBookCdn = () => {
14
- const [walletBook, setWalletBook] = useState({});
8
+ const [walletBookState, setWalletBookState] = useState(walletBookCache.current);
15
9
  useEffect(() => {
16
- const fetchWalletBook = () => __awaiter(void 0, void 0, void 0, function* () {
17
- const url = getWalletBookCdnUrl();
18
- const fn = () => __awaiter(void 0, void 0, void 0, function* () {
19
- const res = yield fetch(url, { mode: 'cors' });
20
- if (res.ok) {
21
- const json = yield res.json();
22
- try {
23
- const parsedData = walletBookSchema.parse(json);
24
- return parsedData;
25
- }
26
- catch (e) {
27
- logger.error('Error parsing wallet book data', e, json);
28
- throw e;
29
- }
30
- }
31
- throw new Error(`Failed to fetch wallet book data from ${url} with status code ${res.status}`);
32
- });
33
- const data = yield retryableFn(fn, {
34
- fallbackValue: walletBookSchema.parse(walletBookFallbacks),
35
- logger: logger.createLogger('useWalletBookCdn'),
36
- maxRetries: 3,
37
- retryStrategy: 'timeout-and-rejection',
38
- timeoutMs: 30000,
39
- });
40
- setWalletBook(data);
41
- });
42
- fetchWalletBook();
10
+ walletBookEmitter.on('walletBookLoaded', setWalletBookState);
11
+ /**
12
+ * Justification for this setWalletBookState call imagine the following scenario:
13
+ *
14
+ * 1. fetchWalletBook() is called — the wallet book is not yet loaded
15
+ * 2. useState(walletBookCache.current) is called, and therefore initializes walletBookState to {}
16
+ * 3. Before this effect runs — wallet book is loaded, and the walletBookLoaded event is emitted
17
+ * 4. This effect finally runs and only then subscribes to the walletBookLoaded event
18
+ *
19
+ * In this case, walletBookState would be initialized to {}, and would never be updated to the actual wallet book
20
+ * Therefore, we need to call setWalletBookState(walletBookCache.current)
21
+ * to ensure that walletBookState is initialized to the correct value in this edge case
22
+ */
23
+ setWalletBookState(walletBookCache.current);
24
+ return () => {
25
+ walletBookEmitter.off('walletBookLoaded', setWalletBookState);
26
+ };
43
27
  }, []);
44
- return walletBook;
28
+ return walletBookState;
45
29
  };
46
30
 
47
31
  export { useWalletBookCdn };
package/src/index.cjs CHANGED
@@ -3,41 +3,39 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
+ var assertPackageVersion = require('@dynamic-labs/assert-package-version');
7
+ var _package = require('../package.cjs');
6
8
  var WalletBookContext = require('./context/WalletBookContext.cjs');
7
9
  var getWalletIconUrl = require('./helpers/getWalletIconUrl.cjs');
8
10
  var getWalletBookWallet = require('./helpers/getWalletBookWallet.cjs');
9
- var getWalletLinks = require('./helpers/getWalletLinks.cjs');
10
- var getWalletPrimaryColor = require('./helpers/getWalletPrimaryColor.cjs');
11
- require('./helpers/renderTemplate.cjs');
11
+ var renderTemplate = require('./helpers/renderTemplate.cjs');
12
12
  var findWalletBookWallet = require('./helpers/findWalletBookWallet.cjs');
13
- require('./helpers/logger.cjs');
13
+ var logger = require('./helpers/logger.cjs');
14
14
  var getWalletGroup = require('./helpers/getWalletGroup.cjs');
15
15
  var findWalletGroup = require('./helpers/findWalletGroup.cjs');
16
16
  var getWalletBookCdnUrl = require('./helpers/getWalletBookCdnUrl.cjs');
17
17
  var getBrandIconUrl = require('./helpers/getBrandIconUrl.cjs');
18
18
  var findWalletGroupOverride = require('./helpers/findWalletGroupOverride.cjs');
19
- var isWalletMethodSupported = require('./helpers/isWalletMethodSupported.cjs');
20
- var isWalletEventSupported = require('./helpers/isWalletEventSupported.cjs');
19
+ var isWalletBookPopulated = require('./helpers/isWalletBookPopulated.cjs');
21
20
  var useWalletBookCdn = require('./hooks/useWalletBookCdn.cjs');
22
21
  var WalletIcon = require('./components/WalletIcon.cjs');
23
22
  var WalletBookContextProvider = require('./components/WalletBookContextProvider.cjs');
24
23
  var BrandIcon = require('./components/BrandIcon.cjs');
25
24
 
26
-
25
+ assertPackageVersion.assertPackageVersion('@dynamic-labs/wallet-book', _package.version);
27
26
 
28
27
  exports.useWalletBookContext = WalletBookContext.useWalletBookContext;
29
28
  exports.getWalletIconUrl = getWalletIconUrl.getWalletIconUrl;
30
29
  exports.getWalletBookWallet = getWalletBookWallet.getWalletBookWallet;
31
- exports.getWalletLinks = getWalletLinks.getWalletLinks;
32
- exports.getWalletPrimaryColor = getWalletPrimaryColor.getWalletPrimaryColor;
30
+ exports.renderTemplate = renderTemplate.renderTemplate;
33
31
  exports.findWalletBookWallet = findWalletBookWallet.findWalletBookWallet;
32
+ exports.logger = logger.logger;
34
33
  exports.getWalletGroup = getWalletGroup.getWalletGroup;
35
34
  exports.findWalletGroup = findWalletGroup.findWalletGroup;
36
35
  exports.getWalletBookCdnUrl = getWalletBookCdnUrl.getWalletBookCdnUrl;
37
36
  exports.getBrandIconUrl = getBrandIconUrl.getBrandIconUrl;
38
37
  exports.findWalletGroupOverride = findWalletGroupOverride.findWalletGroupOverride;
39
- exports.isWalletMethodSupported = isWalletMethodSupported.isWalletMethodSupported;
40
- exports.isWalletEventSupported = isWalletEventSupported.isWalletEventSupported;
38
+ exports.isWalletBookPopulated = isWalletBookPopulated.isWalletBookPopulated;
41
39
  exports.useWalletBookCdn = useWalletBookCdn.useWalletBookCdn;
42
40
  exports.WalletIcon = WalletIcon.WalletIcon;
43
41
  exports.WalletBookContextProvider = WalletBookContextProvider.WalletBookContextProvider;
package/src/index.d.ts CHANGED
@@ -3,7 +3,6 @@
3
3
  */
4
4
  export type { WalletBookSchema, WalletRecordsSchema, } from './schemas/walletBookSchema';
5
5
  export type { WalletSchema } from './schemas/walletSchema';
6
- export type { WalletLinks } from './helpers';
7
6
  /**
8
7
  * CONTEXT
9
8
  */
@@ -11,7 +10,7 @@ export { useWalletBookContext } from './context/WalletBookContext';
11
10
  /**
12
11
  * HELPERS
13
12
  */
14
- export { getWalletBookWallet, getWalletIconUrl, getWalletLinks, getWalletPrimaryColor, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, isWalletMethodSupported, isWalletEventSupported, } from './helpers';
13
+ export { getWalletBookWallet, getWalletIconUrl, getWalletGroup, getWalletBookCdnUrl, findWalletBookWallet, findWalletGroup, getBrandIconUrl, findWalletGroupOverride, renderTemplate, isWalletBookPopulated, logger, } from './helpers';
15
14
  /**
16
15
  * HOOKS
17
16
  */
package/src/index.js CHANGED
@@ -1,20 +1,21 @@
1
1
  'use client'
2
+ import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
3
+ import { version } from '../package.js';
2
4
  export { useWalletBookContext } from './context/WalletBookContext.js';
3
5
  export { getWalletIconUrl } from './helpers/getWalletIconUrl.js';
4
6
  export { getWalletBookWallet } from './helpers/getWalletBookWallet.js';
5
- export { getWalletLinks } from './helpers/getWalletLinks.js';
6
- export { getWalletPrimaryColor } from './helpers/getWalletPrimaryColor.js';
7
- import './helpers/renderTemplate.js';
7
+ export { renderTemplate } from './helpers/renderTemplate.js';
8
8
  export { findWalletBookWallet } from './helpers/findWalletBookWallet.js';
9
- import './helpers/logger.js';
9
+ export { logger } from './helpers/logger.js';
10
10
  export { getWalletGroup } from './helpers/getWalletGroup.js';
11
11
  export { findWalletGroup } from './helpers/findWalletGroup.js';
12
12
  export { getWalletBookCdnUrl } from './helpers/getWalletBookCdnUrl.js';
13
13
  export { getBrandIconUrl } from './helpers/getBrandIconUrl.js';
14
14
  export { findWalletGroupOverride } from './helpers/findWalletGroupOverride.js';
15
- export { isWalletMethodSupported } from './helpers/isWalletMethodSupported.js';
16
- export { isWalletEventSupported } from './helpers/isWalletEventSupported.js';
15
+ export { isWalletBookPopulated } from './helpers/isWalletBookPopulated.js';
17
16
  export { useWalletBookCdn } from './hooks/useWalletBookCdn.js';
18
17
  export { WalletIcon } from './components/WalletIcon.js';
19
18
  export { WalletBookContextProvider } from './components/WalletBookContextProvider.js';
20
19
  export { BrandIcon } from './components/BrandIcon.js';
20
+
21
+ assertPackageVersion('@dynamic-labs/wallet-book', version);
@@ -65,6 +65,15 @@ var groups = {
65
65
  key: "coinbase",
66
66
  name: "Coinbase"
67
67
  },
68
+ compasswallet: {
69
+ brand: {
70
+ alt: "Compass",
71
+ primaryColor: "#4B49C6",
72
+ spriteId: "1d7dea00-96be-4ce8-ca15-d14bddbb5000"
73
+ },
74
+ key: "compasswallet",
75
+ name: "Compass"
76
+ },
68
77
  exodus: {
69
78
  brand: {
70
79
  alt: "Exodus Wallet",
@@ -73,6 +82,23 @@ var groups = {
73
82
  key: "exodus",
74
83
  name: "Exodus"
75
84
  },
85
+ fireblocks: {
86
+ brand: {
87
+ alt: "Fireblocks",
88
+ spriteId: "fireblocks"
89
+ },
90
+ key: "fireblocks",
91
+ name: "Fireblocks"
92
+ },
93
+ flowwallet: {
94
+ brand: {
95
+ alt: "Flow Wallet",
96
+ primaryColor: "#2BE829",
97
+ spriteId: "flowwallet"
98
+ },
99
+ key: "flowwallet",
100
+ name: "Flow Wallet"
101
+ },
76
102
  keplr: {
77
103
  brand: {
78
104
  alt: "Keplr",
@@ -106,6 +132,14 @@ var groups = {
106
132
  key: "metamask",
107
133
  name: "MetaMask"
108
134
  },
135
+ nightly: {
136
+ brand: {
137
+ alt: "Nightly Wallet",
138
+ spriteId: "nightly"
139
+ },
140
+ key: "nightly",
141
+ name: "Nightly"
142
+ },
109
143
  okxwallet: {
110
144
  brand: {
111
145
  alt: "OKX Wallet",
@@ -117,7 +151,7 @@ var groups = {
117
151
  onekey: {
118
152
  brand: {
119
153
  alt: "OneKey Wallet",
120
- spriteId: "12bebb3f-8030-4892-8452-c60a6bac1500"
154
+ spriteId: "onekey"
121
155
  },
122
156
  key: "onekey",
123
157
  name: "OneKey"
@@ -628,8 +662,19 @@ var wallets = {
628
662
  edgeId: "hkkpjehhcnhgefhbdcgfkeegglpjchdc",
629
663
  firefoxId: "braavos-wallet"
630
664
  },
665
+ injectedConfig: [
666
+ {
667
+ chain: "starknet",
668
+ extensionLocators: [
669
+ ],
670
+ windowLocations: [
671
+ "braavos"
672
+ ]
673
+ }
674
+ ],
631
675
  mobile: {
632
676
  androidId: "app.braavos.wallet",
677
+ inAppBrowser: "https://link.braavos.app/dapp/{{encodedDappURI}}",
633
678
  iosId: "id1636013523"
634
679
  },
635
680
  name: "Braavos"
@@ -811,6 +856,19 @@ var wallets = {
811
856
  filterFromWalletConnect: true,
812
857
  name: "Lilico"
813
858
  },
859
+ flowwalletflow: {
860
+ brand: {
861
+ alt: "Flow Wallet",
862
+ spriteId: "flowwallet"
863
+ },
864
+ chainGroup: "flowwallet",
865
+ desktop: {
866
+ chromeId: "hpclkefagolihohboafpheddmmgdffjm"
867
+ },
868
+ filterFromWalletConnect: true,
869
+ group: "flowwallet",
870
+ name: "Flow Wallet"
871
+ },
814
872
  magicemailotp: {
815
873
  brand: {
816
874
  alt: "Magic Email OTP",
@@ -1011,6 +1069,9 @@ var wallets = {
1011
1069
  desktop: {
1012
1070
  chromeId: "aholpfdialjgjfhomihkjbmgjidlcdno"
1013
1071
  },
1072
+ eip6963Config: {
1073
+ rdns: "com.exodus.web3-wallet"
1074
+ },
1014
1075
  filterFromWalletConnect: true,
1015
1076
  group: "exodus",
1016
1077
  injectedConfig: [
@@ -1118,7 +1179,7 @@ var wallets = {
1118
1179
  iosId: "id1327268470",
1119
1180
  native: "okex://main/wc"
1120
1181
  },
1121
- name: "OKX",
1182
+ name: "OKX Wallet",
1122
1183
  shortName: "OKX Wallet",
1123
1184
  walletConnect: {
1124
1185
  sdks: [
@@ -1195,7 +1256,7 @@ var wallets = {
1195
1256
  inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
1196
1257
  iosId: "id1327268470"
1197
1258
  },
1198
- name: "OKX",
1259
+ name: "OKX Wallet",
1199
1260
  shortName: "OKX Wallet (Bitcoin)",
1200
1261
  walletLimitations: {
1201
1262
  browserExtension: {
@@ -1227,7 +1288,7 @@ var wallets = {
1227
1288
  },
1228
1289
  unknown: {
1229
1290
  brand: {
1230
- spriteId: "captcha-wave"
1291
+ spriteId: "unknown-wallet"
1231
1292
  },
1232
1293
  mobile: {
1233
1294
  androidId: "enable-android",
@@ -1278,9 +1339,6 @@ var wallets = {
1278
1339
  name: "Xverse",
1279
1340
  walletLimitations: {
1280
1341
  browserExtension: {
1281
- unsupportedEvents: [
1282
- "accountChanged"
1283
- ],
1284
1342
  unsupportedMethods: [
1285
1343
  "getConnectedAccounts"
1286
1344
  ]
@@ -1289,7 +1347,7 @@ var wallets = {
1289
1347
  },
1290
1348
  fallbackconnector: {
1291
1349
  brand: {
1292
- spriteId: "captcha-wave"
1350
+ spriteId: "unknown-wallet"
1293
1351
  },
1294
1352
  mobile: {
1295
1353
  androidId: "enable-android",
@@ -1303,6 +1361,94 @@ var wallets = {
1303
1361
  ]
1304
1362
  }
1305
1363
  }
1364
+ },
1365
+ oylwallet: {
1366
+ brand: {
1367
+ alt: "Oyl Wallet",
1368
+ spriteId: "oyl"
1369
+ },
1370
+ desktop: {
1371
+ chromeId: "ilolmnhjbbggkmopnemiphomhaojndmb"
1372
+ },
1373
+ injectedConfig: [
1374
+ {
1375
+ chain: "btc",
1376
+ extensionLocators: [
1377
+ ],
1378
+ windowLocations: [
1379
+ "oyl"
1380
+ ]
1381
+ }
1382
+ ],
1383
+ name: "Oyl Wallet"
1384
+ },
1385
+ abstract: {
1386
+ brand: {
1387
+ alt: "Abstract",
1388
+ spriteId: "abstract"
1389
+ },
1390
+ injectedConfig: [
1391
+ {
1392
+ chain: "evm",
1393
+ extensionLocators: [
1394
+ ]
1395
+ }
1396
+ ],
1397
+ name: "Abstract"
1398
+ },
1399
+ edenonline: {
1400
+ brand: {
1401
+ alt: "Eden Online",
1402
+ spriteId: "edenonline"
1403
+ },
1404
+ injectedConfig: [
1405
+ {
1406
+ chain: "evm",
1407
+ extensionLocators: [
1408
+ ]
1409
+ }
1410
+ ],
1411
+ name: "Eden Online"
1412
+ },
1413
+ onekeybtc: {
1414
+ brand: {
1415
+ alt: "OneKey Wallet",
1416
+ spriteId: "onekey"
1417
+ },
1418
+ chainGroup: "onekey",
1419
+ desktop: {
1420
+ chromeId: "jnmbobjmhlngoefaiojfljckilhhlhcj"
1421
+ },
1422
+ group: "onekey",
1423
+ injectedConfig: [
1424
+ {
1425
+ chain: "btc",
1426
+ extensionLocators: [
1427
+ ],
1428
+ windowLocations: [
1429
+ "$onekey.btc"
1430
+ ]
1431
+ }
1432
+ ],
1433
+ mobile: {
1434
+ androidId: "so.onekey.app.wallet",
1435
+ iosId: "id1609559473"
1436
+ },
1437
+ name: "OneKey"
1438
+ },
1439
+ intersend: {
1440
+ brand: {
1441
+ alt: "Intersend",
1442
+ spriteId: "intersend"
1443
+ },
1444
+ injectedConfig: [
1445
+ {
1446
+ chain: "evm",
1447
+ extensionLocators: [
1448
+ ]
1449
+ }
1450
+ ],
1451
+ name: "Intersend"
1306
1452
  }
1307
1453
  };
1308
1454
  var walletBookFallbacks = {