Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64adcfc279 | ||
|
|
3a9cefa64b | ||
|
|
e149f695cc | ||
|
|
c4a41fff48 |
@@ -6,7 +6,7 @@ RUN adduser --disabled-password \
|
|||||||
--gecos "" \
|
--gecos "" \
|
||||||
"lndhub"
|
"lndhub"
|
||||||
|
|
||||||
FROM node:12-buster-slim AS builder
|
FROM node:16-bullseye-slim AS builder
|
||||||
|
|
||||||
# These packages are required for building LNDHub
|
# These packages are required for building LNDHub
|
||||||
RUN apt-get update && apt-get -y install python3
|
RUN apt-get update && apt-get -y install python3
|
||||||
@@ -25,7 +25,7 @@ COPY . .
|
|||||||
# Delete git data as it's not needed inside the container
|
# Delete git data as it's not needed inside the container
|
||||||
RUN rm -rf .git
|
RUN rm -rf .git
|
||||||
|
|
||||||
FROM node:12-buster-slim
|
FROM node:16-bullseye-slim
|
||||||
|
|
||||||
# Create a specific user so LNDHub doesn't run as root
|
# Create a specific user so LNDHub doesn't run as root
|
||||||
COPY --from=perms /etc/group /etc/passwd /etc/shadow /etc/
|
COPY --from=perms /etc/group /etc/passwd /etc/shadow /etc/
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ Can be used in ReactNative or Nodejs environment
|
|||||||
|
|
||||||
### Tests
|
### Tests
|
||||||
|
|
||||||
Acceptance tests are in https://github.com/BlueWallet/BlueWallet/blob/master/LightningCustodianWallet.test.js
|
Acceptance tests are in https://github.com/BlueWallet/BlueWallet/blob/master/tests/integration/lightning-custodian-wallet.test.js
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ associated with corresponding user id.
|
|||||||
| Call | Method | Handler | Params | Return | Description |
|
| Call | Method | Handler | Params | Return | Description |
|
||||||
| ------------- | ------------- | ------------- | ------------- | ------------- | ------------- |
|
| ------------- | ------------- | ------------- | ------------- | ------------- | ------------- |
|
||||||
| Create Account | POST | /create | {none} | JSON Auth Data | Create new user account and get credentials |
|
| Create Account | POST | /create | {none} | JSON Auth Data | Create new user account and get credentials |
|
||||||
| Authorize | POST | /auth | auth params (login/password of refresh_token) | JSON token data | Authorize user with Oauth. When user use refresh_token to auth, then this refresh_token not available for access once again. Use new refresh_token |
|
| Authorize | POST | /auth | auth params (login/password or refresh_token) | JSON token data | Authorize user with Oauth. When user use refresh_token to auth, then this refresh_token not available for access once again. Use new refresh_token |
|
||||||
| Get token | POST | /oauth2/token | user id, secret, grant_type and scope | token data | Get token data from user id, secret, grant_type and scope |
|
| Get token | POST | /oauth2/token | user id, secret, grant_type and scope | token data | Get token data from user id, secret, grant_type and scope |
|
||||||
| Get BTC Addr | GET | /getbtc | {none} | Text address | Get user's BTC address to top-up his account |
|
| Get BTC Addr | GET | /getbtc | {none} | Text address | Get user's BTC address to top-up his account |
|
||||||
| New BTC Addr | POST | /newbtc | {none} | Text address | Create new BTC address for user. Old addresses should remain valid, so if user accidentaly sends money to old address transaction will be assigned to his account |
|
| New BTC Addr | POST | /newbtc | {none} | Text address | Create new BTC address for user. Old addresses should remain valid, so if user accidentaly sends money to old address transaction will be assigned to his account |
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lndhub",
|
"name": "lndhub",
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lndhub",
|
"name": "lndhub",
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user