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

[contracts + client] season pass #1862

Merged
merged 19 commits into from
Oct 18, 2024
Merged

[contracts + client] season pass #1862

merged 19 commits into from
Oct 18, 2024

Conversation

credence0x
Copy link
Collaborator

  • created a season pass contract as well as a test realms contract
  • get realm metadata from contracts rather than passing it through client. now, realms can no longer be duplicated
  • remove unnecessary fields from Realm model
  • update client to use season pass
  • formula optimizations here and there

Copy link

vercel bot commented Oct 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eternum ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2024 10:00pm

Copy link
Contributor

mentatbot bot commented Oct 17, 2024

You are out of MentatBot reviews. Your usage will refresh October 21 at 07:00 AM.

@@ -75,28 +75,29 @@ fn all_resource_ids() -> Array<u8> {

// Note: Please update the all_resources_ids list whenever ResourceTypes are updated
mod ResourceTypes {
const WOOD: u8 = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

why have these changed?

Coal = 3,
Stone = 1,
Coal = 2,
Wood = 3,
Copy link
Contributor

Choose a reason for hiding this comment

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

why did ids change?

}

#[starknet::contract]
mod EternumSeasonPass {
Copy link
Contributor

Choose a reason for hiding this comment

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

Where are we going to check that the pass has been used? I think for sanity, we should burn the pass if it is used.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

used passes would be owned by the realms system contract. we transfer the pass to the realms system contract. we could also burn

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok - let's leave that. Then we can track as we go.

Copy link
Contributor

@ponderingdemocritus ponderingdemocritus left a comment

Choose a reason for hiding this comment

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

Looks good - confused why resource IDS have changed

@credence0x credence0x merged commit f6db602 into rc-1 Oct 18, 2024
25 checks passed
@credence0x credence0x deleted the season-pass branch October 18, 2024 22:02
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.

2 participants