Skip to content

Wallet v2 #2169

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

Draft
wants to merge 43 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3052951
Migrate vault entries to new schema (#2092)
ekzyis May 18, 2025
45ea99d
Wallet schema v2 (#2146)
ekzyis May 18, 2025
170a446
Add wallet-v2 TODOs
ekzyis May 18, 2025
7c56ffd
Update checkWallet
ekzyis May 18, 2025
ce543b2
Wallet list
ekzyis May 18, 2025
4221584
Delete almost all wallet v1 code
ekzyis May 21, 2025
3001005
Define protocol display name in JSON
ekzyis May 26, 2025
15418df
Show form per protocol
ekzyis May 26, 2025
18f5646
Increase max-height of image in form
ekzyis May 27, 2025
42c2940
Add JSdoc for protocols, form validation
ekzyis May 27, 2025
7071ab4
Use wallet cards again
ekzyis May 27, 2025
c4f9d03
Refactor hooks in wallet provider
ekzyis May 27, 2025
d04dcf1
Fix PasswordInput not used
ekzyis May 27, 2025
7f67066
Read encrypted wallets
ekzyis May 27, 2025
e70c397
Decrypt wallets
ekzyis May 28, 2025
1785b76
Rename protocolJson to protocol
ekzyis May 28, 2025
fac1ea9
Fix form not updated with decrypted API key
ekzyis May 30, 2025
deb3cc8
Fix wallet template forms
ekzyis May 30, 2025
236ec94
Fix optional shown as hint
ekzyis May 30, 2025
b4213f7
Rename to mapUserWalletResolveTypes
ekzyis May 30, 2025
be0c1fb
Save LNbits send and recv
ekzyis May 31, 2025
60f83ac
Move definitions to lib/wallets.json and lib/protocols
ekzyis May 31, 2025
daf8729
Fix ProtocolWallet.updated_at not updated by trigger
ekzyis Jun 1, 2025
c1cd83c
Move wallet fragments into wallets/client/fragments/
ekzyis Jun 1, 2025
3b08c13
Move wallet resolvers into wallets/server/resolvers
ekzyis Jun 1, 2025
8d7eb15
Fix missing authorization check on wallet update
ekzyis Jun 1, 2025
678706a
Run all shared code in generic wallet update function
ekzyis Jun 1, 2025
64ccd8b
Fix 'encrypt' flag not set for blink send currency
ekzyis Jun 1, 2025
8b5defd
Add mutations for all protocols
ekzyis Jun 1, 2025
87f5cb9
Fix macaroon validation
ekzyis Jun 1, 2025
7372de0
Fix CLN socket value not set
ekzyis Jun 2, 2025
ea596c0
Add server-side schema validation
ekzyis Jun 2, 2025
b3b45c0
Fix JSDoc typedef for protocols
ekzyis Jun 2, 2025
619057a
Don't put JSDoc into separate file
ekzyis Jun 2, 2025
da9fc08
Create test invoices on save
ekzyis Jun 2, 2025
294c4cc
Also move type resolvers into wallets/server/resolvers
ekzyis Jun 3, 2025
d950a4c
Fix unconfigured protocols of UserWallet not found
ekzyis Jun 3, 2025
4cce441
Fix Blink API key in wallet seed
ekzyis Jun 3, 2025
222f649
Test send payment on save (except LNC)
ekzyis Jun 3, 2025
fd8ed41
Check if window.webln is defined on save
ekzyis Jun 4, 2025
969e3eb
Create new wallets from templates
ekzyis Jun 4, 2025
e36a474
Separate protocols in wallets/lib into individual files
ekzyis Jun 4, 2025
532ed8c
Use justify-content-start for protocol tabs
ekzyis Jun 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ docker-compose.*.yml
*.sql
!/prisma/migrations/*/*.sql
!/docker/db/seed.sql
!/docker/db/wallet-seed.sql

# nostr wallet connect
scripts/nwc-keys.json
Expand Down
6 changes: 3 additions & 3 deletions api/resolvers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import user from './user'
import message from './message'
import item from './item'
import wallet from './wallet'
import userWallet from '@/wallets/server/resolvers'
import lnurl from './lnurl'
import notifications from './notifications'
import invite from './invite'
Expand All @@ -19,7 +20,6 @@ import chainFee from './chainFee'
import { GraphQLScalarType, Kind } from 'graphql'
import { createIntScalar } from 'graphql-scalar'
import paidAction from './paidAction'
import vault from './vault'

const date = new GraphQLScalarType({
name: 'Date',
Expand Down Expand Up @@ -54,6 +54,6 @@ const limit = createIntScalar({
maximum: 1000
})

export default [user, item, message, wallet, lnurl, notifications, invite, sub,
export default [user, item, message, wallet, userWallet, lnurl, notifications, invite, sub,
upload, search, growth, rewards, referrals, price, admin, blockHeight, chainFee,
{ JSONObject }, { Date: date }, { Limit: limit }, paidAction, vault]
{ JSONObject }, { Date: date }, { Limit: limit }, paidAction]
53 changes: 0 additions & 53 deletions api/resolvers/vault.js

This file was deleted.

Loading