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 Send Payment to Contributors API #812

Closed sofiaromorales closed 1 year ago

sofiaromorales commented 1 year ago

When clicking on Send bonuses (https://www.figma.com/file/qgGWXmprU7vTv7guzWzvML/Project-Trinary?type=design&node-id=4037-12961), the amount in sats must be sent to the selected contributors from the list.

Implement the backend needed to send the money from the advanced wallet of the logged user to the set-up wallets of the selected contributors. If a contributor has a simple and advanced wallet setup use the advanced info to make the payment.

From the UI I should be able to make an API call similar to this:

sendBonuses(amount: (sats), contributors: [(contributorId)]) {
 totalAmountSent
}

There might be some implementation in place already since Rishab was working on this last year, before coding take a moment to look at the codebase and understand the state of things.

sofiaromorales commented 1 year ago

@Ovifer13 description updated, let me know if you have any questions

Ovifer13 commented 1 year ago

https://www.npmjs.com/package/bitcoin-transaction https://lightning.engineering/api-docs/api/lnd/lightning/add-invoice

Ovifer13 commented 1 year ago

https://docs.btcpayserver.org/FAQ/LightningNetwork/#how-to-change-from-c-lightning-to-lnd-or-vice-versa