Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Rainbow Quest #135

Merged
merged 5 commits into from
May 7, 2024
Merged

Conversation

TAdev0
Copy link
Contributor

@TAdev0 TAdev0 commented May 6, 2024

This PR implements the Rainbow Quest.

It also adds a missing is_claimed function to the Authority Quest (i forgot it in my previous PR) .

Closes #129

@TAdev0 TAdev0 requested a review from b-j-roberts as a code owner May 6, 2024 19:57
@TAdev0
Copy link
Contributor Author

TAdev0 commented May 6, 2024

@b-j-roberts hi, here is the Rainbow Quest with 2 tests, one that should be successful and the other one that should fail if the user didn't place pixels of all colors that compose the palette.

Copy link
Contributor

@b-j-roberts b-j-roberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work as always, just a couple nits

onchain/src/quests/rainbow_quest.cairo Show resolved Hide resolved
onchain/src/tests/rainbow_quest.cairo Outdated Show resolved Hide resolved
@b-j-roberts
Copy link
Contributor

After this issue, there is some refactoring I would like to do on the quests, if you would like to work on them.

  1. I'd like to move QuestClaimed events from within the quest contracts to the ArtPeace contract, it will make it easier to index
  2. Some quests use assert! on failed claim, others return 0 reward. I'd like to move all of them to assert! calls

@TAdev0
Copy link
Contributor Author

TAdev0 commented May 7, 2024

Sure !

@TAdev0
Copy link
Contributor Author

TAdev0 commented May 7, 2024

@b-j-roberts comments addressed and conflicts resolved !

@TAdev0 TAdev0 requested a review from b-j-roberts May 7, 2024 09:22
@b-j-roberts b-j-roberts merged commit 66c3e74 into keep-starknet-strange:main May 7, 2024
3 checks passed
@b-j-roberts
Copy link
Contributor

Sure !

Feel free to start on those things. I'll just copy what I wrote into an issue and we can discuss there if you have questions/concerns.

mubarak23 pushed a commit to mubarak23/art-peace that referenced this pull request May 8, 2024
* rainbow quest

* add tests

* add should panic test

* address comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] Quest: Rainbow Quest
2 participants