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

Implement Contract Admin Functionalities for storage contract #8

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

Comments

@sshubhamagg
Copy link
Member

sshubhamagg commented Feb 17, 2025

  1. Implement fee management functions:

    function setRegistrationFee(uint256 _fee) external onlyOwner
    function setFeeCollector(address _collector) external onlyOwner
    
  2. Implement registrar management:

    function addRegistrar(address _registrar) external onlyOwner
    function removeRegistrar(address _registrar) external onlyOwner
    
  3. Implement pause functionality:

    function pause() external onlyOwner
    function unpause() external onlyOwner
    

Function Parameters:

setRegistrationFee:
- _fee: uint256 (amount in wei)

setFeeCollector:
- _collector: address (EOA wallet address)

addRegistrar:
- _registrar: address

Events Emitted:

RegistrarAdded(address indexed registrar, address indexed addedBy)
ContractPaused(address indexed by)
ContractUnpaused(address indexed by)

Events Emitted:

event RegistrationFeeUpdated(uint256 indexed oldFee, uint256 indexed newFee);
event FeeCollectorUpdated(address indexed oldCollector, address indexed newCollector);
event RegistrarAdded(address indexed registrar, address indexed addedBy);
event ContractPaused(address indexed by);
event ContractUnpaused(address indexed by);
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