Compare commits
5 Commits
371e7417ce
...
de38a683d5
Author | SHA1 | Date | |
---|---|---|---|
|
de38a683d5 | ||
|
e517abb061 | ||
|
1ef88664d4 | ||
|
887354820b | ||
|
f051afff35 |
@ -30,7 +30,8 @@ Go to [localhost:3000](http://localhost:3000).
|
|||||||
- Clone the repo
|
- Clone the repo
|
||||||
- ssh: `git clone git@github.com:stackernews/stacker.news.git`
|
- ssh: `git clone git@github.com:stackernews/stacker.news.git`
|
||||||
- https: `git clone https://github.com/stackernews/stacker.news.git`
|
- https: `git clone https://github.com/stackernews/stacker.news.git`
|
||||||
- Install [docker](https://docs.docker.com/get-docker/)
|
- Install [docker](https://docs.docker.com/compose/install/)
|
||||||
|
- Please make sure that at least 10 GB of free space is available, otherwise you may encounter issues while setting up the development environment.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
@ -383,6 +383,7 @@ export default {
|
|||||||
${relationClause(type)}
|
${relationClause(type)}
|
||||||
${whereClause(
|
${whereClause(
|
||||||
'"Item"."deletedAt" IS NULL',
|
'"Item"."deletedAt" IS NULL',
|
||||||
|
type === 'posts' && '"Item"."subName" IS NOT NULL',
|
||||||
subClause(sub, 5, subClauseTable(type), me, showNsfw),
|
subClause(sub, 5, subClauseTable(type), me, showNsfw),
|
||||||
typeClause(type),
|
typeClause(type),
|
||||||
whenClause(when, 'Item'),
|
whenClause(when, 'Item'),
|
||||||
|
@ -18,7 +18,7 @@ felipebueno,pr,#948,,,,,,100k,felipe@stacker.news,2024-03-26
|
|||||||
benalleng,pr,#972,#923,good-first-issue,,,,20k,BenAllenG@stacker.news,2024-03-26
|
benalleng,pr,#972,#923,good-first-issue,,,,20k,BenAllenG@stacker.news,2024-03-26
|
||||||
SatsAllDay,issue,#972,#923,good-first-issue,,,,2k,weareallsatoshi@getalby.com,2024-03-26
|
SatsAllDay,issue,#972,#923,good-first-issue,,,,2k,weareallsatoshi@getalby.com,2024-03-26
|
||||||
felipebueno,pr,#974,#884,good-first-issue,,,,20k,felipe@stacker.news,2024-03-26
|
felipebueno,pr,#974,#884,good-first-issue,,,,20k,felipe@stacker.news,2024-03-26
|
||||||
h0dlr,issue,#974,#884,good-first-issue,,,,2k,0xe14b9b5981c729a3@ln.tips,2024-04-04
|
h0dlr,issue,#974,#884,good-first-issue,,,,2k,HODLR@stacker.news,2024-04-04
|
||||||
benalleng,pr,#975,,,,,,20k,BenAllenG@stacker.news,2024-03-26
|
benalleng,pr,#975,,,,,,20k,BenAllenG@stacker.news,2024-03-26
|
||||||
SatsAllDay,security,#980,GHSA-qg4g-m4xq-695p,,,,,100k,weareallsatoshi@getalby.com,2024-03-28
|
SatsAllDay,security,#980,GHSA-qg4g-m4xq-695p,,,,,100k,weareallsatoshi@getalby.com,2024-03-28
|
||||||
SatsAllDay,code review,#980,GHSA-qg4g-m4xq-695p,medium,,,,25k,weareallsatoshi@getalby.com,2024-03-28
|
SatsAllDay,code review,#980,GHSA-qg4g-m4xq-695p,medium,,,,25k,weareallsatoshi@getalby.com,2024-03-28
|
||||||
|
|
@ -5,6 +5,7 @@ export const CURRENCY_SYMBOLS = {
|
|||||||
GBP: '£',
|
GBP: '£',
|
||||||
USD: '$',
|
USD: '$',
|
||||||
NZD: '$',
|
NZD: '$',
|
||||||
|
NGN: '₦',
|
||||||
ZAR: 'R '
|
ZAR: 'R '
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ The first argument is the [BOLT11 payment request](https://github.com/lightning/
|
|||||||
|
|
||||||
### server.js
|
### server.js
|
||||||
|
|
||||||
A wallet that supports receiving file must export the following properties in server.js which are only available if this wallet is imported on the server:
|
A wallet that supports receiving must export the following properties in server.js which are only available if this wallet is imported on the server:
|
||||||
|
|
||||||
- `testConnectServer: async (config, context) => Promise<void>`
|
- `testConnectServer: async (config, context) => Promise<void>`
|
||||||
|
|
||||||
@ -205,11 +205,11 @@ A wallet that supports receiving file must export the following properties in se
|
|||||||
|
|
||||||
It should attempt to create a test invoice to make sure that this wallet can later create invoices for receiving.
|
It should attempt to create a test invoice to make sure that this wallet can later create invoices for receiving.
|
||||||
|
|
||||||
Again, like `testConnectClient`, the first argument is the wallet configuration that we should validate. However, unlike `testConnectClient`, the `context` argument here contains `me` (the user object) and `models` (the Prisma client).
|
Again, like `testConnectClient`, the first argument is the wallet configuration that we should validate and this should thrown an error if validation fails. However, unlike `testConnectClient`, the `context` argument here contains `me` (the user object) and `models` (the Prisma client).
|
||||||
|
|
||||||
- `createInvoice: async (amount: int, config, context) => Promise<bolt11: string>`
|
- `createInvoice: async (amount: int, config, context) => Promise<bolt11: string>`
|
||||||
|
|
||||||
`createInvoice` will be called whenever this wallet should receive a payment. The first argument `amount` specifies the amount in satoshis. The second argument `config` is the current configuration of this wallet. The third argument `context` is the same as in `testConnectServer` except it also includes `lnd` which is the return value of [`authenticatedLndGrpc`](https://github.com/alexbosworth/ln-service?tab=readme-ov-file#authenticatedlndgrpc) using the SN node credentials.
|
`createInvoice` will be called whenever this wallet should receive a payment. It should return a BOLT11 payment request. The first argument `amount` specifies the amount in satoshis. The second argument `config` is the current configuration of this wallet. The third argument `context` is the same as in `testConnectServer` except it also includes `lnd` which is the return value of [`authenticatedLndGrpc`](https://github.com/alexbosworth/ln-service?tab=readme-ov-file#authenticatedlndgrpc) using the SN node credentials.
|
||||||
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user