@lydianpay/lydianconnect-catalog 1.0.2 → 1.1.0
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.cjs +24 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +24 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
var ICON_BASE = "https://wallet-assets.lydian.com/wallets";
|
|
5
5
|
var WALLETS = [
|
|
6
|
-
{ id: "metamask", name: "MetaMask" },
|
|
7
|
-
{ id: "trust", name: "Trust" },
|
|
8
|
-
{ id: "rainbow", name: "Rainbow" },
|
|
9
|
-
{ id: "coinbase", name: "Coinbase" },
|
|
10
|
-
{ id: "zerion", name: "Zerion" },
|
|
11
|
-
{ id: "tokenpocket", name: "Token Pocket" },
|
|
12
|
-
{ id: "blockchaincom", name: "Blockchain.com" },
|
|
13
|
-
{ id: "exodus", name: "Exodus" },
|
|
14
|
-
{ id: "phantom", name: "Phantom" },
|
|
15
|
-
{ id: "okx", name: "OKX" },
|
|
16
|
-
{ id: "cryptocom", name: "Crypto.com" },
|
|
17
|
-
{ id: "argent", name: "Argent" },
|
|
18
|
-
{ id: "safepal", name: "SafePal" },
|
|
19
|
-
{ id: "imtoken", name: "imToken" },
|
|
20
|
-
{ id: "ronin", name: "Ronin" },
|
|
21
|
-
{ id: "coin98", name: "Coin98" },
|
|
22
|
-
{ id: "bitkeep", name: "BitKeep" },
|
|
23
|
-
{ id: "1inch", name: "1inch" },
|
|
24
|
-
{ id: "ledgerlive", name: "Ledger Live" },
|
|
25
|
-
{ id: "atomic", name: "Atomic" },
|
|
26
|
-
{ id: "alpha", name: "Alpha" },
|
|
27
|
-
{ id: "math", name: "Math" },
|
|
28
|
-
{ id: "bitpay", name: "BitPay" }
|
|
6
|
+
{ id: "metamask", name: "MetaMask", namespaces: ["eip155"] },
|
|
7
|
+
{ id: "trust", name: "Trust", namespaces: ["eip155", "solana"] },
|
|
8
|
+
{ id: "rainbow", name: "Rainbow", namespaces: ["eip155"] },
|
|
9
|
+
{ id: "coinbase", name: "Coinbase", namespaces: ["eip155", "solana"] },
|
|
10
|
+
{ id: "zerion", name: "Zerion", namespaces: ["eip155"] },
|
|
11
|
+
{ id: "tokenpocket", name: "Token Pocket", namespaces: ["eip155", "solana"] },
|
|
12
|
+
{ id: "blockchaincom", name: "Blockchain.com", namespaces: ["bip122", "eip155", "solana"] },
|
|
13
|
+
{ id: "exodus", name: "Exodus", namespaces: ["eip155", "solana"] },
|
|
14
|
+
{ id: "phantom", name: "Phantom", namespaces: ["bip122", "eip155", "solana"] },
|
|
15
|
+
{ id: "okx", name: "OKX", namespaces: ["bip122", "eip155", "solana"] },
|
|
16
|
+
{ id: "cryptocom", name: "Crypto.com", namespaces: ["bip122", "eip155", "solana"] },
|
|
17
|
+
{ id: "argent", name: "Argent", namespaces: ["eip155"] },
|
|
18
|
+
{ id: "safepal", name: "SafePal", namespaces: ["eip155", "solana", "ton"] },
|
|
19
|
+
{ id: "imtoken", name: "imToken", namespaces: ["eip155"] },
|
|
20
|
+
{ id: "ronin", name: "Ronin", namespaces: ["eip155"] },
|
|
21
|
+
{ id: "coin98", name: "Coin98", namespaces: ["eip155", "solana"] },
|
|
22
|
+
{ id: "bitkeep", name: "BitKeep", namespaces: ["eip155", "solana"] },
|
|
23
|
+
{ id: "1inch", name: "1inch", namespaces: ["eip155", "solana"] },
|
|
24
|
+
{ id: "ledgerlive", name: "Ledger Live", namespaces: ["bip122", "eip155", "solana"] },
|
|
25
|
+
{ id: "atomic", name: "Atomic", namespaces: ["bip122", "eip155", "solana"] },
|
|
26
|
+
{ id: "alpha", name: "Alpha", namespaces: ["eip155"] },
|
|
27
|
+
{ id: "math", name: "Math", namespaces: ["eip155", "solana"] },
|
|
28
|
+
{ id: "bitpay", name: "BitPay", namespaces: ["eip155"] }
|
|
29
29
|
];
|
|
30
30
|
var WALLET_CATALOG = WALLETS.map((w) => ({
|
|
31
31
|
...w,
|
|
32
32
|
iconUrl: `${ICON_BASE}/${w.id}.png`
|
|
33
33
|
}));
|
|
34
34
|
function getWalletCatalog() {
|
|
35
|
-
return WALLET_CATALOG.map((w) => ({ ...w }));
|
|
35
|
+
return WALLET_CATALOG.map((w) => ({ ...w, namespaces: [...w.namespaces] }));
|
|
36
36
|
}
|
|
37
37
|
function walletName(id) {
|
|
38
38
|
return WALLET_CATALOG.find((w) => w.id === id)?.name;
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAUA,IAAM,SAAA,GAAY,0CAAA;AAQlB,IAAM,OAAA,GAAgC;AAAA,EACpC,EAAE,IAAI,UAAA,EAAY,IAAA,EAAM,YAAY,UAAA,EAAY,CAAC,QAAQ,CAAA,EAAE;AAAA,EAC3D,EAAE,IAAI,OAAA,EAAS,IAAA,EAAM,SAAS,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EAC/D,EAAE,IAAI,SAAA,EAAW,IAAA,EAAM,WAAW,UAAA,EAAY,CAAC,QAAQ,CAAA,EAAE;AAAA,EACzD,EAAE,IAAI,UAAA,EAAY,IAAA,EAAM,YAAY,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EACrE,EAAE,IAAI,QAAA,EAAU,IAAA,EAAM,UAAU,UAAA,EAAY,CAAC,QAAQ,CAAA,EAAE;AAAA,EACvD,EAAE,IAAI,aAAA,EAAe,IAAA,EAAM,gBAAgB,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EAC5E,EAAE,EAAA,EAAI,eAAA,EAAiB,IAAA,EAAM,gBA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AAA,EAAE;AAAA,EAC/D,EAAE,EAAA,EAAI,YAAA,EAAc,IAAA,EAAM,aAAA,EAAe,YAAY,CAAC,QAAA,EAAU,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EACpF,EAAE,EAAA,EAAI,QAAA,EAAU,IAAA,EAAM,QAAA,EAAU,YAAY,CAAC,QAAA,EAAU,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EAC3E,EAAE,IAAI,OAAA,EAAS,IAAA,EAAM,SAAS,UAAA,EAAY,CAAC,QAAQ,CAAA,EAAE;AAAA,EACrD,EAAE,IAAI,MAAA,EAAQ,IAAA,EAAM,QAAQ,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EAC7D,EAAE,IAAI,QAAA,EAAU,IAAA,EAAM,UAAU,UAAA,EAAY,CAAC,QAAQ,CAAA;AACvD,CAAA;AAEO,IAAM,cAAA,GAAgD,OAAA,CAAQ,GAAA,CAAI,CAAC,CAAA,MAAO;AAAA,EAC/E,GAAG,CAAA;AAAA,EACH,OAAA,EAAS,CAAA,EAAG,SAAS,CAAA,CAAA,EAAI,EAAE,EAAE,CAAA,IAAA;AAC/B,CAAA,CAAE;AAMK,SAAS,gBAAA,GAAgD;AAC9D,EAAA,OAAO,cAAA,CAAe,GAAA,CAAI,CAAC,CAAA,MAAO,EAAE,GAAG,CAAA,EAAG,UAAA,EAAY,CAAC,GAAG,CAAA,CAAE,UAAU,GAAE,CAAE,CAAA;AAC5E;AAEO,SAAS,WAAW,EAAA,EAAgC;AACzD,EAAA,OAAO,eAAe,IAAA,CAAK,CAAC,MAAM,CAAA,CAAE,EAAA,KAAO,EAAE,CAAA,EAAG,IAAA;AAClD","file":"index.cjs","sourcesContent":["/** CAIP-2 namespace families a wallet can connect on. */\nexport type WalletNamespace = 'eip155' | 'solana' | 'bip122' | 'tron' | 'ton';\n\nexport interface WalletCatalogEntry {\n id: string;\n name: string;\n iconUrl: string;\n namespaces: readonly WalletNamespace[];\n}\n\nconst ICON_BASE = 'https://wallet-assets.lydian.com/wallets';\n\ninterface WalletDef {\n id: string;\n name: string;\n namespaces: readonly WalletNamespace[];\n}\n\nconst WALLETS: readonly WalletDef[] = [\n { id: 'metamask', name: 'MetaMask', namespaces: ['eip155'] },\n { id: 'trust', name: 'Trust', namespaces: ['eip155', 'solana'] },\n { id: 'rainbow', name: 'Rainbow', namespaces: ['eip155'] },\n { id: 'coinbase', name: 'Coinbase', namespaces: ['eip155', 'solana'] },\n { id: 'zerion', name: 'Zerion', namespaces: ['eip155'] },\n { id: 'tokenpocket', name: 'Token Pocket', namespaces: ['eip155', 'solana'] },\n { id: 'blockchaincom', name: 'Blockchain.com', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'exodus', name: 'Exodus', namespaces: ['eip155', 'solana'] },\n { id: 'phantom', name: 'Phantom', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'okx', name: 'OKX', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'cryptocom', name: 'Crypto.com', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'argent', name: 'Argent', namespaces: ['eip155'] },\n { id: 'safepal', name: 'SafePal', namespaces: ['eip155', 'solana', 'ton'] },\n { id: 'imtoken', name: 'imToken', namespaces: ['eip155'] },\n { id: 'ronin', name: 'Ronin', namespaces: ['eip155'] },\n { id: 'coin98', name: 'Coin98', namespaces: ['eip155', 'solana'] },\n { id: 'bitkeep', name: 'BitKeep', namespaces: ['eip155', 'solana'] },\n { id: '1inch', name: '1inch', namespaces: ['eip155', 'solana'] },\n { id: 'ledgerlive', name: 'Ledger Live', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'atomic', name: 'Atomic', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'alpha', name: 'Alpha', namespaces: ['eip155'] },\n { id: 'math', name: 'Math', namespaces: ['eip155', 'solana'] },\n { id: 'bitpay', name: 'BitPay', namespaces: ['eip155'] },\n];\n\nexport const WALLET_CATALOG: readonly WalletCatalogEntry[] = WALLETS.map((w) => ({\n ...w,\n iconUrl: `${ICON_BASE}/${w.id}.png`,\n}));\n\nexport type MutableWalletCatalogEntry = Omit<WalletCatalogEntry, 'namespaces'> & {\n namespaces: WalletNamespace[];\n};\n\nexport function getWalletCatalog(): MutableWalletCatalogEntry[] {\n return WALLET_CATALOG.map((w) => ({ ...w, namespaces: [...w.namespaces] }));\n}\n\nexport function walletName(id: string): string | undefined {\n return WALLET_CATALOG.find((w) => w.id === id)?.name;\n}\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
/** CAIP-2 namespace families a wallet can connect on. */
|
|
2
|
+
type WalletNamespace = 'eip155' | 'solana' | 'bip122' | 'tron' | 'ton';
|
|
1
3
|
interface WalletCatalogEntry {
|
|
2
4
|
id: string;
|
|
3
5
|
name: string;
|
|
4
6
|
iconUrl: string;
|
|
7
|
+
namespaces: readonly WalletNamespace[];
|
|
5
8
|
}
|
|
6
9
|
declare const WALLET_CATALOG: readonly WalletCatalogEntry[];
|
|
7
|
-
|
|
10
|
+
type MutableWalletCatalogEntry = Omit<WalletCatalogEntry, 'namespaces'> & {
|
|
11
|
+
namespaces: WalletNamespace[];
|
|
12
|
+
};
|
|
13
|
+
declare function getWalletCatalog(): MutableWalletCatalogEntry[];
|
|
8
14
|
declare function walletName(id: string): string | undefined;
|
|
9
15
|
|
|
10
|
-
export { WALLET_CATALOG, type WalletCatalogEntry, getWalletCatalog, walletName };
|
|
16
|
+
export { type MutableWalletCatalogEntry, WALLET_CATALOG, type WalletCatalogEntry, type WalletNamespace, getWalletCatalog, walletName };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
/** CAIP-2 namespace families a wallet can connect on. */
|
|
2
|
+
type WalletNamespace = 'eip155' | 'solana' | 'bip122' | 'tron' | 'ton';
|
|
1
3
|
interface WalletCatalogEntry {
|
|
2
4
|
id: string;
|
|
3
5
|
name: string;
|
|
4
6
|
iconUrl: string;
|
|
7
|
+
namespaces: readonly WalletNamespace[];
|
|
5
8
|
}
|
|
6
9
|
declare const WALLET_CATALOG: readonly WalletCatalogEntry[];
|
|
7
|
-
|
|
10
|
+
type MutableWalletCatalogEntry = Omit<WalletCatalogEntry, 'namespaces'> & {
|
|
11
|
+
namespaces: WalletNamespace[];
|
|
12
|
+
};
|
|
13
|
+
declare function getWalletCatalog(): MutableWalletCatalogEntry[];
|
|
8
14
|
declare function walletName(id: string): string | undefined;
|
|
9
15
|
|
|
10
|
-
export { WALLET_CATALOG, type WalletCatalogEntry, getWalletCatalog, walletName };
|
|
16
|
+
export { type MutableWalletCatalogEntry, WALLET_CATALOG, type WalletCatalogEntry, type WalletNamespace, getWalletCatalog, walletName };
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
var ICON_BASE = "https://wallet-assets.lydian.com/wallets";
|
|
3
3
|
var WALLETS = [
|
|
4
|
-
{ id: "metamask", name: "MetaMask" },
|
|
5
|
-
{ id: "trust", name: "Trust" },
|
|
6
|
-
{ id: "rainbow", name: "Rainbow" },
|
|
7
|
-
{ id: "coinbase", name: "Coinbase" },
|
|
8
|
-
{ id: "zerion", name: "Zerion" },
|
|
9
|
-
{ id: "tokenpocket", name: "Token Pocket" },
|
|
10
|
-
{ id: "blockchaincom", name: "Blockchain.com" },
|
|
11
|
-
{ id: "exodus", name: "Exodus" },
|
|
12
|
-
{ id: "phantom", name: "Phantom" },
|
|
13
|
-
{ id: "okx", name: "OKX" },
|
|
14
|
-
{ id: "cryptocom", name: "Crypto.com" },
|
|
15
|
-
{ id: "argent", name: "Argent" },
|
|
16
|
-
{ id: "safepal", name: "SafePal" },
|
|
17
|
-
{ id: "imtoken", name: "imToken" },
|
|
18
|
-
{ id: "ronin", name: "Ronin" },
|
|
19
|
-
{ id: "coin98", name: "Coin98" },
|
|
20
|
-
{ id: "bitkeep", name: "BitKeep" },
|
|
21
|
-
{ id: "1inch", name: "1inch" },
|
|
22
|
-
{ id: "ledgerlive", name: "Ledger Live" },
|
|
23
|
-
{ id: "atomic", name: "Atomic" },
|
|
24
|
-
{ id: "alpha", name: "Alpha" },
|
|
25
|
-
{ id: "math", name: "Math" },
|
|
26
|
-
{ id: "bitpay", name: "BitPay" }
|
|
4
|
+
{ id: "metamask", name: "MetaMask", namespaces: ["eip155"] },
|
|
5
|
+
{ id: "trust", name: "Trust", namespaces: ["eip155", "solana"] },
|
|
6
|
+
{ id: "rainbow", name: "Rainbow", namespaces: ["eip155"] },
|
|
7
|
+
{ id: "coinbase", name: "Coinbase", namespaces: ["eip155", "solana"] },
|
|
8
|
+
{ id: "zerion", name: "Zerion", namespaces: ["eip155"] },
|
|
9
|
+
{ id: "tokenpocket", name: "Token Pocket", namespaces: ["eip155", "solana"] },
|
|
10
|
+
{ id: "blockchaincom", name: "Blockchain.com", namespaces: ["bip122", "eip155", "solana"] },
|
|
11
|
+
{ id: "exodus", name: "Exodus", namespaces: ["eip155", "solana"] },
|
|
12
|
+
{ id: "phantom", name: "Phantom", namespaces: ["bip122", "eip155", "solana"] },
|
|
13
|
+
{ id: "okx", name: "OKX", namespaces: ["bip122", "eip155", "solana"] },
|
|
14
|
+
{ id: "cryptocom", name: "Crypto.com", namespaces: ["bip122", "eip155", "solana"] },
|
|
15
|
+
{ id: "argent", name: "Argent", namespaces: ["eip155"] },
|
|
16
|
+
{ id: "safepal", name: "SafePal", namespaces: ["eip155", "solana", "ton"] },
|
|
17
|
+
{ id: "imtoken", name: "imToken", namespaces: ["eip155"] },
|
|
18
|
+
{ id: "ronin", name: "Ronin", namespaces: ["eip155"] },
|
|
19
|
+
{ id: "coin98", name: "Coin98", namespaces: ["eip155", "solana"] },
|
|
20
|
+
{ id: "bitkeep", name: "BitKeep", namespaces: ["eip155", "solana"] },
|
|
21
|
+
{ id: "1inch", name: "1inch", namespaces: ["eip155", "solana"] },
|
|
22
|
+
{ id: "ledgerlive", name: "Ledger Live", namespaces: ["bip122", "eip155", "solana"] },
|
|
23
|
+
{ id: "atomic", name: "Atomic", namespaces: ["bip122", "eip155", "solana"] },
|
|
24
|
+
{ id: "alpha", name: "Alpha", namespaces: ["eip155"] },
|
|
25
|
+
{ id: "math", name: "Math", namespaces: ["eip155", "solana"] },
|
|
26
|
+
{ id: "bitpay", name: "BitPay", namespaces: ["eip155"] }
|
|
27
27
|
];
|
|
28
28
|
var WALLET_CATALOG = WALLETS.map((w) => ({
|
|
29
29
|
...w,
|
|
30
30
|
iconUrl: `${ICON_BASE}/${w.id}.png`
|
|
31
31
|
}));
|
|
32
32
|
function getWalletCatalog() {
|
|
33
|
-
return WALLET_CATALOG.map((w) => ({ ...w }));
|
|
33
|
+
return WALLET_CATALOG.map((w) => ({ ...w, namespaces: [...w.namespaces] }));
|
|
34
34
|
}
|
|
35
35
|
function walletName(id) {
|
|
36
36
|
return WALLET_CATALOG.find((w) => w.id === id)?.name;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAUA,IAAM,SAAA,GAAY,0CAAA;AAQlB,IAAM,OAAA,GAAgC;AAAA,EACpC,EAAE,IAAI,UAAA,EAAY,IAAA,EAAM,YAAY,UAAA,EAAY,CAAC,QAAQ,CAAA,EAAE;AAAA,EAC3D,EAAE,IAAI,OAAA,EAAS,IAAA,EAAM,SAAS,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EAC/D,EAAE,IAAI,SAAA,EAAW,IAAA,EAAM,WAAW,UAAA,EAAY,CAAC,QAAQ,CAAA,EAAE;AAAA,EACzD,EAAE,IAAI,UAAA,EAAY,IAAA,EAAM,YAAY,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EACrE,EAAE,IAAI,QAAA,EAAU,IAAA,EAAM,UAA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AAO,EAAE,CAAA,EAAG,IAAA;AAClD","file":"index.js","sourcesContent":["/** CAIP-2 namespace families a wallet can connect on. */\nexport type WalletNamespace = 'eip155' | 'solana' | 'bip122' | 'tron' | 'ton';\n\nexport interface WalletCatalogEntry {\n id: string;\n name: string;\n iconUrl: string;\n namespaces: readonly WalletNamespace[];\n}\n\nconst ICON_BASE = 'https://wallet-assets.lydian.com/wallets';\n\ninterface WalletDef {\n id: string;\n name: string;\n namespaces: readonly WalletNamespace[];\n}\n\nconst WALLETS: readonly WalletDef[] = [\n { id: 'metamask', name: 'MetaMask', namespaces: ['eip155'] },\n { id: 'trust', name: 'Trust', namespaces: ['eip155', 'solana'] },\n { id: 'rainbow', name: 'Rainbow', namespaces: ['eip155'] },\n { id: 'coinbase', name: 'Coinbase', namespaces: ['eip155', 'solana'] },\n { id: 'zerion', name: 'Zerion', namespaces: ['eip155'] },\n { id: 'tokenpocket', name: 'Token Pocket', namespaces: ['eip155', 'solana'] },\n { id: 'blockchaincom', name: 'Blockchain.com', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'exodus', name: 'Exodus', namespaces: ['eip155', 'solana'] },\n { id: 'phantom', name: 'Phantom', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'okx', name: 'OKX', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'cryptocom', name: 'Crypto.com', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'argent', name: 'Argent', namespaces: ['eip155'] },\n { id: 'safepal', name: 'SafePal', namespaces: ['eip155', 'solana', 'ton'] },\n { id: 'imtoken', name: 'imToken', namespaces: ['eip155'] },\n { id: 'ronin', name: 'Ronin', namespaces: ['eip155'] },\n { id: 'coin98', name: 'Coin98', namespaces: ['eip155', 'solana'] },\n { id: 'bitkeep', name: 'BitKeep', namespaces: ['eip155', 'solana'] },\n { id: '1inch', name: '1inch', namespaces: ['eip155', 'solana'] },\n { id: 'ledgerlive', name: 'Ledger Live', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'atomic', name: 'Atomic', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'alpha', name: 'Alpha', namespaces: ['eip155'] },\n { id: 'math', name: 'Math', namespaces: ['eip155', 'solana'] },\n { id: 'bitpay', name: 'BitPay', namespaces: ['eip155'] },\n];\n\nexport const WALLET_CATALOG: readonly WalletCatalogEntry[] = WALLETS.map((w) => ({\n ...w,\n iconUrl: `${ICON_BASE}/${w.id}.png`,\n}));\n\nexport type MutableWalletCatalogEntry = Omit<WalletCatalogEntry, 'namespaces'> & {\n namespaces: WalletNamespace[];\n};\n\nexport function getWalletCatalog(): MutableWalletCatalogEntry[] {\n return WALLET_CATALOG.map((w) => ({ ...w, namespaces: [...w.namespaces] }));\n}\n\nexport function walletName(id: string): string | undefined {\n return WALLET_CATALOG.find((w) => w.id === id)?.name;\n}\n"]}
|
package/package.json
CHANGED