konoha icon indicating copy to clipboard operation
konoha copied to clipboard

ODHack: Fix and Complete Airdrop Tests

Open ondrejsojka opened this issue 1 year ago • 16 comments

Description

The current airdrop_tests.cairo file contains quasi-broken tests, with many tests commented out. The goal is to make these tests functional. Reference the defispring repository, which contains a similar, tested contract developed based on the current airdrop contract.

Tasks

  1. Uncomment and Fix Tests in airdrop_tests.cairo

  2. Reference defispring Repository:

    • Use the defispring repository as a reference to understand the testing approach.
    • Ensure the tests in airdrop_tests.cairo exceed the robustness and coverage of those in defispring.
  3. Generate Test Data Using carmine-api-airdrop:

    • Utilize the carmine-api-airdrop to create the Merkle tree and generate proofs.
    • Use this test data in the airdrop_tests.cairo.

Resources

Acceptance Criteria

  • All tests in airdrop_tests.cairo are uncommented, functional, and pass.
  • Tests cover all specified cases in the README.
  • Test data generated using carmine-api-airdrop is correctly integrated into the tests.
  • scarb fmt

Please make sure to keep the testing structure consistent and ensure the tests are comprehensive and robust. Use functions from setup.cairo and do not duplicate them, extend if needed.

ondrejsojka avatar May 28 '24 14:05 ondrejsojka

Assigned to Nico Sanch, can you confirm?

ondrejsojka avatar May 28 '24 14:05 ondrejsojka

Yes, I'd like to take on this assignment. Thank you for the opportunity!

nicosanc avatar May 28 '24 15:05 nicosanc

Hi, could I work on this issue?

I'm relatively new to Cairo, and I believe the best way to start learning a new codebase is from writing and fixing tests

TropicalDog17 avatar Jun 08 '24 11:06 TropicalDog17

@TropicalDog17 Yes, good luck!

ondrejsojka avatar Jun 10 '24 13:06 ondrejsojka

@TropicalDog17 no update? Will unassign you unless no draft PR by Wednesday 7th August

ondrejsojka avatar Aug 05 '24 13:08 ondrejsojka

Yeah sorry I don't have the time to finish the task, feel free to assign someone else to do it, thanks!

TropicalDog17 avatar Aug 22 '24 14:08 TropicalDog17

@tensojka i would love to work on this. If it’s still open

zintarh avatar Aug 22 '24 14:08 zintarh

Hey @kateberryd! Thanks for showing interest. We've created an application for you to contribute to Konoha. Go check it out on OnlyDust!

onlydustapp[bot] avatar Aug 22 '24 14:08 onlydustapp[bot]

Hello @tensojka if this issue is still open I would like to work on it.

BenFaruna avatar Sep 05 '24 02:09 BenFaruna

Hey @BenFaruna! Thanks for showing interest. We've created an application for you to contribute to Konoha. Go check it out on OnlyDust!

onlydustapp[bot] avatar Sep 05 '24 02:09 onlydustapp[bot]

Please fill out the application @BenFaruna .

@kateberryd I would prefer to have you available for other frontend tasks as you have experience with that.

ondrejsojka avatar Sep 05 '24 08:09 ondrejsojka

Please fill out the application @BenFaruna .

I'm unable to apply from OnlyDust, the issue does not come up for projects except it's time for OD hack and the project is registered for that hack season.

BenFaruna avatar Sep 05 '24 09:09 BenFaruna

I see your aplication @BenFaruna but it doesn't show any previous OnlyDust experience. Our capacity to onboard new contributors is full at the moment, sorry.

ondrejsojka avatar Sep 05 '24 11:09 ondrejsojka

@tensojka can I work on this?

raizo07 avatar Sep 05 '24 11:09 raizo07

Hey @raizo07! Thanks for showing interest. We've created an application for you to contribute to Konoha. Go check it out on OnlyDust!

onlydustapp[bot] avatar Sep 05 '24 11:09 onlydustapp[bot]

@tensojka I contributed to a project earlier, but the project wasn't registered on Only dust so it doesn't show on the dashboard.

https://github.com/carbonable-labs/baseline-contracts/pull/3

That's my PR that got merged

BenFaruna avatar Sep 05 '24 11:09 BenFaruna