stacksgov / grants-program

Archive of past Stacks Foundation grant applications. Historical record of ecosystem development.
https://stacks.org/grants
141 stars 36 forks source link

Stacks - Lightning Network Bridge #3 #258

Closed pseudozach closed 2 years ago

pseudozach commented 2 years ago

Background This is a follow-up grant request to #172 and #204 where a non-custodial submarine swap implementation is successfully developed, open sourced and deployed. This service is currently live at https://LNSwap.org.

During last few months, service has seen increased usage and received great feedback from the community: https://twitter.com/muneeb/status/1479508231345127426?s=20 https://twitter.com/alexrudloff/status/1480880538638594050?s=20 https://twitter.com/heynky/status/1479550035184394241?s=20 https://twitter.com/JakeBlockchain/status/1479642317367562243?s=20 and many others...

Most recent Mint NFT with Lightning feature as part of integration with other apps has gotten great attention as well: https://twitter.com/jamilbtc/status/1479226840766111753?s=20 These integrations are ongoing, there are already a few others in the pipeline.

I've gotten first-hand look at what it takes to run this service for the past months and as of now, it requires a lot of sysadmin skills, daily monitoring, scripting. Even though the software itself is rather stable, operation is not currently plug&play.

Target of this follow-up grant is to stabilize this project and prepare it for ramp-up and high volume production usage by any swap operator.

Project Overview This grant will help close the gaps of the codebase in terms of stability, test coverage and build necessary tools such that operators can run the app with the least amount of know-how and daily intervention.

Scope See below for a list of categories and components that will be developed to cover gaps in day-to-day operation of LNSwap codebase.

New Features

Admin Tools

Stability

Visual Design

Budget and Milestones M1: Deliverables: New Features Timeline/Cost: 3 weeks/15k$

M2: Deliverables: Admin Tools Timeline/Cost: 2 weeks/10k$

M3: Deliverables: Stability Timeline/Cost: 3 weeks/15k$

M4: Deliverables: Visual Design Timeline/Cost: 2 weeks/10k$

Total Grant Request: 50k$

Team I'll continue working on this. See below for my commit history over the past months. https://github.com/pseudozach/lnstxbridge/commits/main https://github.com/pseudozach/lnstxbridge-frontend/commits/main

Risks Initially only non-custodial mint NFT with Lightning will be developed and rest of the use-cases will be met as requested by community/other stacks teams. This is not considered a risk but the plan is develop Trigger contract-call feature as a separate/external contract to standard swap contracts, this will ensure it can be expanded to cover new use cases i.e. Join a yield farm for USDA with Lightning or join an STX stacking pool with Lightning.

Community and Supporting Materials I'll continue using Stacks Discord, twitter and other social media channels to inform the community on the output of the grant.

https://github.com/pseudozach/lnstxbridge https://github.com/pseudozach/lnstxbridge-frontend https://lnswap.org Discord: https://discord.gg/Gt45nMYPCM Twitter: https://twitter.com/ln_swap

stx-grant-bot[bot] commented 2 years ago

Thanks for submitting a grant proposal. Our team will review your submission and get back to you.

will-corcoran commented 2 years ago

@pseudozach -

We are thrilled with what you have been able to accomplish to date and are pleased to continue our support for your extraordinary work. This grant is approved!
Can wait to see it in action and hear about it in a follow up conversation with @JakeBlockchain

stx-grant-bot[bot] commented 2 years ago

Congratulations. Your grant is now approved. Please complete the on-boarding link here: https://stacks-grant.netlify.app/onboard?q=c860e13bacc007ea257991cad39171d2

pseudozach commented 2 years ago

Hi, Updates on M-1: Channel open feature is implemented and currently live on lnswap.org. This allows users without a Lightning channel (or unreachable from LNSwap LN node) to have an incoming channel when they swap their STX to LN. Demo video: https://www.youtube.com/watch?v=YOY6WWTfuZY

Trigger contract call with LN feature: Clarity contract is deployed and ready to be used on mainnet but we've been holding off due to:

  1. Recent congestion on the chain which seems to be clearing.
  2. A bug in the hiro wallet not allowing sponsored txns which will hopefully be resolved soon.

Once Hiro wallet is updated with the sponsored tx fix, we'll be able to do a demo with stxnft.com to show off non-custodial NFT mint with Lightning with 0 STX. After that all the other marketplaces and apps will be able to use this functionality.

Additional note: I'm considering adding another deliverable to M-2 to enable non-technical folks to run a lnstxbridge client to reduce the barrier to entry for swap providers. Currently this is the limitation on liquidity so it's important to tackle this. I'll share more once I'm more certain on feasibility.

will-corcoran commented 2 years ago

@pseudozach this is looking really cool! thanks for sharing. I know resolving the sponsored tx issue is a priority for the wallet team. Excited to see what you can do when that is resolved. Keep us updated on the M-2 add you are considering!

pseudozach commented 2 years ago

Updates on M-1:

This concludes all deliverables for M1. Thanks,

!M1_Complete

stx-grant-bot[bot] commented 2 years ago

Sorry, you can only complete a milestone if it is active.

pseudozach commented 2 years ago

!M1_Complete

stx-grant-bot[bot] commented 2 years ago

Thank you for completing M1. The grant committee will review and confirm completion or send feedback within a week

pseudozach commented 2 years ago

Hi,

All M-2 deliverables are completed, see details below:

[1] image

[2] Screen Shot 2022-02-24 at 5 07 49 PM

!M2_Complete

stx-grant-bot[bot] commented 2 years ago

Sorry, you can only complete a milestone if it is active.

pseudozach commented 2 years ago

!m2_complete

stx-grant-bot[bot] commented 2 years ago

Thank you for completing M2. The grant committee will review and confirm completion or send feedback within a week

pseudozach commented 2 years ago

Hello, I'm happy to share progress and report completion of Milestone-3,

As targeted previously in this stability milestone:

I'm already very excited to continue to next milestone and improve the UI design. I've approached some designers and looking forward to get a new logo and re-design the website to bring it inline with community expectations. Should be fun! !M3_complete

Ref-1: Before: Screen Shot 2022-03-16 at 3 18 18 PM After: Screen Shot 2022-03-16 at 3 19 02 PM

Ref-2: Before - lockStx call on stxswap_v8 https://stacks-node-api.stacks.co/extended/v1/tx/0x3163c088b9ce668003de4c504855c5d66f3eee297eece9f7971ef80efbd4ed69

Screen Shot 2022-03-21 at 12 41 42 AM

After - lockStx call on stxswap_v10 https://stacks-node-api.stacks.co/extended/v1/tx/0xff1b224d602b447415ff75fa992158c51870997cb650ddab4e88a37afd718a41

Screen Shot 2022-03-21 at 12 43 25 AM

Ref-3: Before - triggerStx on triggerswap-v3

Screen Shot 2022-03-21 at 12 48 54 AM

After - triggerStx on triggerswap-v5

Screen Shot 2022-03-21 at 12 49 27 AM

Ref-4: Before - clarity coverage Screen Shot 2022-03-17 at 10 30 49 AM

After - clarity coverage Screen Shot 2022-03-17 at 3 14 35 PM

Ref-5: Before - unit test coverage Screen Shot 2022-03-18 at 8 45 39 PM

After - unit test coverage Screen Shot 2022-03-19 at 11 18 12 PM

stx-grant-bot[bot] commented 2 years ago

Sorry, you can only complete a milestone if it is active.

pseudozach commented 2 years ago

!m3_complete :)

stx-grant-bot[bot] commented 2 years ago

Thank you for completing M3. The grant committee will review and confirm completion or send feedback within a week

pseudozach commented 2 years ago

Hi, Proud to announce the completion of the final milestone and this grant!

Redesigned UI is merged to lnstxbridge-frontend repo and deployed to production on https://www.lnswap.org.

While I'm happy with the outcome and achieved everything set out to do in this milestone, there is still a lot of work to do and a long wish-list of to-do items like: analytics and a nice landing page that explains the app with relevant animations.

Hopefully I'll have some exciting announcements in the near future and will continue working on this to materialize the vision of a truly decentralized atomic swap network powered by self-hosted nodes where users are able to swap assets with each other without middleman.

I also want to once again thank Stacks Foundation for supporting this work and providing funding to build cool stuff. So much more to do.

Thanks,

!M4_Complete

stx-grant-bot[bot] commented 2 years ago

Thank you for completing M4. The grant committee will review and confirm completion or send feedback within a week

will-corcoran commented 2 years ago

Hello and thank you for participating in the Stacks Foundation Grants Program!

We are in the process of migrating from GitHub to the new Grants Dashboard. In order to complete your grant, you will need to submit any remaining Progress Review and/or Final Review requests through the Dashboard in order to receive your remaining payments.

Lastly, please note we are marking this grant 'closed' on GitHub for organizational purposes, but it is still 'open' on the Grants Dashboard.

Thanks and we hope to continue to support your efforts with additional grants!

Best, Will