-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(wallet-backend): introduce web-monetization payment pointers #896
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
package: wallet/backend
Wallet backend implementations
type: source
Source changes
labels
Oct 16, 2023
packages/wallet/backend/src/paymentPointer/webMonetization/model.ts
Outdated
Show resolved
Hide resolved
packages/wallet/backend/src/paymentPointer/webMonetization/service.ts
Outdated
Show resolved
Hide resolved
packages/wallet/backend/src/paymentPointer/webMonetization/service.ts
Outdated
Show resolved
Hide resolved
dragosp1011
reviewed
Oct 17, 2023
packages/wallet/backend/src/paymentPointer/webMonetization/service.ts
Outdated
Show resolved
Hide resolved
add register key and revoke key to wmPaymentPointerService move wm module out of paymentPointers directory
use revoke and register key in paymentPointerService to also apply changes to WMPaymentPointers getAccounts for user now also returns wmPaymentPointers getRafikiAsset can now receive an assetScale filter param along with the assetCode one
packages/wallet/backend/src/webMonetization/paymentPointer/model.ts
Outdated
Show resolved
Hide resolved
packages/wallet/backend/src/webMonetization/paymentPointer/service.ts
Outdated
Show resolved
Hide resolved
dragosp1011
reviewed
Oct 18, 2023
github-actions
bot
added
the
package: wallet/frontend
Wallet frontend implementations
label
Oct 18, 2023
beniaminmunteanu
changed the title
Wm payment pointers module
feat(wallet-backend): introduce web-monetization payment pointers
Oct 18, 2023
The Frontend changes just concat wmPaymentPointers with normal paymentPointers,so the code doesn't break. @raducristianpopa @Tymmmy maybe you decide further on how you want to aggregate/segregate the data. |
dragosp1011
reviewed
Oct 18, 2023
dragosp1011
reviewed
Oct 18, 2023
dragosp1011
reviewed
Oct 18, 2023
Tymmmy
reviewed
Oct 18, 2023
Tymmmy
reviewed
Oct 18, 2023
Tymmmy
reviewed
Oct 18, 2023
Tymmmy
approved these changes
Oct 19, 2023
raducristianpopa
approved these changes
Oct 19, 2023
dragosp1011
approved these changes
Oct 19, 2023
raducristianpopa
pushed a commit
that referenced
this pull request
Oct 24, 2023
* fix(wallet-backend): env parsing * feat(wallet-backend) add caching * fix(wallet-backend): docker-compose dev variable names * feat(wallet-backend): introduce web monetized payment pointers module * feat(wallet-backend): update balance now only does balance add register key and revoke key to wmPaymentPointerService move wm module out of paymentPointers directory * feat(wallet-backend): WM payment pointers: use revoke and register key in paymentPointerService to also apply changes to WMPaymentPointers getAccounts for user now also returns wmPaymentPointers getRafikiAsset can now receive an assetScale filter param along with the assetCode one * chore(wallet-backend): remove comment * fix(wallet-backend): wm get shouldn't throw * chore(wallet-backend): wmPp get method refactor * move wmPaymentPointerModel into paymentPointerModule * move wmPaymentPointers to PaymentPointers * add REDIS_URL to prod env.example * cache service now has a generic type across the cache * rename CacheService to Cache * list now returns 2 arrays of wm or not wm paymentPointers * update frontend to match list response * remove leftover wmPaymentPointers relation on getAccounts * format * add concat on paymentPointers response to transactions list as well * lint * fix frontend error * fix frontend error * add redis_url default value in env * accountId is now optional on Payment pointer getByID * update balance no longer needs accoutId * format & errors * resolve PR comments * remove wmPaymentPointers from the account page payment pointers list * format
raducristianpopa
added a commit
that referenced
this pull request
Oct 26, 2023
* feat(wallet/backend): add initial migrations for wm (#887) * Add migrations * Add new env variables * Add models and debt column * Format * Update MAX_ASSET_SCALE value * Update column name * feat(wallet/frontend): specify payment pointer type (#893) * Add option to use PP as WM-PP when creating * PR review changes * Update Checkbox.tsx * PR changes * PR changes * feat(wallet-backend): introduce web-monetization payment pointers (#896) * fix(wallet-backend): env parsing * feat(wallet-backend) add caching * fix(wallet-backend): docker-compose dev variable names * feat(wallet-backend): introduce web monetized payment pointers module * feat(wallet-backend): update balance now only does balance add register key and revoke key to wmPaymentPointerService move wm module out of paymentPointers directory * feat(wallet-backend): WM payment pointers: use revoke and register key in paymentPointerService to also apply changes to WMPaymentPointers getAccounts for user now also returns wmPaymentPointers getRafikiAsset can now receive an assetScale filter param along with the assetCode one * chore(wallet-backend): remove comment * fix(wallet-backend): wm get shouldn't throw * chore(wallet-backend): wmPp get method refactor * move wmPaymentPointerModel into paymentPointerModule * move wmPaymentPointers to PaymentPointers * add REDIS_URL to prod env.example * cache service now has a generic type across the cache * rename CacheService to Cache * list now returns 2 arrays of wm or not wm paymentPointers * update frontend to match list response * remove leftover wmPaymentPointers relation on getAccounts * format * add concat on paymentPointers response to transactions list as well * lint * fix frontend error * fix frontend error * add redis_url default value in env * accountId is now optional on Payment pointer getByID * update balance no longer needs accoutId * format & errors * resolve PR comments * remove wmPaymentPointers from the account page payment pointers list * format * feat(wm): update webhook handling and transactions service (#906) * feat(wm): update webhook handling and transactions service * fix: change fetched user * chore: add redis testing container * chore: fix formatting * chore: fix tests * fix: handle failed outgoing payments * feat: return ids and sum of transactions * fix: add incoming transaction default values * fix: remove value on creating wm transaction * feat(wallet-frontend): Display wm payment pinters in separate list (#902) * Add Web Monetization list * Update PaymentPointerCard.tsx * Update web-monetization.tsx * List WM PPs * Display WM PPs with balance, in tabs with account * PR changes applied * Update Tabs.tsx * PR changhes * Update SettingsTabs.tsx * feat(wallet/backend): add wm payment pointer transactions worker (#905) * Add Web Monetization list * Update PaymentPointerCard.tsx * Update web-monetization.tsx * List WM PPs * feat(wm): update webhook handling and transactions service * fix: change fetched user * chore: add redis testing container * chore: fix formatting * chore: fix tests * fix: handle failed outgoing payments * feat: return ids and sum of transactions * Init worker * Display WM PPs with balance, in tabs with account * Progress * PR changes applied * Update Tabs.tsx * PR changhes * Update SettingsTabs.tsx * Add to debt * Progress * Remove updateBalance method and fix transaction * PR feedback * Start server before running workers * PR feedback * Update asset check --------- Co-authored-by: Tymmmy <[email protected]> Co-authored-by: Dragos <[email protected]> * fix(wallet/frontend): payment pointer format and focus (#932) Update [accountId].tsx * feat(wallet/frontend): add cookie name environment variable (#936) * Add cookie name env variable * Update middleware * feat(wallet): WM only for USD accounts (#938) WM only for USD accounts --------- Co-authored-by: Timea <[email protected]> Co-authored-by: xplicit <[email protected]> Co-authored-by: dragosp1011 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
package: wallet/backend
Wallet backend implementations
package: wallet/frontend
Wallet frontend implementations
type: source
Source changes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
implements: #880
This PR introduces web monetization payment pointers. It also adds Caching over Redis.