@lydianpay/lydianconnect-catalog 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -9
- package/dist/index.cjs +32 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,73 @@
|
|
|
1
1
|
# @lydianpay/lydianconnect-catalog
|
|
2
2
|
|
|
3
|
-
The canonical list of wallets supported by Lydian Connect
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
The canonical list of wallets supported by Lydian Connect. A tiny, **zero-dependency**
|
|
4
|
+
package so any app can render a wallet picker without pulling in wallet-connection
|
|
5
|
+
dependencies.
|
|
6
|
+
|
|
7
|
+
## Supported wallets
|
|
8
|
+
|
|
9
|
+
**`id`** is the value you pass to `LydianConnect.connect({ walletId })`; **Connects on**
|
|
10
|
+
is the CAIP-2 namespace families the wallet can connect on.
|
|
11
|
+
|
|
12
|
+
<!-- BEGIN WALLET TABLE -->
|
|
13
|
+
|
|
14
|
+
| Logo | Wallet | `id` | Connects on |
|
|
15
|
+
| :--: | ------ | ---- | ----------- |
|
|
16
|
+
| <img src="https://wallet-assets.lydian.com/wallets/metamask.png" alt="MetaMask" width="28" height="28" /> | MetaMask | `metamask` | `eip155` |
|
|
17
|
+
| <img src="https://wallet-assets.lydian.com/wallets/trust.png" alt="Trust" width="28" height="28" /> | Trust | `trust` | `eip155`, `solana` |
|
|
18
|
+
| <img src="https://wallet-assets.lydian.com/wallets/rainbow.png" alt="Rainbow" width="28" height="28" /> | Rainbow | `rainbow` | `eip155` |
|
|
19
|
+
| <img src="https://wallet-assets.lydian.com/wallets/coinbase.png" alt="Coinbase" width="28" height="28" /> | Coinbase | `coinbase` | `eip155`, `solana` |
|
|
20
|
+
| <img src="https://wallet-assets.lydian.com/wallets/zerion.png" alt="Zerion" width="28" height="28" /> | Zerion | `zerion` | `eip155` |
|
|
21
|
+
| <img src="https://wallet-assets.lydian.com/wallets/tokenpocket.png" alt="Token Pocket" width="28" height="28" /> | Token Pocket | `tokenpocket` | `eip155`, `solana` |
|
|
22
|
+
| <img src="https://wallet-assets.lydian.com/wallets/blockchaincom.png" alt="Blockchain.com" width="28" height="28" /> | Blockchain.com | `blockchaincom` | `bip122`, `eip155`, `solana` |
|
|
23
|
+
| <img src="https://wallet-assets.lydian.com/wallets/exodus.png" alt="Exodus" width="28" height="28" /> | Exodus | `exodus` | `eip155`, `solana` |
|
|
24
|
+
| <img src="https://wallet-assets.lydian.com/wallets/phantom.png" alt="Phantom" width="28" height="28" /> | Phantom | `phantom` | `bip122`, `eip155`, `solana` |
|
|
25
|
+
| <img src="https://wallet-assets.lydian.com/wallets/okx.png" alt="OKX" width="28" height="28" /> | OKX | `okx` | `bip122`, `eip155`, `solana` |
|
|
26
|
+
| <img src="https://wallet-assets.lydian.com/wallets/cryptocom.png" alt="Crypto.com" width="28" height="28" /> | Crypto.com | `cryptocom` | `bip122`, `eip155`, `solana` |
|
|
27
|
+
| <img src="https://wallet-assets.lydian.com/wallets/argent.png" alt="Argent" width="28" height="28" /> | Argent | `argent` | `eip155` |
|
|
28
|
+
| <img src="https://wallet-assets.lydian.com/wallets/safepal.png" alt="SafePal" width="28" height="28" /> | SafePal | `safepal` | `eip155`, `solana`, `ton` |
|
|
29
|
+
| <img src="https://wallet-assets.lydian.com/wallets/imtoken.png" alt="imToken" width="28" height="28" /> | imToken | `imtoken` | `eip155` |
|
|
30
|
+
| <img src="https://wallet-assets.lydian.com/wallets/ronin.png" alt="Ronin" width="28" height="28" /> | Ronin | `ronin` | `eip155` |
|
|
31
|
+
| <img src="https://wallet-assets.lydian.com/wallets/coin98.png" alt="Coin98" width="28" height="28" /> | Coin98 | `coin98` | `eip155`, `solana` |
|
|
32
|
+
| <img src="https://wallet-assets.lydian.com/wallets/bitkeep.png" alt="Bitget Wallet" width="28" height="28" /> | Bitget Wallet | `bitkeep` | `eip155`, `solana` |
|
|
33
|
+
| <img src="https://wallet-assets.lydian.com/wallets/1inch.png" alt="1inch" width="28" height="28" /> | 1inch | `1inch` | `eip155`, `solana` |
|
|
34
|
+
| <img src="https://wallet-assets.lydian.com/wallets/ledgerlive.png" alt="Ledger Live" width="28" height="28" /> | Ledger Live | `ledgerlive` | `bip122`, `eip155`, `solana` |
|
|
35
|
+
| <img src="https://wallet-assets.lydian.com/wallets/atomic.png" alt="Atomic" width="28" height="28" /> | Atomic | `atomic` | `bip122`, `eip155`, `solana` |
|
|
36
|
+
| <img src="https://wallet-assets.lydian.com/wallets/alpha.png" alt="Alpha" width="28" height="28" /> | Alpha | `alpha` | `eip155` |
|
|
37
|
+
| <img src="https://wallet-assets.lydian.com/wallets/math.png" alt="Math" width="28" height="28" /> | Math | `math` | `eip155`, `solana` |
|
|
38
|
+
| <img src="https://wallet-assets.lydian.com/wallets/bitpay.png" alt="BitPay" width="28" height="28" /> | BitPay | `bitpay` | `eip155` |
|
|
39
|
+
| <img src="https://wallet-assets.lydian.com/wallets/rabby.png" alt="Rabby" width="28" height="28" /> | Rabby | `rabby` | `eip155` |
|
|
40
|
+
| <img src="https://wallet-assets.lydian.com/wallets/bybit.png" alt="Bybit" width="28" height="28" /> | Bybit | `bybit` | `eip155`, `solana` |
|
|
41
|
+
| <img src="https://wallet-assets.lydian.com/wallets/binance.png" alt="Binance" width="28" height="28" /> | Binance | `binance` | `eip155`, `solana` |
|
|
42
|
+
| <img src="https://wallet-assets.lydian.com/wallets/gate.png" alt="Gate Wallet" width="28" height="28" /> | Gate Wallet | `gate` | `eip155` |
|
|
43
|
+
| <img src="https://wallet-assets.lydian.com/wallets/core.png" alt="Core" width="28" height="28" /> | Core | `core` | `eip155`, `solana` |
|
|
44
|
+
| <img src="https://wallet-assets.lydian.com/wallets/backpack.png" alt="Backpack" width="28" height="28" /> | Backpack | `backpack` | `eip155`, `solana` |
|
|
45
|
+
| <img src="https://wallet-assets.lydian.com/wallets/frontier.png" alt="Frontier" width="28" height="28" /> | Frontier | `frontier` | `eip155` |
|
|
46
|
+
| <img src="https://wallet-assets.lydian.com/wallets/onekey.png" alt="OneKey" width="28" height="28" /> | OneKey | `onekey` | `eip155` |
|
|
47
|
+
| <img src="https://wallet-assets.lydian.com/wallets/kraken.png" alt="Kraken" width="28" height="28" /> | Kraken | `kraken` | `eip155`, `solana` |
|
|
48
|
+
| <img src="https://wallet-assets.lydian.com/wallets/uniswap.png" alt="Uniswap Wallet" width="28" height="28" /> | Uniswap Wallet | `uniswap` | `eip155` |
|
|
49
|
+
| <img src="https://wallet-assets.lydian.com/wallets/omni.png" alt="Omni" width="28" height="28" /> | Omni | `omni` | `eip155` |
|
|
50
|
+
| <img src="https://wallet-assets.lydian.com/wallets/mew.png" alt="MEW Wallet" width="28" height="28" /> | MEW Wallet | `mew` | `eip155` |
|
|
51
|
+
| <img src="https://wallet-assets.lydian.com/wallets/foxwallet.png" alt="FoxWallet" width="28" height="28" /> | FoxWallet | `foxwallet` | `eip155` |
|
|
52
|
+
| <img src="https://wallet-assets.lydian.com/wallets/nova.png" alt="Nova Wallet" width="28" height="28" /> | Nova Wallet | `nova` | `eip155` |
|
|
53
|
+
| <img src="https://wallet-assets.lydian.com/wallets/subwallet.png" alt="SubWallet" width="28" height="28" /> | SubWallet | `subwallet` | `eip155` |
|
|
54
|
+
| <img src="https://wallet-assets.lydian.com/wallets/safe.png" alt="Safe" width="28" height="28" /> | Safe | `safe` | `eip155` |
|
|
55
|
+
| <img src="https://wallet-assets.lydian.com/wallets/robinhood.png" alt="Robinhood Wallet" width="28" height="28" /> | Robinhood Wallet | `robinhood` | `eip155` |
|
|
56
|
+
| <img src="https://wallet-assets.lydian.com/wallets/tangem.png" alt="Tangem" width="28" height="28" /> | Tangem | `tangem` | `eip155`, `solana` |
|
|
57
|
+
| <img src="https://wallet-assets.lydian.com/wallets/trezor.png" alt="Trezor" width="28" height="28" /> | Trezor | `trezor` | `bip122`, `eip155`, `solana` |
|
|
58
|
+
| <img src="https://wallet-assets.lydian.com/wallets/kucoin.png" alt="KuCoin" width="28" height="28" /> | KuCoin | `kucoin` | `eip155`, `solana` |
|
|
59
|
+
| <img src="https://wallet-assets.lydian.com/wallets/jupiter.png" alt="Jupiter" width="28" height="28" /> | Jupiter | `jupiter` | `solana` |
|
|
60
|
+
| <img src="https://wallet-assets.lydian.com/wallets/zengo.png" alt="Zengo" width="28" height="28" /> | Zengo | `zengo` | `eip155` |
|
|
61
|
+
| <img src="https://wallet-assets.lydian.com/wallets/bitcoincom.png" alt="Bitcoin.com" width="28" height="28" /> | Bitcoin.com | `bitcoincom` | `eip155` |
|
|
62
|
+
| <img src="https://wallet-assets.lydian.com/wallets/keplr.png" alt="Keplr" width="28" height="28" /> | Keplr | `keplr` | `eip155` |
|
|
63
|
+
| <img src="https://wallet-assets.lydian.com/wallets/cake.png" alt="Cake Wallet" width="28" height="28" /> | Cake Wallet | `cake` | `eip155`, `solana` |
|
|
64
|
+
| <img src="https://wallet-assets.lydian.com/wallets/unstoppable.png" alt="Unstoppable" width="28" height="28" /> | Unstoppable | `unstoppable` | `eip155` |
|
|
65
|
+
| <img src="https://wallet-assets.lydian.com/wallets/bifrost.png" alt="Bifrost" width="28" height="28" /> | Bifrost | `bifrost` | `bip122`, `eip155` |
|
|
66
|
+
| <img src="https://wallet-assets.lydian.com/wallets/pintu.png" alt="Pintu" width="28" height="28" /> | Pintu | `pintu` | `eip155` |
|
|
67
|
+
| <img src="https://wallet-assets.lydian.com/wallets/hot.png" alt="HOT Wallet" width="28" height="28" /> | HOT Wallet | `hot` | `eip155`, `solana` |
|
|
68
|
+
| <img src="https://wallet-assets.lydian.com/wallets/arculus.png" alt="Arculus" width="28" height="28" /> | Arculus | `arculus` | `bip122`, `eip155`, `solana` |
|
|
69
|
+
|
|
70
|
+
<!-- END WALLET TABLE -->
|
|
6
71
|
|
|
7
72
|
## Install
|
|
8
73
|
|
|
@@ -29,7 +94,7 @@ walletName('cryptocom'); // 'Crypto.com'
|
|
|
29
94
|
| `WALLET_CATALOG` | `readonly WalletCatalogEntry[]` — the full list. |
|
|
30
95
|
| `getWalletCatalog()` | A fresh, mutable copy of the list. |
|
|
31
96
|
| `walletName(id)` | Display name for a wallet id, or `undefined`. |
|
|
32
|
-
| `WalletCatalogEntry` | `{ id: string; name: string; iconUrl: string }`. |
|
|
97
|
+
| `WalletCatalogEntry` | `{ id: string; name: string; iconUrl: string; namespaces: WalletNamespace[] }`. |
|
|
33
98
|
|
|
34
99
|
`id` matches the value passed to `LydianConnect.connect({ walletId })` in
|
|
35
100
|
`@lydianpay/lydianconnect`. `iconUrl` is derived from the id:
|
|
@@ -37,8 +102,4 @@ walletName('cryptocom'); // 'Crypto.com'
|
|
|
37
102
|
|
|
38
103
|
## Adding a wallet
|
|
39
104
|
|
|
40
|
-
|
|
41
|
-
`iconUrl` is derived automatically.
|
|
42
|
-
2. Keep the id set in sync with the wallets `@lydianpay/lydianconnect` can
|
|
43
|
-
connect to — a wallet offered here must be connectable there.
|
|
44
|
-
3. Make sure the wallet's icon is available at its derived `iconUrl`.
|
|
105
|
+
Please email the Lydian team at engineering@lydian.com to have your wallet included.
|
package/dist/index.cjs
CHANGED
|
@@ -19,13 +19,43 @@ var WALLETS = [
|
|
|
19
19
|
{ id: "imtoken", name: "imToken", namespaces: ["eip155"] },
|
|
20
20
|
{ id: "ronin", name: "Ronin", namespaces: ["eip155"] },
|
|
21
21
|
{ id: "coin98", name: "Coin98", namespaces: ["eip155", "solana"] },
|
|
22
|
-
{ id: "bitkeep", name: "
|
|
22
|
+
{ id: "bitkeep", name: "Bitget Wallet", namespaces: ["eip155", "solana"] },
|
|
23
23
|
{ id: "1inch", name: "1inch", namespaces: ["eip155", "solana"] },
|
|
24
24
|
{ id: "ledgerlive", name: "Ledger Live", namespaces: ["bip122", "eip155", "solana"] },
|
|
25
25
|
{ id: "atomic", name: "Atomic", namespaces: ["bip122", "eip155", "solana"] },
|
|
26
26
|
{ id: "alpha", name: "Alpha", namespaces: ["eip155"] },
|
|
27
27
|
{ id: "math", name: "Math", namespaces: ["eip155", "solana"] },
|
|
28
|
-
{ id: "bitpay", name: "BitPay", namespaces: ["eip155"] }
|
|
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,
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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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I,MAAA,EAAQ,IAAA,EAAM,eAAe,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EACpE,EAAE,IAAI,aAAA,EAAe,IAAA,EAAM,eAAe,UAAA,EAAY,CAAC,QAAQ,CAAA,EAAE;AAAA,EACjE,EAAE,IAAI,SAAA,EAAW,IAAA,EAAM,WAAW,UAAA,EAAY,CAAC,QAAA,EAAU,QAAQ,CAAA,EAAE;AAAA,EACnE,EAAE,IAAI,OAAA,EAAS,IAAA,EAAM,SAAS,UAAA,EAAY,CAAC,QAAQ,CAAA,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.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: '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.js
CHANGED
|
@@ -17,13 +17,43 @@ var WALLETS = [
|
|
|
17
17
|
{ id: "imtoken", name: "imToken", namespaces: ["eip155"] },
|
|
18
18
|
{ id: "ronin", name: "Ronin", namespaces: ["eip155"] },
|
|
19
19
|
{ id: "coin98", name: "Coin98", namespaces: ["eip155", "solana"] },
|
|
20
|
-
{ id: "bitkeep", name: "
|
|
20
|
+
{ id: "bitkeep", name: "Bitget Wallet", namespaces: ["eip155", "solana"] },
|
|
21
21
|
{ id: "1inch", name: "1inch", namespaces: ["eip155", "solana"] },
|
|
22
22
|
{ id: "ledgerlive", name: "Ledger Live", namespaces: ["bip122", "eip155", "solana"] },
|
|
23
23
|
{ id: "atomic", name: "Atomic", namespaces: ["bip122", "eip155", "solana"] },
|
|
24
24
|
{ id: "alpha", name: "Alpha", namespaces: ["eip155"] },
|
|
25
25
|
{ id: "math", name: "Math", namespaces: ["eip155", "solana"] },
|
|
26
|
-
{ id: "bitpay", name: "BitPay", namespaces: ["eip155"] }
|
|
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,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,IAA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EAAE;AAAA,EACnE,EAAE,IAAI,OAAA,EAAS,IAAA,EAAM,SAAS,UAAA,EAAY,CAAC,QAAQ,CAAA,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