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

Data Structures and Contract Storage Setup for storage contract #7

Open
sshubhamagg opened this issue Feb 17, 2025 · 0 comments
Open
Assignees

Comments

@sshubhamagg
Copy link
Member

  1. Define contract state variables:

    address public owner;
    bool public paused;
    uint256 public registrationFee;
    address public feeCollector;
  2. Define core data structures:

    struct ID {
        address primaryWallet;
        uint256 registrationTimestamp;
        address registrar;
    }
    
  3. Define storage mappings:

    mapping(uint256 => ID) private ids;
    mapping(address => uint256) private primaryWalletToId;
    mapping(address => uint256) private secondaryWalletToId;
    mapping(address => bool) private registrars;
    
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

No branches or pull requests

2 participants