setlife-network / trinary

A budgeting tool for tracking workflows and cashflows while collaborating with others on projects
MIT License
6 stars 2 forks source link

Implement API endpoint to create/update Advance Wallet Setup #804

Closed sofiaromorales closed 1 year ago

sofiaromorales commented 1 year ago

Similar to this implementation: https://github.com/setlife-network/trinary/pull/801/files#diff-35ed3315bcd4a93dba2a1648ddf7dae4917d36c6717ee187ed43a48100c84d28

Create an API mutation updateContributorAdvanceWallet That will check first if the user already has a wallet entry on the DB. If that's the case update the row. If the user has no entry on the Wallet table create a new one.

Before storing the data in the DB check that the node is valid.

sofiaromorales commented 1 year ago

https://docs.lightning.engineering/lapps/guides/add-features/connect-to-lnd