@lydianpay/lydianconnect-catalog 1.0.2 → 1.2.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/README.md CHANGED
@@ -29,7 +29,7 @@ walletName('cryptocom'); // 'Crypto.com'
29
29
  | `WALLET_CATALOG` | `readonly WalletCatalogEntry[]` — the full list. |
30
30
  | `getWalletCatalog()` | A fresh, mutable copy of the list. |
31
31
  | `walletName(id)` | Display name for a wallet id, or `undefined`. |
32
- | `WalletCatalogEntry` | `{ id: string; name: string; iconUrl: string }`. |
32
+ | `WalletCatalogEntry` | `{ id: string; name: string; iconUrl: string; namespaces: WalletNamespace[] }`. |
33
33
 
34
34
  `id` matches the value passed to `LydianConnect.connect({ walletId })` in
35
35
  `@lydianpay/lydianconnect`. `iconUrl` is derived from the id:
@@ -42,3 +42,72 @@ walletName('cryptocom'); // 'Crypto.com'
42
42
  2. Keep the id set in sync with the wallets `@lydianpay/lydianconnect` can
43
43
  connect to — a wallet offered here must be connectable there.
44
44
  3. Make sure the wallet's icon is available at its derived `iconUrl`.
45
+ 4. Run `UPDATE_README=1 npx vitest run readme-table` to refresh the table below
46
+ (a test fails if it drifts from the catalog).
47
+
48
+ ## Supported wallets
49
+
50
+ The canonical list, rendered from `WALLET_CATALOG`. **`id`** is the value you pass
51
+ to `LydianConnect.connect({ walletId })`; **Connects on** is the CAIP-2 namespace
52
+ families the wallet can connect on.
53
+
54
+ <!-- BEGIN WALLET TABLE -->
55
+
56
+ | Logo | Wallet | `id` | Connects on |
57
+ | :--: | ------ | ---- | ----------- |
58
+ | <img src="https://wallet-assets.lydian.com/wallets/metamask.png" alt="MetaMask" width="28" height="28" /> | MetaMask | `metamask` | `eip155` |
59
+ | <img src="https://wallet-assets.lydian.com/wallets/trust.png" alt="Trust" width="28" height="28" /> | Trust | `trust` | `eip155`, `solana` |
60
+ | <img src="https://wallet-assets.lydian.com/wallets/rainbow.png" alt="Rainbow" width="28" height="28" /> | Rainbow | `rainbow` | `eip155` |
61
+ | <img src="https://wallet-assets.lydian.com/wallets/coinbase.png" alt="Coinbase" width="28" height="28" /> | Coinbase | `coinbase` | `eip155`, `solana` |
62
+ | <img src="https://wallet-assets.lydian.com/wallets/zerion.png" alt="Zerion" width="28" height="28" /> | Zerion | `zerion` | `eip155` |
63
+ | <img src="https://wallet-assets.lydian.com/wallets/tokenpocket.png" alt="Token Pocket" width="28" height="28" /> | Token Pocket | `tokenpocket` | `eip155`, `solana` |
64
+ | <img src="https://wallet-assets.lydian.com/wallets/blockchaincom.png" alt="Blockchain.com" width="28" height="28" /> | Blockchain.com | `blockchaincom` | `bip122`, `eip155`, `solana` |
65
+ | <img src="https://wallet-assets.lydian.com/wallets/exodus.png" alt="Exodus" width="28" height="28" /> | Exodus | `exodus` | `eip155`, `solana` |
66
+ | <img src="https://wallet-assets.lydian.com/wallets/phantom.png" alt="Phantom" width="28" height="28" /> | Phantom | `phantom` | `bip122`, `eip155`, `solana` |
67
+ | <img src="https://wallet-assets.lydian.com/wallets/okx.png" alt="OKX" width="28" height="28" /> | OKX | `okx` | `bip122`, `eip155`, `solana` |
68
+ | <img src="https://wallet-assets.lydian.com/wallets/cryptocom.png" alt="Crypto.com" width="28" height="28" /> | Crypto.com | `cryptocom` | `bip122`, `eip155`, `solana` |
69
+ | <img src="https://wallet-assets.lydian.com/wallets/argent.png" alt="Argent" width="28" height="28" /> | Argent | `argent` | `eip155` |
70
+ | <img src="https://wallet-assets.lydian.com/wallets/safepal.png" alt="SafePal" width="28" height="28" /> | SafePal | `safepal` | `eip155`, `solana`, `ton` |
71
+ | <img src="https://wallet-assets.lydian.com/wallets/imtoken.png" alt="imToken" width="28" height="28" /> | imToken | `imtoken` | `eip155` |
72
+ | <img src="https://wallet-assets.lydian.com/wallets/ronin.png" alt="Ronin" width="28" height="28" /> | Ronin | `ronin` | `eip155` |
73
+ | <img src="https://wallet-assets.lydian.com/wallets/coin98.png" alt="Coin98" width="28" height="28" /> | Coin98 | `coin98` | `eip155`, `solana` |
74
+ | <img src="https://wallet-assets.lydian.com/wallets/bitkeep.png" alt="Bitget Wallet" width="28" height="28" /> | Bitget Wallet | `bitkeep` | `eip155`, `solana` |
75
+ | <img src="https://wallet-assets.lydian.com/wallets/1inch.png" alt="1inch" width="28" height="28" /> | 1inch | `1inch` | `eip155`, `solana` |
76
+ | <img src="https://wallet-assets.lydian.com/wallets/ledgerlive.png" alt="Ledger Live" width="28" height="28" /> | Ledger Live | `ledgerlive` | `bip122`, `eip155`, `solana` |
77
+ | <img src="https://wallet-assets.lydian.com/wallets/atomic.png" alt="Atomic" width="28" height="28" /> | Atomic | `atomic` | `bip122`, `eip155`, `solana` |
78
+ | <img src="https://wallet-assets.lydian.com/wallets/alpha.png" alt="Alpha" width="28" height="28" /> | Alpha | `alpha` | `eip155` |
79
+ | <img src="https://wallet-assets.lydian.com/wallets/math.png" alt="Math" width="28" height="28" /> | Math | `math` | `eip155`, `solana` |
80
+ | <img src="https://wallet-assets.lydian.com/wallets/bitpay.png" alt="BitPay" width="28" height="28" /> | BitPay | `bitpay` | `eip155` |
81
+ | <img src="https://wallet-assets.lydian.com/wallets/rabby.png" alt="Rabby" width="28" height="28" /> | Rabby | `rabby` | `eip155` |
82
+ | <img src="https://wallet-assets.lydian.com/wallets/bybit.png" alt="Bybit" width="28" height="28" /> | Bybit | `bybit` | `eip155`, `solana` |
83
+ | <img src="https://wallet-assets.lydian.com/wallets/binance.png" alt="Binance" width="28" height="28" /> | Binance | `binance` | `eip155`, `solana` |
84
+ | <img src="https://wallet-assets.lydian.com/wallets/gate.png" alt="Gate Wallet" width="28" height="28" /> | Gate Wallet | `gate` | `eip155` |
85
+ | <img src="https://wallet-assets.lydian.com/wallets/core.png" alt="Core" width="28" height="28" /> | Core | `core` | `eip155`, `solana` |
86
+ | <img src="https://wallet-assets.lydian.com/wallets/backpack.png" alt="Backpack" width="28" height="28" /> | Backpack | `backpack` | `eip155`, `solana` |
87
+ | <img src="https://wallet-assets.lydian.com/wallets/frontier.png" alt="Frontier" width="28" height="28" /> | Frontier | `frontier` | `eip155` |
88
+ | <img src="https://wallet-assets.lydian.com/wallets/onekey.png" alt="OneKey" width="28" height="28" /> | OneKey | `onekey` | `eip155` |
89
+ | <img src="https://wallet-assets.lydian.com/wallets/kraken.png" alt="Kraken" width="28" height="28" /> | Kraken | `kraken` | `eip155`, `solana` |
90
+ | <img src="https://wallet-assets.lydian.com/wallets/uniswap.png" alt="Uniswap Wallet" width="28" height="28" /> | Uniswap Wallet | `uniswap` | `eip155` |
91
+ | <img src="https://wallet-assets.lydian.com/wallets/omni.png" alt="Omni" width="28" height="28" /> | Omni | `omni` | `eip155` |
92
+ | <img src="https://wallet-assets.lydian.com/wallets/mew.png" alt="MEW Wallet" width="28" height="28" /> | MEW Wallet | `mew` | `eip155` |
93
+ | <img src="https://wallet-assets.lydian.com/wallets/foxwallet.png" alt="FoxWallet" width="28" height="28" /> | FoxWallet | `foxwallet` | `eip155` |
94
+ | <img src="https://wallet-assets.lydian.com/wallets/nova.png" alt="Nova Wallet" width="28" height="28" /> | Nova Wallet | `nova` | `eip155` |
95
+ | <img src="https://wallet-assets.lydian.com/wallets/subwallet.png" alt="SubWallet" width="28" height="28" /> | SubWallet | `subwallet` | `eip155` |
96
+ | <img src="https://wallet-assets.lydian.com/wallets/safe.png" alt="Safe" width="28" height="28" /> | Safe | `safe` | `eip155` |
97
+ | <img src="https://wallet-assets.lydian.com/wallets/robinhood.png" alt="Robinhood Wallet" width="28" height="28" /> | Robinhood Wallet | `robinhood` | `eip155` |
98
+ | <img src="https://wallet-assets.lydian.com/wallets/tangem.png" alt="Tangem" width="28" height="28" /> | Tangem | `tangem` | `eip155`, `solana` |
99
+ | <img src="https://wallet-assets.lydian.com/wallets/trezor.png" alt="Trezor" width="28" height="28" /> | Trezor | `trezor` | `bip122`, `eip155`, `solana` |
100
+ | <img src="https://wallet-assets.lydian.com/wallets/kucoin.png" alt="KuCoin" width="28" height="28" /> | KuCoin | `kucoin` | `eip155`, `solana` |
101
+ | <img src="https://wallet-assets.lydian.com/wallets/jupiter.png" alt="Jupiter" width="28" height="28" /> | Jupiter | `jupiter` | `solana` |
102
+ | <img src="https://wallet-assets.lydian.com/wallets/zengo.png" alt="Zengo" width="28" height="28" /> | Zengo | `zengo` | `eip155` |
103
+ | <img src="https://wallet-assets.lydian.com/wallets/bitcoincom.png" alt="Bitcoin.com" width="28" height="28" /> | Bitcoin.com | `bitcoincom` | `eip155` |
104
+ | <img src="https://wallet-assets.lydian.com/wallets/keplr.png" alt="Keplr" width="28" height="28" /> | Keplr | `keplr` | `eip155` |
105
+ | <img src="https://wallet-assets.lydian.com/wallets/cake.png" alt="Cake Wallet" width="28" height="28" /> | Cake Wallet | `cake` | `eip155`, `solana` |
106
+ | <img src="https://wallet-assets.lydian.com/wallets/unstoppable.png" alt="Unstoppable" width="28" height="28" /> | Unstoppable | `unstoppable` | `eip155` |
107
+ | <img src="https://wallet-assets.lydian.com/wallets/bifrost.png" alt="Bifrost" width="28" height="28" /> | Bifrost | `bifrost` | `bip122`, `eip155` |
108
+ | <img src="https://wallet-assets.lydian.com/wallets/pintu.png" alt="Pintu" width="28" height="28" /> | Pintu | `pintu` | `eip155` |
109
+ | <img src="https://wallet-assets.lydian.com/wallets/hot.png" alt="HOT Wallet" width="28" height="28" /> | HOT Wallet | `hot` | `eip155`, `solana` |
110
+ | <img src="https://wallet-assets.lydian.com/wallets/arculus.png" alt="Arculus" width="28" height="28" /> | Arculus | `arculus` | `bip122`, `eip155`, `solana` |
111
+
112
+ <!-- END WALLET TABLE -->
113
+
package/dist/index.cjs CHANGED
@@ -3,36 +3,66 @@
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: "Bitget Wallet", 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
+ { id: "rabby", name: "Rabby", namespaces: ["eip155"] },
30
+ { id: "bybit", name: "Bybit", namespaces: ["eip155", "solana"] },
31
+ { id: "binance", name: "Binance", namespaces: ["eip155", "solana"] },
32
+ { id: "gate", name: "Gate Wallet", namespaces: ["eip155"] },
33
+ { id: "core", name: "Core", namespaces: ["eip155", "solana"] },
34
+ { id: "backpack", name: "Backpack", namespaces: ["eip155", "solana"] },
35
+ { id: "frontier", name: "Frontier", namespaces: ["eip155"] },
36
+ { id: "onekey", name: "OneKey", namespaces: ["eip155"] },
37
+ { id: "kraken", name: "Kraken", namespaces: ["eip155", "solana"] },
38
+ { id: "uniswap", name: "Uniswap Wallet", namespaces: ["eip155"] },
39
+ { id: "omni", name: "Omni", namespaces: ["eip155"] },
40
+ { id: "mew", name: "MEW Wallet", namespaces: ["eip155"] },
41
+ { id: "foxwallet", name: "FoxWallet", namespaces: ["eip155"] },
42
+ { id: "nova", name: "Nova Wallet", namespaces: ["eip155"] },
43
+ { id: "subwallet", name: "SubWallet", namespaces: ["eip155"] },
44
+ { id: "safe", name: "Safe", namespaces: ["eip155"] },
45
+ { id: "robinhood", name: "Robinhood Wallet", namespaces: ["eip155"] },
46
+ { id: "tangem", name: "Tangem", namespaces: ["eip155", "solana"] },
47
+ { id: "trezor", name: "Trezor", namespaces: ["bip122", "eip155", "solana"] },
48
+ { id: "kucoin", name: "KuCoin", namespaces: ["eip155", "solana"] },
49
+ { id: "jupiter", name: "Jupiter", namespaces: ["solana"] },
50
+ { id: "zengo", name: "Zengo", namespaces: ["eip155"] },
51
+ { id: "bitcoincom", name: "Bitcoin.com", namespaces: ["eip155"] },
52
+ { id: "keplr", name: "Keplr", namespaces: ["eip155"] },
53
+ { id: "cake", name: "Cake Wallet", namespaces: ["eip155", "solana"] },
54
+ { id: "unstoppable", name: "Unstoppable", namespaces: ["eip155"] },
55
+ { id: "bifrost", name: "Bifrost", namespaces: ["bip122", "eip155"] },
56
+ { id: "pintu", name: "Pintu", namespaces: ["eip155"] },
57
+ { id: "hot", name: "HOT Wallet", namespaces: ["eip155", "solana"] },
58
+ { id: "arculus", name: "Arculus", namespaces: ["bip122", "eip155", "solana"] }
29
59
  ];
30
60
  var WALLET_CATALOG = WALLETS.map((w) => ({
31
61
  ...w,
32
62
  iconUrl: `${ICON_BASE}/${w.id}.png`
33
63
  }));
34
64
  function getWalletCatalog() {
35
- return WALLET_CATALOG.map((w) => ({ ...w }));
65
+ return WALLET_CATALOG.map((w) => ({ ...w, namespaces: [...w.namespaces] }));
36
66
  }
37
67
  function walletName(id) {
38
68
  return WALLET_CATALOG.find((w) => w.id === id)?.name;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAMA,IAAM,SAAA,GAAY,0CAAA;AAOlB,IAAM,OAAA,GAAgC;AAAA,EACpC,EAAE,EAAA,EAAI,UAAA,EAAY,IAAA,EAAM,UAAA,EAAW;AAAA,EACnC,EAAE,EAAA,EAAI,OAAA,EAAS,IAAA,EAAM,OAAA,EAAQ;AAAA,EAC7B,EAAE,EAAA,EAAI,SAAA,EAAW,IAAA,EAAM,SAAA,EAAU;AAAA,EACjC,EAAE,EAAA,EAAI,UAAA,EAAY,IAAA,EAAM,UAAA,EAAW;AAAA,EACnC,EAAE,EAAA,EAAI,QAAA,EAAU,IAAA,EAAM,QAAA,EAAS;AAAA,EAC/B,EAAE,EAAA,EAAI,aAAA,EAAe,IAAA,EAAM,cAAA,EAAe;AAAA,EAC1C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;AAAA,EACH,OAAA,EAAS,CAAA,EAAG,SAAS,CAAA,CAAA,EAAI,EAAE,EAAE,CAAA,IAAA;AAC/B,CAAA,CAAE;AAEK,SAAS,gBAAA,GAAyC;AACvD,EAAA,OAAO,eAAe,GAAA,CAAI,CAAC,OAAO,EAAE,GAAG,GAAE,CAAE,CAAA;AAC7C;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":["export interface WalletCatalogEntry {\n id: string;\n name: string;\n iconUrl: string;\n}\n\nconst ICON_BASE = 'https://wallet-assets.lydian.com/wallets';\n\ninterface WalletDef {\n id: string;\n name: string;\n}\n\nconst WALLETS: readonly WalletDef[] = [\n { id: 'metamask', name: 'MetaMask' },\n { id: 'trust', name: 'Trust' },\n { id: 'rainbow', name: 'Rainbow' },\n { id: 'coinbase', name: 'Coinbase' },\n { id: 'zerion', name: 'Zerion' },\n { id: 'tokenpocket', name: 'Token Pocket' },\n { id: 'blockchaincom', name: 'Blockchain.com' },\n { id: 'exodus', name: 'Exodus' },\n { id: 'phantom', name: 'Phantom' },\n { id: 'okx', name: 'OKX' },\n { id: 'cryptocom', name: 'Crypto.com' },\n { id: 'argent', name: 'Argent' },\n { id: 'safepal', name: 'SafePal' },\n { id: 'imtoken', name: 'imToken' },\n { id: 'ronin', name: 'Ronin' },\n { id: 'coin98', name: 'Coin98' },\n { id: 'bitkeep', name: 'BitKeep' },\n { id: '1inch', name: '1inch' },\n { id: 'ledgerlive', name: 'Ledger Live' },\n { id: 'atomic', name: 'Atomic' },\n { id: 'alpha', name: 'Alpha' },\n { id: 'math', name: 'Math' },\n { id: 'bitpay', name: 'BitPay' },\n];\n\nexport const WALLET_CATALOG: readonly WalletCatalogEntry[] = WALLETS.map((w) => ({\n ...w,\n iconUrl: `${ICON_BASE}/${w.id}.png`,\n}));\n\nexport function getWalletCatalog(): WalletCatalogEntry[] {\n return WALLET_CATALOG.map((w) => ({ ...w }));\n}\n\nexport function walletName(id: string): string | undefined {\n return WALLET_CATALOG.find((w) => w.id === id)?.name;\n}\n"]}
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,gBAAA,EAAkB,YAAY,CAAC,QAAA,EAAU,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EAC1F,EAAE,IAAI,QAAA,EAAU,IAAA,EAAM,UAAU,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EACjE,EAAE,EAAA,EAAI,SAAA,EAAW,IAAA,EAAM,SAAA,EAAW,YAAY,CAAC,QAAA,EAAU,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EAC7E,EAAE,EAAA,EAAI,KAAA,EAAO,IAAA,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AIP-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: 'Bitget Wallet', 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 { id: 'rabby', name: 'Rabby', namespaces: ['eip155'] },\n { id: 'bybit', name: 'Bybit', namespaces: ['eip155', 'solana'] },\n { id: 'binance', name: 'Binance', namespaces: ['eip155', 'solana'] },\n { id: 'gate', name: 'Gate Wallet', namespaces: ['eip155'] },\n { id: 'core', name: 'Core', namespaces: ['eip155', 'solana'] },\n { id: 'backpack', name: 'Backpack', namespaces: ['eip155', 'solana'] },\n { id: 'frontier', name: 'Frontier', namespaces: ['eip155'] },\n { id: 'onekey', name: 'OneKey', namespaces: ['eip155'] },\n { id: 'kraken', name: 'Kraken', namespaces: ['eip155', 'solana'] },\n { id: 'uniswap', name: 'Uniswap Wallet', namespaces: ['eip155'] },\n { id: 'omni', name: 'Omni', namespaces: ['eip155'] },\n { id: 'mew', name: 'MEW Wallet', namespaces: ['eip155'] },\n { id: 'foxwallet', name: 'FoxWallet', namespaces: ['eip155'] },\n { id: 'nova', name: 'Nova Wallet', namespaces: ['eip155'] },\n { id: 'subwallet', name: 'SubWallet', namespaces: ['eip155'] },\n { id: 'safe', name: 'Safe', namespaces: ['eip155'] },\n { id: 'robinhood', name: 'Robinhood Wallet', namespaces: ['eip155'] },\n { id: 'tangem', name: 'Tangem', namespaces: ['eip155', 'solana'] },\n { id: 'trezor', name: 'Trezor', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'kucoin', name: 'KuCoin', namespaces: ['eip155', 'solana'] },\n { id: 'jupiter', name: 'Jupiter', namespaces: ['solana'] },\n { id: 'zengo', name: 'Zengo', namespaces: ['eip155'] },\n { id: 'bitcoincom', name: 'Bitcoin.com', namespaces: ['eip155'] },\n { id: 'keplr', name: 'Keplr', namespaces: ['eip155'] },\n { id: 'cake', name: 'Cake Wallet', namespaces: ['eip155', 'solana'] },\n { id: 'unstoppable', name: 'Unstoppable', namespaces: ['eip155'] },\n { id: 'bifrost', name: 'Bifrost', namespaces: ['bip122', 'eip155'] },\n { id: 'pintu', name: 'Pintu', namespaces: ['eip155'] },\n { id: 'hot', name: 'HOT Wallet', namespaces: ['eip155', 'solana'] },\n { id: 'arculus', name: 'Arculus', namespaces: ['bip122', 'eip155', 'solana'] },\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
- declare function getWalletCatalog(): WalletCatalogEntry[];
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
- declare function getWalletCatalog(): WalletCatalogEntry[];
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,66 @@
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: "Bitget Wallet", 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
+ { id: "rabby", name: "Rabby", namespaces: ["eip155"] },
28
+ { id: "bybit", name: "Bybit", namespaces: ["eip155", "solana"] },
29
+ { id: "binance", name: "Binance", namespaces: ["eip155", "solana"] },
30
+ { id: "gate", name: "Gate Wallet", namespaces: ["eip155"] },
31
+ { id: "core", name: "Core", namespaces: ["eip155", "solana"] },
32
+ { id: "backpack", name: "Backpack", namespaces: ["eip155", "solana"] },
33
+ { id: "frontier", name: "Frontier", namespaces: ["eip155"] },
34
+ { id: "onekey", name: "OneKey", namespaces: ["eip155"] },
35
+ { id: "kraken", name: "Kraken", namespaces: ["eip155", "solana"] },
36
+ { id: "uniswap", name: "Uniswap Wallet", namespaces: ["eip155"] },
37
+ { id: "omni", name: "Omni", namespaces: ["eip155"] },
38
+ { id: "mew", name: "MEW Wallet", namespaces: ["eip155"] },
39
+ { id: "foxwallet", name: "FoxWallet", namespaces: ["eip155"] },
40
+ { id: "nova", name: "Nova Wallet", namespaces: ["eip155"] },
41
+ { id: "subwallet", name: "SubWallet", namespaces: ["eip155"] },
42
+ { id: "safe", name: "Safe", namespaces: ["eip155"] },
43
+ { id: "robinhood", name: "Robinhood Wallet", namespaces: ["eip155"] },
44
+ { id: "tangem", name: "Tangem", namespaces: ["eip155", "solana"] },
45
+ { id: "trezor", name: "Trezor", namespaces: ["bip122", "eip155", "solana"] },
46
+ { id: "kucoin", name: "KuCoin", namespaces: ["eip155", "solana"] },
47
+ { id: "jupiter", name: "Jupiter", namespaces: ["solana"] },
48
+ { id: "zengo", name: "Zengo", namespaces: ["eip155"] },
49
+ { id: "bitcoincom", name: "Bitcoin.com", namespaces: ["eip155"] },
50
+ { id: "keplr", name: "Keplr", namespaces: ["eip155"] },
51
+ { id: "cake", name: "Cake Wallet", namespaces: ["eip155", "solana"] },
52
+ { id: "unstoppable", name: "Unstoppable", namespaces: ["eip155"] },
53
+ { id: "bifrost", name: "Bifrost", namespaces: ["bip122", "eip155"] },
54
+ { id: "pintu", name: "Pintu", namespaces: ["eip155"] },
55
+ { id: "hot", name: "HOT Wallet", namespaces: ["eip155", "solana"] },
56
+ { id: "arculus", name: "Arculus", namespaces: ["bip122", "eip155", "solana"] }
27
57
  ];
28
58
  var WALLET_CATALOG = WALLETS.map((w) => ({
29
59
  ...w,
30
60
  iconUrl: `${ICON_BASE}/${w.id}.png`
31
61
  }));
32
62
  function getWalletCatalog() {
33
- return WALLET_CATALOG.map((w) => ({ ...w }));
63
+ return WALLET_CATALOG.map((w) => ({ ...w, namespaces: [...w.namespaces] }));
34
64
  }
35
65
  function walletName(id) {
36
66
  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":";AAMA,IAAM,SAAA,GAAY,0CAAA;AAOlB,IAAM,OAAA,GAAgC;AAAA,EACpC,EAAE,EAAA,EAAI,UAAA,EAAY,IAAA,EAAM,UAAA,EAAW;AAAA,EACnC,EAAE,EAAA,EAAI,OAAA,EAAS,IAAA,EAAM,OAAA,EAAQ;AAAA,EAC7B,EAAE,EAAA,EAAI,SAAA,EAAW,IAAA,EAAM,SAAA,EAAU;AAAA,EACjC,EAAE,EAAA,EAAI,UAAA,EAAY,IAAA,EAAM,UAAA,EAAW;AAAA,EACnC,EAAE,EAAA,EAAI,QAAA,EAAU,IAAA,EAAM,QAAA,EAAS;AAAA,EAC/B,EAAE,EAAA,EAAI,aAAA,EAAe,IAAA,EAAM,cAAA,EAAe;AAAA,EAC1C,EAAE,EAAA,EAAI,eAAA,EAAiB,IAAA,EAAM,gBAAA,EAAiB;AAAA,EAC9C,EAAE,EAAA,EAAI,QAAA,EAAU,IAAA,EAAM,QAAA,EAAS;AAAA,EAC/B,EAAE,EAAA,EAAI,SAAA,EAAW,IAAA,EAAM,SAAA,EAAU;AAAA,EACjC,EAAE,EAAA,EAAI,KAAA,EAAO,IAAA,EAAM,KAAA,EAAM;AAAA,EACzB,EAAE,EAAA,EAAI,WAAA,EAAa,IAAA,EAAM,YAAA,EAAa;AAAA,EACtC,EAAE,EAAA,EAAI,QAAA,EAAU,IAAA,EAAM,QAAA,EAAS;AAAA,EAC/B,EAAE,EAAA,EAAI,SAAA,EAAW,IAAA,EAAM,SAAA,EAAU;AAAA,EACjC,EAAE,EAAA,EAAI,SAAA,EAAW,IAAA,EAAM,SAAA,EAAU;AAAA,EACjC,EAAE,EAAA,EAAI,OAAA,EAAS,IAAA,EAAM,OAAA,EAAQ;AAAA,EAC7B,EAAE,EAAA,EAAI,QAAA,EAAU,IAAA,EAAM,QAAA,EAAS;AAAA,EAC/B,EAAE,EAAA,EAAI,SAAA,EAAW,IAAA,EAAM,SAAA,EAAU;AAAA,EACjC,EAAE,EAAA,EAAI,OAAA,EAAS,IAAA,EAAM,OAAA,EAAQ;AAAA,EAC7B,EAAE,EAAA,EAAI,YAAA,EAAc,IAAA,EAAM,aAAA,EAAc;AAAA,EACxC,EAAE,EAAA,EAAI,QAAA,EAAU,IAAA,EAAM,QAAA,EAAS;AAAA,EAC/B,EAAE,EAAA,EAAI,OAAA,EAAS,IAAA,EAAM,OAAA,EAAQ;AAAA,EAC7B,EAAE,EAAA,EAAI,MAAA,EAAQ,IAAA,EAAM,MAAA,EAAO;AAAA,EAC3B,EAAE,EAAA,EAAI,QAAA,EAAU,IAAA,EAAM,QAAA;AACxB,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;AAEK,SAAS,gBAAA,GAAyC;AACvD,EAAA,OAAO,eAAe,GAAA,CAAI,CAAC,OAAO,EAAE,GAAG,GAAE,CAAE,CAAA;AAC7C;AAEO,SAAS,WAAW,EAAA,EAAgC;AACzD,EAAA,OAAO,eAAe,IAAA,CAAK,CAAC,MAAM,CAAA,CAAE,EAAA,KAAO,EAAE,CAAA,EAAG,IAAA;AAClD","file":"index.js","sourcesContent":["export interface WalletCatalogEntry {\n id: string;\n name: string;\n iconUrl: string;\n}\n\nconst ICON_BASE = 'https://wallet-assets.lydian.com/wallets';\n\ninterface WalletDef {\n id: string;\n name: string;\n}\n\nconst WALLETS: readonly WalletDef[] = [\n { id: 'metamask', name: 'MetaMask' },\n { id: 'trust', name: 'Trust' },\n { id: 'rainbow', name: 'Rainbow' },\n { id: 'coinbase', name: 'Coinbase' },\n { id: 'zerion', name: 'Zerion' },\n { id: 'tokenpocket', name: 'Token Pocket' },\n { id: 'blockchaincom', name: 'Blockchain.com' },\n { id: 'exodus', name: 'Exodus' },\n { id: 'phantom', name: 'Phantom' },\n { id: 'okx', name: 'OKX' },\n { id: 'cryptocom', name: 'Crypto.com' },\n { id: 'argent', name: 'Argent' },\n { id: 'safepal', name: 'SafePal' },\n { id: 'imtoken', name: 'imToken' },\n { id: 'ronin', name: 'Ronin' },\n { id: 'coin98', name: 'Coin98' },\n { id: 'bitkeep', name: 'BitKeep' },\n { id: '1inch', name: '1inch' },\n { id: 'ledgerlive', name: 'Ledger Live' },\n { id: 'atomic', name: 'Atomic' },\n { id: 'alpha', name: 'Alpha' },\n { id: 'math', name: 'Math' },\n { id: 'bitpay', name: 'BitPay' },\n];\n\nexport const WALLET_CATALOG: readonly WalletCatalogEntry[] = WALLETS.map((w) => ({\n ...w,\n iconUrl: `${ICON_BASE}/${w.id}.png`,\n}));\n\nexport function getWalletCatalog(): WalletCatalogEntry[] {\n return WALLET_CATALOG.map((w) => ({ ...w }));\n}\n\nexport function walletName(id: string): string | undefined {\n return WALLET_CATALOG.find((w) => w.id === id)?.name;\n}\n"]}
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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EAAE;AAAA,EACrD,EAAE,IAAI,KAAA,EAAO,IAAA,EAAM,cAAc,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EAClE,EAAE,EAAA,EAAI,SAAA,EAAW,IAAA,EAAM,SAAA,EAAW,YAAY,CAAC,QAAA,EAAU,QAAA,EAAU,QAAQ,CAAA;AAC7E,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.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: 'Bitget Wallet', 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 { id: 'rabby', name: 'Rabby', namespaces: ['eip155'] },\n { id: 'bybit', name: 'Bybit', namespaces: ['eip155', 'solana'] },\n { id: 'binance', name: 'Binance', namespaces: ['eip155', 'solana'] },\n { id: 'gate', name: 'Gate Wallet', namespaces: ['eip155'] },\n { id: 'core', name: 'Core', namespaces: ['eip155', 'solana'] },\n { id: 'backpack', name: 'Backpack', namespaces: ['eip155', 'solana'] },\n { id: 'frontier', name: 'Frontier', namespaces: ['eip155'] },\n { id: 'onekey', name: 'OneKey', namespaces: ['eip155'] },\n { id: 'kraken', name: 'Kraken', namespaces: ['eip155', 'solana'] },\n { id: 'uniswap', name: 'Uniswap Wallet', namespaces: ['eip155'] },\n { id: 'omni', name: 'Omni', namespaces: ['eip155'] },\n { id: 'mew', name: 'MEW Wallet', namespaces: ['eip155'] },\n { id: 'foxwallet', name: 'FoxWallet', namespaces: ['eip155'] },\n { id: 'nova', name: 'Nova Wallet', namespaces: ['eip155'] },\n { id: 'subwallet', name: 'SubWallet', namespaces: ['eip155'] },\n { id: 'safe', name: 'Safe', namespaces: ['eip155'] },\n { id: 'robinhood', name: 'Robinhood Wallet', namespaces: ['eip155'] },\n { id: 'tangem', name: 'Tangem', namespaces: ['eip155', 'solana'] },\n { id: 'trezor', name: 'Trezor', namespaces: ['bip122', 'eip155', 'solana'] },\n { id: 'kucoin', name: 'KuCoin', namespaces: ['eip155', 'solana'] },\n { id: 'jupiter', name: 'Jupiter', namespaces: ['solana'] },\n { id: 'zengo', name: 'Zengo', namespaces: ['eip155'] },\n { id: 'bitcoincom', name: 'Bitcoin.com', namespaces: ['eip155'] },\n { id: 'keplr', name: 'Keplr', namespaces: ['eip155'] },\n { id: 'cake', name: 'Cake Wallet', namespaces: ['eip155', 'solana'] },\n { id: 'unstoppable', name: 'Unstoppable', namespaces: ['eip155'] },\n { id: 'bifrost', name: 'Bifrost', namespaces: ['bip122', 'eip155'] },\n { id: 'pintu', name: 'Pintu', namespaces: ['eip155'] },\n { id: 'hot', name: 'HOT Wallet', namespaces: ['eip155', 'solana'] },\n { id: 'arculus', name: 'Arculus', namespaces: ['bip122', 'eip155', 'solana'] },\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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lydianpay/lydianconnect-catalog",
3
- "version": "1.0.2",
3
+ "version": "1.2.0",
4
4
  "description": "Canonical list of wallets the Lydian checkout supports — id + display name, zero dependencies.",
5
5
  "type": "module",
6
6
  "license": "MIT",