Compare commits

..

5 Commits

Author SHA1 Message Date
keyan de38a683d5 remove saloon from top posts 2024-07-21 13:57:18 -05:00
ekzyis e517abb061
Fix+improve wallet README (#1269) 2024-07-21 13:26:33 -05:00
h0dlr 1ef88664d4
Update awards.csv (#1267) 2024-07-21 11:47:34 -05:00
Anis Khalfallah 887354820b
fix: modified docker link, added free disk space requirement (#1265) 2024-07-21 11:47:12 -05:00
Anis Khalfallah f051afff35
feat: added NGN currency (#1264) 2024-07-21 11:46:52 -05:00
5 changed files with 8 additions and 5 deletions

View File

@ -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>

View File

@ -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'),

View File

@ -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

1 name type pr id issue ids difficulty priority changes requested notes amount receive method date paid
18 benalleng pr #972 #923 good-first-issue 20k BenAllenG@stacker.news 2024-03-26
19 SatsAllDay issue #972 #923 good-first-issue 2k weareallsatoshi@getalby.com 2024-03-26
20 felipebueno pr #974 #884 good-first-issue 20k felipe@stacker.news 2024-03-26
21 h0dlr issue #974 #884 good-first-issue 2k 0xe14b9b5981c729a3@ln.tips HODLR@stacker.news 2024-04-04
22 benalleng pr #975 20k BenAllenG@stacker.news 2024-03-26
23 SatsAllDay security #980 GHSA-qg4g-m4xq-695p 100k weareallsatoshi@getalby.com 2024-03-28
24 SatsAllDay code review #980 GHSA-qg4g-m4xq-695p medium 25k weareallsatoshi@getalby.com 2024-03-28

View File

@ -5,6 +5,7 @@ export const CURRENCY_SYMBOLS = {
GBP: '£', GBP: '£',
USD: '$', USD: '$',
NZD: '$', NZD: '$',
NGN: '₦',
ZAR: 'R ' ZAR: 'R '
} }

View File

@ -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]