-
Notifications
You must be signed in to change notification settings - Fork 51
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
Conversation
credence0x
commented
Oct 17, 2024
- 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
- separate season pass contracts from eternum because of compilation issues - make realm model smaller - use season pass in client
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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; |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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