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

fix(SeenConstants): SCS-01C use immutable instead of constants for gas savings #36

Merged
merged 1 commit into from
Dec 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions contracts/domain/SeenConstants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ pragma solidity ^0.8.0;
contract SeenConstants {

// Endpoint will serve dynamic metadata composed of ticket and ticketed item's info
string internal constant ESCROW_TICKET_URI = "https://seen.haus/ticket/metadata/";
string internal constant ESCROW_TICKET_URI = "https://api.seen.haus/ticket/metadata/";

// Access Control Roles
bytes32 internal constant ADMIN = keccak256("ADMIN"); // Deployer and any other admins as needed
bytes32 internal constant SELLER = keccak256("SELLER"); // Approved sellers amd Seen.Haus reps
bytes32 internal constant MINTER = keccak256("MINTER"); // Approved artists and Seen.Haus reps
bytes32 internal constant ESCROW_AGENT = keccak256("ESCROW_AGENT"); // Seen.Haus Physical Item Escrow Agent
bytes32 internal constant MARKET_HANDLER = keccak256("MARKET_HANDLER"); // Market Handler contracts
bytes32 internal constant UPGRADER = keccak256("UPGRADER"); // Performs contract upgrades
bytes32 internal immutable ADMIN = keccak256("ADMIN"); // Deployer and any other admins as needed
bytes32 internal immutable SELLER = keccak256("SELLER"); // Approved sellers amd Seen.Haus reps
bytes32 internal immutable MINTER = keccak256("MINTER"); // Approved artists and Seen.Haus reps
bytes32 internal immutable ESCROW_AGENT = keccak256("ESCROW_AGENT"); // Seen.Haus Physical Item Escrow Agent
bytes32 internal immutable MARKET_HANDLER = keccak256("MARKET_HANDLER"); // Market Handler contracts
bytes32 internal immutable UPGRADER = keccak256("UPGRADER"); // Performs contract upgrades

}