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

Lootbox contract #23

Merged
merged 14 commits into from
Feb 10, 2025
Merged

Lootbox contract #23

merged 14 commits into from
Feb 10, 2025

Conversation

nachopiris
Copy link
Contributor

@nachopiris nachopiris commented Dec 9, 2024

Copy link
Contributor

@ScreamingHawk ScreamingHawk left a comment

Choose a reason for hiding this comment

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

Nice! This is a good start

@nachopiris nachopiris marked this pull request as ready for review December 13, 2024 14:01
Copy link
Contributor

@ScreamingHawk ScreamingHawk left a comment

Choose a reason for hiding this comment

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

Looking good. Couple small items then we are good to go.

@ScreamingHawk ScreamingHawk self-requested a review December 16, 2024 21:48
Copy link
Contributor

@ScreamingHawk ScreamingHawk left a comment

Choose a reason for hiding this comment

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

LGTM!
Let's update the .gas-snapshot and then merge it

event Commit(address user, uint256 blockNumber);
event Commit(address indexed user, uint256 blockNumber);
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not index events. It costs more gas and doesn't give any benefit on our indexer since we filter on data.

import {IERC1155ItemsFunctions} from "@0xsequence/contracts-library/tokens/ERC1155/presets/items/IERC1155Items.sol";

contract ERC1155Lootbox is ERC1155Items, IERC1155Lootbox {
bytes32 internal constant MINT_ADMIN_ROLE = keccak256("MINT_ADMIN_ROLE");
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rename this to LOOTBOX_ADMIN_ROLE?

@ScreamingHawk ScreamingHawk merged commit 711c363 into 0xsequence:master Feb 10, 2025
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.

3 participants