lnlink-server 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +461 -0
  2. package/{app.js → dist/app.js} +329 -321
  3. package/dist/binaries.json +25 -0
  4. package/{build-info.json → dist/build-info.json} +2 -1
  5. package/{index.js → dist/index.js} +690 -121
  6. package/dist/index.js.map +7 -0
  7. package/dist/node_modules/debug/.coveralls.yml +1 -0
  8. package/dist/node_modules/debug/.eslintrc +11 -0
  9. package/dist/node_modules/debug/.travis.yml +14 -0
  10. package/dist/node_modules/debug/CHANGELOG.md +362 -0
  11. package/dist/node_modules/debug/LICENSE +19 -0
  12. package/dist/node_modules/debug/Makefile +50 -0
  13. package/dist/node_modules/debug/README.md +312 -0
  14. package/dist/node_modules/debug/component.json +19 -0
  15. package/dist/node_modules/debug/karma.conf.js +70 -0
  16. package/dist/node_modules/debug/node.js +1 -0
  17. package/dist/node_modules/debug/package.json +49 -0
  18. package/dist/node_modules/debug/src/browser.js +185 -0
  19. package/dist/node_modules/debug/src/debug.js +202 -0
  20. package/dist/node_modules/debug/src/index.js +10 -0
  21. package/dist/node_modules/debug/src/inspector-log.js +15 -0
  22. package/dist/node_modules/debug/src/node.js +248 -0
  23. package/dist/node_modules/depd/History.md +96 -0
  24. package/dist/node_modules/depd/LICENSE +22 -0
  25. package/dist/node_modules/depd/Readme.md +280 -0
  26. package/dist/node_modules/depd/index.js +522 -0
  27. package/dist/node_modules/depd/lib/browser/index.js +77 -0
  28. package/dist/node_modules/depd/lib/compat/callsite-tostring.js +103 -0
  29. package/dist/node_modules/depd/lib/compat/event-listener-count.js +22 -0
  30. package/dist/node_modules/depd/lib/compat/index.js +79 -0
  31. package/dist/node_modules/depd/package.json +41 -0
  32. package/dist/node_modules/http-errors/HISTORY.md +132 -0
  33. package/dist/node_modules/http-errors/LICENSE +23 -0
  34. package/dist/node_modules/http-errors/README.md +135 -0
  35. package/dist/node_modules/http-errors/index.js +260 -0
  36. package/dist/node_modules/http-errors/package.json +48 -0
  37. package/dist/node_modules/inherits/LICENSE +16 -0
  38. package/dist/node_modules/inherits/README.md +42 -0
  39. package/dist/node_modules/inherits/inherits.js +7 -0
  40. package/dist/node_modules/inherits/inherits_browser.js +23 -0
  41. package/dist/node_modules/inherits/package.json +29 -0
  42. package/dist/node_modules/ms/index.js +152 -0
  43. package/dist/node_modules/ms/license.md +21 -0
  44. package/dist/node_modules/ms/package.json +37 -0
  45. package/dist/node_modules/ms/readme.md +51 -0
  46. package/dist/node_modules/setprototypeof/LICENSE +13 -0
  47. package/dist/node_modules/setprototypeof/README.md +26 -0
  48. package/dist/node_modules/setprototypeof/index.d.ts +2 -0
  49. package/dist/node_modules/setprototypeof/index.js +15 -0
  50. package/dist/node_modules/setprototypeof/package.json +25 -0
  51. package/dist/node_modules/statuses/HISTORY.md +65 -0
  52. package/dist/node_modules/statuses/LICENSE +23 -0
  53. package/dist/node_modules/statuses/README.md +127 -0
  54. package/dist/node_modules/statuses/codes.json +66 -0
  55. package/dist/node_modules/statuses/index.js +113 -0
  56. package/dist/node_modules/statuses/package.json +48 -0
  57. package/dist/package.json +62 -0
  58. package/dist/public/css/initOwner.css +705 -0
  59. package/dist/public/img/logo.svg +1 -0
  60. package/{public → dist/public}/init.html +5 -5
  61. package/dist/public/js/init.js +840 -0
  62. package/{setting.regtest.json → dist/setting.regtest.json} +2 -1
  63. package/package.json +51 -20
  64. package/binaries.json +0 -20
  65. package/index.js.map +0 -7
  66. package/public/css/initOwner.css +0 -553
  67. package/public/js/init.js +0 -454
  68. /package/{config.default.js → dist/config.default.js} +0 -0
  69. /package/{prisma → dist/prisma}/migrations/20250918020814_/migration.sql +0 -0
  70. /package/{prisma → dist/prisma}/migrations/20251114105314_auto_update/migration.sql +0 -0
  71. /package/{prisma → dist/prisma}/migrations/migration_lock.toml +0 -0
  72. /package/{prisma → dist/prisma}/schema.prisma +0 -0
  73. /package/{proto → dist/proto}/chainkit.proto +0 -0
  74. /package/{proto → dist/proto}/lightning.proto +0 -0
  75. /package/{proto → dist/proto}/lit-status.proto +0 -0
  76. /package/{proto → dist/proto}/looprpc/client.proto +0 -0
  77. /package/{proto → dist/proto}/price_oracle.proto +0 -0
  78. /package/{proto → dist/proto}/rfqrpc/rfq.proto +0 -0
  79. /package/{proto → dist/proto}/routerrpc/router.proto +0 -0
  80. /package/{proto → dist/proto}/signrpc/signer.proto +0 -0
  81. /package/{proto → dist/proto}/stateservice.proto +0 -0
  82. /package/{proto → dist/proto}/swapserverrpc/common.proto +0 -0
  83. /package/{proto → dist/proto}/tapchannel.proto +0 -0
  84. /package/{proto → dist/proto}/tapcommon.proto +0 -0
  85. /package/{proto → dist/proto}/taprootassets.proto +0 -0
  86. /package/{proto → dist/proto}/universe.proto +0 -0
  87. /package/{proto → dist/proto}/walletkit.proto +0 -0
  88. /package/{proto → dist/proto}/walletunlocker.proto +0 -0
  89. /package/{public → dist/public}/favicon.ico +0 -0
  90. /package/{setting.mainnet.json → dist/setting.mainnet.json} +0 -0
  91. /package/{setting.testnet.json → dist/setting.testnet.json} +0 -0
@@ -8,7 +8,8 @@
8
8
  "bitcoindZmqRawTx": "tcp://regtest.lnfi.network:28335",
9
9
  "network": "regtest",
10
10
  "nostrRelays": [
11
- "wss://relay01.lnfi.network"
11
+ "wss://relay01.lnfi.network",
12
+ "wss://relay02.lnfi.network"
12
13
  ],
13
14
  "officialLndPeer": "03b24a4bf911ffd26ac1d5e5f2440a3c2f6974e4cc85d2ef54e17ee6d3717433d3",
14
15
  "officialLndPeerHost": "34.84.66.29:7739",
package/package.json CHANGED
@@ -1,29 +1,33 @@
1
1
  {
2
2
  "name": "lnlink-server",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
- "main": "index.js",
6
- "electron": "lnlink.js",
7
- "description": "Lightning Network Link - A comprehensive Lightning Network node management solution",
8
- "keywords": [
9
- "lightning",
10
- "bitcoin",
11
- "lnd",
12
- "rgb",
13
- "taproot",
14
- "nostr",
15
- "electron"
5
+ "main": "dist/index.js",
6
+ "files": [
7
+ "dist",
8
+ "README.md"
16
9
  ],
17
- "author": "LNFI Network",
18
- "license": "MIT",
19
- "repository": {
20
- "type": "git",
21
- "url": "https://github.com/lnfi-network/ln-link.git"
10
+ "scripts": {
11
+ "build": "node build.js && node build.js --mode development --external all --entry electron",
12
+ "start:bin": "dotenv -e .env.bin -- node scripts/start-bin.js",
13
+ "start:docker:dev": "dotenv -e .env.dev -- docker compose -f ./docker-compose.dev.yml up --build",
14
+ "start:dev": "dotenv -e .env.dev -- sh -c \"prisma generate && (prisma migrate dev --name auto_update || prisma db push) && clinic heapprof -- node ./app.js\"",
15
+ "start:regtest": "docker compose --env-file ./.env.regtest -f ./docker-compose-lnlink.yml up --build",
16
+ "start:testnet": "docker compose --env-file ./.env.testnet -f ./docker-compose-lnlink.yml up --build",
17
+ "start:mainnet": "docker compose --env-file ./.env.mainnet -f ./docker-compose-lnlink.yml up --build",
18
+ "start:bin:dist": "dotenv -e .env.bin -- node scripts/start-bin.js --dist",
19
+ "lint": "eslint .",
20
+ "lint:fix": "eslint . --fix",
21
+ "lint:staged": "lint-staged",
22
+ "preinstall": "npx husky"
22
23
  },
23
- "engines": {
24
- "node": ">=19.0.0"
24
+ "_moduleAliases": {
25
+ "@api": "api",
26
+ "@constants": "constants",
27
+ "@business": "business",
28
+ "@nostr": "nostr",
29
+ "@package.json": "./package.json"
25
30
  },
26
- "scripts": {},
27
31
  "dependencies": {
28
32
  "@grpc/grpc-js": "^1.10.8",
29
33
  "@grpc/proto-loader": "^0.7.9",
@@ -33,6 +37,7 @@
33
37
  "axios": "^1.7.2",
34
38
  "bitcoin-core": "^4.2.0",
35
39
  "body-parser": "^1.20.2",
40
+ "bolt11": "^1.4.1",
36
41
  "cookie-parser": "~1.4.4",
37
42
  "crypto-js": "^4.2.0",
38
43
  "dayjs": "^1.11.10",
@@ -57,5 +62,31 @@
57
62
  "prisma": "^6.14.0",
58
63
  "typescript": "^5.7.3",
59
64
  "ws": "^8.18.0"
65
+ },
66
+ "lint-staged": {
67
+ "*.ts": [
68
+ "eslint --fix",
69
+ "git add"
70
+ ],
71
+ "*.js": [
72
+ "eslint --fix",
73
+ "git add"
74
+ ]
75
+ },
76
+ "devDependencies": {
77
+ "@antfu/eslint-config": "^4.3.0",
78
+ "@commitlint/cli": "^19.7.1",
79
+ "@commitlint/config-conventional": "^19.7.1",
80
+ "dotenv-cli": "^10.0.0",
81
+ "electron-rebuild": "^3.2.9",
82
+ "esbuild": "^0.25.9",
83
+ "eslint": "^9.20.1",
84
+ "husky": "^9.1.7",
85
+ "lint-staged": "^15.4.3",
86
+ "nodemon": "^3.0.3",
87
+ "protobufjs": "^7.2.5"
88
+ },
89
+ "engines": {
90
+ "node": ">=19.0.0"
60
91
  }
61
92
  }
package/binaries.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "darwin-arm64": {
3
- "tor": "https://archive.torproject.org/tor-package-archive/torbrowser/14.5.4/tor-expert-bundle-macos-aarch64-14.5.4.tar.gz",
4
- "libevent-2.1.7.dylib": "https://archive.torproject.org/tor-package-archive/torbrowser/14.5.4/tor-expert-bundle-macos-aarch64-14.5.4.tar.gz",
5
- "litd": "https://github.com/lightninglabs/lightning-terminal/releases/download/v0.14.0-alpha/lightning-terminal-darwin-arm64-v0.14.0-alpha.tar.gz",
6
- "rgb-lightning-node": "https://github.com/free-free-6/rgb-lightning-node/releases/download/v0.2.0/rgb-lightning-node-macos-aarch64"
7
- },
8
- "darwin-x64": {
9
- "tor": "https://archive.torproject.org/tor-package-archive/torbrowser/14.5.4/tor-expert-bundle-macos-x86_64-14.5.4.tar.gz",
10
- "libevent-2.1.7.dylib": "https://archive.torproject.org/tor-package-archive/torbrowser/14.5.4/tor-expert-bundle-macos-x86_64-14.5.4.tar.gz",
11
- "litd": "https://github.com/lightninglabs/lightning-terminal/releases/download/v0.14.0-alpha/lightning-terminal-darwin-amd64-v0.14.0-alpha.tar.gz",
12
- "rgb-lightning-node": "https://github.com/free-free-6/rgb-lightning-node/releases/download/v0.2.0/rgb-lightning-node-macos-x86_64"
13
- },
14
- "linux-x64": {
15
- "tor": "https://archive.torproject.org/tor-package-archive/torbrowser/14.5.4/tor-expert-bundle-linux-x86_64-14.5.4.tar.gz",
16
- "libevent-2.1.7.dylib": "https://archive.torproject.org/tor-package-archive/torbrowser/14.5.4/tor-expert-bundle-linux-x86_64-14.5.4.tar.gz",
17
- "litd": "https://github.com/lightninglabs/lightning-terminal/releases/download/v0.14.0-alpha/lightning-terminal-linux-amd64-v0.14.0-alpha.tar.gz",
18
- "rgb-lightning-node": "https://github.com/free-free-6/rgb-lightning-node/releases/download/v0.2.0/rgb-lightning-node-linux-x86_64"
19
- }
20
- }