@lydianpay/lydianconnect-catalog 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lydian
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # lydianconnect-catalog
2
+ Catalog of supported wallets
package/dist/index.cjs ADDED
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ // src/index.ts
4
+ var WALLET_CATALOG = [
5
+ { id: "metamask", name: "MetaMask" },
6
+ { id: "trust", name: "Trust" },
7
+ { id: "rainbow", name: "Rainbow" },
8
+ { id: "coinbase", name: "Coinbase" },
9
+ { id: "zerion", name: "Zerion" },
10
+ { id: "tokenpocket", name: "Token Pocket" },
11
+ { id: "blockchaincom", name: "Blockchain.com" },
12
+ { id: "exodus", name: "Exodus" },
13
+ { id: "phantom", name: "Phantom" },
14
+ { id: "okx", name: "OKX" },
15
+ { id: "cryptocom", name: "Crypto.com" },
16
+ { id: "argent", name: "Argent" },
17
+ { id: "safepal", name: "SafePal" },
18
+ { id: "imtoken", name: "imToken" },
19
+ { id: "ronin", name: "Ronin" },
20
+ { id: "coin98", name: "Coin98" },
21
+ { id: "bitkeep", name: "BitKeep" },
22
+ { id: "1inch", name: "1inch" },
23
+ { id: "ledgerlive", name: "Ledger Live" },
24
+ { id: "atomic", name: "Atomic" },
25
+ { id: "alpha", name: "Alpha" },
26
+ { id: "math", name: "Math" },
27
+ { id: "bitpay", name: "BitPay" }
28
+ ];
29
+ function getWalletCatalog() {
30
+ return WALLET_CATALOG.map((w) => ({ ...w }));
31
+ }
32
+ function walletName(id) {
33
+ return WALLET_CATALOG.find((w) => w.id === id)?.name;
34
+ }
35
+
36
+ exports.WALLET_CATALOG = WALLET_CATALOG;
37
+ exports.getWalletCatalog = getWalletCatalog;
38
+ exports.walletName = walletName;
39
+ //# sourceMappingURL=index.cjs.map
40
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAcO,IAAM,cAAA,GAAgD;AAAA,EAC3D,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,E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AgC;AACzD,EAAA,OAAO,eAAe,IAAA,CAAK,CAAC,MAAM,CAAA,CAAE,EAAA,KAAO,EAAE,CAAA,EAAG,IAAA;AAClD","file":"index.cjs","sourcesContent":["/** A selectable wallet, for merchant/admin configuration UIs. */\nexport interface WalletCatalogEntry {\n /** Stable wallet id — matches the keys passed to LydianConnect.connect({ walletId }). */\n id: string;\n /** Human-readable name for display in selection UIs. */\n name: string;\n}\n\n/**\n * The canonical list of wallets the checkout can connect to.\n * Source of truth for selection UIs (web-merchant, web-admin).\n * Ids MUST stay in lockstep with lydianconnect's WALLET_LINKS — enforced by a\n * drift test in lydianconnect that imports this list.\n */\nexport const WALLET_CATALOG: readonly WalletCatalogEntry[] = [\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\n/** Returns a fresh, mutable copy of the catalog. */\nexport function getWalletCatalog(): WalletCatalogEntry[] {\n return WALLET_CATALOG.map((w) => ({ ...w }));\n}\n\n/** Convenience lookup for a single wallet's display name. */\nexport function walletName(id: string): string | undefined {\n return WALLET_CATALOG.find((w) => w.id === id)?.name;\n}\n"]}
@@ -0,0 +1,20 @@
1
+ /** A selectable wallet, for merchant/admin configuration UIs. */
2
+ interface WalletCatalogEntry {
3
+ /** Stable wallet id — matches the keys passed to LydianConnect.connect({ walletId }). */
4
+ id: string;
5
+ /** Human-readable name for display in selection UIs. */
6
+ name: string;
7
+ }
8
+ /**
9
+ * The canonical list of wallets the checkout can connect to.
10
+ * Source of truth for selection UIs (web-merchant, web-admin).
11
+ * Ids MUST stay in lockstep with lydianconnect's WALLET_LINKS — enforced by a
12
+ * drift test in lydianconnect that imports this list.
13
+ */
14
+ declare const WALLET_CATALOG: readonly WalletCatalogEntry[];
15
+ /** Returns a fresh, mutable copy of the catalog. */
16
+ declare function getWalletCatalog(): WalletCatalogEntry[];
17
+ /** Convenience lookup for a single wallet's display name. */
18
+ declare function walletName(id: string): string | undefined;
19
+
20
+ export { WALLET_CATALOG, type WalletCatalogEntry, getWalletCatalog, walletName };
@@ -0,0 +1,20 @@
1
+ /** A selectable wallet, for merchant/admin configuration UIs. */
2
+ interface WalletCatalogEntry {
3
+ /** Stable wallet id — matches the keys passed to LydianConnect.connect({ walletId }). */
4
+ id: string;
5
+ /** Human-readable name for display in selection UIs. */
6
+ name: string;
7
+ }
8
+ /**
9
+ * The canonical list of wallets the checkout can connect to.
10
+ * Source of truth for selection UIs (web-merchant, web-admin).
11
+ * Ids MUST stay in lockstep with lydianconnect's WALLET_LINKS — enforced by a
12
+ * drift test in lydianconnect that imports this list.
13
+ */
14
+ declare const WALLET_CATALOG: readonly WalletCatalogEntry[];
15
+ /** Returns a fresh, mutable copy of the catalog. */
16
+ declare function getWalletCatalog(): WalletCatalogEntry[];
17
+ /** Convenience lookup for a single wallet's display name. */
18
+ declare function walletName(id: string): string | undefined;
19
+
20
+ export { WALLET_CATALOG, type WalletCatalogEntry, getWalletCatalog, walletName };
package/dist/index.js ADDED
@@ -0,0 +1,36 @@
1
+ // src/index.ts
2
+ var WALLET_CATALOG = [
3
+ { id: "metamask", name: "MetaMask" },
4
+ { id: "trust", name: "Trust" },
5
+ { id: "rainbow", name: "Rainbow" },
6
+ { id: "coinbase", name: "Coinbase" },
7
+ { id: "zerion", name: "Zerion" },
8
+ { id: "tokenpocket", name: "Token Pocket" },
9
+ { id: "blockchaincom", name: "Blockchain.com" },
10
+ { id: "exodus", name: "Exodus" },
11
+ { id: "phantom", name: "Phantom" },
12
+ { id: "okx", name: "OKX" },
13
+ { id: "cryptocom", name: "Crypto.com" },
14
+ { id: "argent", name: "Argent" },
15
+ { id: "safepal", name: "SafePal" },
16
+ { id: "imtoken", name: "imToken" },
17
+ { id: "ronin", name: "Ronin" },
18
+ { id: "coin98", name: "Coin98" },
19
+ { id: "bitkeep", name: "BitKeep" },
20
+ { id: "1inch", name: "1inch" },
21
+ { id: "ledgerlive", name: "Ledger Live" },
22
+ { id: "atomic", name: "Atomic" },
23
+ { id: "alpha", name: "Alpha" },
24
+ { id: "math", name: "Math" },
25
+ { id: "bitpay", name: "BitPay" }
26
+ ];
27
+ function getWalletCatalog() {
28
+ return WALLET_CATALOG.map((w) => ({ ...w }));
29
+ }
30
+ function walletName(id) {
31
+ return WALLET_CATALOG.find((w) => w.id === id)?.name;
32
+ }
33
+
34
+ export { WALLET_CATALOG, getWalletCatalog, walletName };
35
+ //# sourceMappingURL=index.js.map
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAcO,IAAM,cAAA,GAAgD;AAAA,EAC3D,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,EAA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,SAAS,gBAAA,GAAyC;AACvD,EAAA,OAAO,eAAe,GAAA,CAAI,CAAC,OAAO,EAAE,GAAG,GAAE,CAAE,CAAA;AAC7C;AAGO,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":["/** A selectable wallet, for merchant/admin configuration UIs. */\nexport interface WalletCatalogEntry {\n /** Stable wallet id — matches the keys passed to LydianConnect.connect({ walletId }). */\n id: string;\n /** Human-readable name for display in selection UIs. */\n name: string;\n}\n\n/**\n * The canonical list of wallets the checkout can connect to.\n * Source of truth for selection UIs (web-merchant, web-admin).\n * Ids MUST stay in lockstep with lydianconnect's WALLET_LINKS — enforced by a\n * drift test in lydianconnect that imports this list.\n */\nexport const WALLET_CATALOG: readonly WalletCatalogEntry[] = [\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\n/** Returns a fresh, mutable copy of the catalog. */\nexport function getWalletCatalog(): WalletCatalogEntry[] {\n return WALLET_CATALOG.map((w) => ({ ...w }));\n}\n\n/** Convenience lookup for a single wallet's display name. */\nexport function walletName(id: string): string | undefined {\n return WALLET_CATALOG.find((w) => w.id === id)?.name;\n}\n"]}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@lydianpay/lydianconnect-catalog",
3
+ "version": "0.1.0",
4
+ "description": "Canonical list of wallets the Lydian checkout supports — id + display name, zero dependencies.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "scripts": {
24
+ "build": "tsup",
25
+ "dev": "tsup --watch",
26
+ "typecheck": "tsc --noEmit",
27
+ "lint": "eslint .",
28
+ "test": "vitest run",
29
+ "test:coverage": "vitest run --coverage"
30
+ },
31
+ "devDependencies": {
32
+ "@eslint/js": "^9.13.0",
33
+ "@vitest/coverage-v8": "^2.1.0",
34
+ "eslint": "^9.13.0",
35
+ "tsup": "^8.3.0",
36
+ "typescript": "^5.6.0",
37
+ "typescript-eslint": "^8.11.0",
38
+ "vitest": "^2.1.0"
39
+ }
40
+ }