NethermindEth / StarknetByExample

A collection of examples of Cairo smart contracts for Starknet.
https://starknet-by-example.voyager.online/
MIT License
120 stars 86 forks source link

Feature: Bi-Directional Payment Channel #258

Open julio4 opened 21 hours ago

julio4 commented 21 hours ago

Description

A bi-directional payment channel implementation enable off-chain transactions between two parties (Alice and Bob). They allow both parties to exchange funds back and forth without creating on-chain transactions for each transfer.

Show an implementation of such channel on Starknet.

Criteria

Resources:

ODHack

To be eligible for additional rewards, be sure to review and follow the ODHack Common Guidelines and Contributing Guidelines.

Be sure to join the telegram group and introduce yourself.

NueloSE commented 21 hours ago

Could I be assigned to this?

TropicalDog17 commented 21 hours ago

Hi, I have experience in various open source Rust projects.

carbonable-labs/svgenerator#10

https://github.com/paradigmxyz/reth/commits/main/?author=TropicalDog17

https://github.com/foundry-rs/foundry/commits/master/?author=TropicalDog17

I also have some experience in Cairo, and Solidity: https://github.com/kfastov/worldcoin-bridge-linea/pulls?q=is%3Apr+author%3ATropicalDog17+is%3Aclosed

bloomingpeach commented 21 hours ago

Hi, I've worked on several Cairo tasks in these projects: Shinigami, Raito, ArtPeace and have experience with both Solidity and Cairo development.

ryzen-xp commented 20 hours ago

Hi, I am proficient Blockchain developer expert in Cairo , Rust and Solidity and also in web development. I have contributed many cairo ,rust projects like chainevents , arkprojects etc . please /assign this issue . Thank You

Supa-mega commented 20 hours ago

Can I try solving this issue?

saimeunt commented 19 hours ago

Can I start working on this?

Gerson2102 commented 17 hours ago

Hey! I'm Gerson. 👋

Member of Dojo Coding. I have contributed before to other projects like:

Can I work on this issue?

Check my OnlyDust profile, I've contributed to many projects: Profile


Plan to Solve the Issue:

  1. Study the codebase to understand the current structure and functionality.
  2. Understand the problem that needs to be solved by thoroughly reading the issue details.
  3. Leverage all provided resources within the issue to get a better grasp of the task at hand.
  4. If I encounter roadblocks, I will ask questions ASAP in the Telegram group to move forward effectively.
  5. I will open a PR and wait for ur feedback

ShantelPeters commented 16 hours ago

I will solve this issue by implementing a bi-directional payment channel on Starknet, next i will create a smart contract with functions for deposit, transfer, close, and settle. I will then store each party's balance and handle off-chain transactions with cryptographic proofs. Allowing both parties to update balances off-chain, and finalize only when the channel is closed. Lastly i will integrate tests to ensure deposits, transfers, and dispute resolution work correctly, then deploy the contract to Starknet. Kindly assign .

sandragcarrillo commented 15 hours ago

Hi, I would love to contribute to this issue. I have been learning Cairo for the past 3 months and been creating guides for Starknet contracts during my internship at Nethermind (already completed), including ERC-720 and ERC-20. I started to contribute to Open Source projects during this ODHack, this issue would be an amazing opportunity to start my path as open source contributor in the Starknet ecosystem.

To solve this issue I would create an implementation of bi-directional payment channel and write integration tests using the resources you shared as the inspiration for it.

augustin-v commented 13 hours ago

Hello Julio I'd like to work on this. I have experience in Cairo contributing to Kakarot-ssj, and I am confident in tackling this issue. I'll make sure to communicate if I encounter any problem along the way.