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

[REG-1430] RegistrarCustody contract #368

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

nickshatilo
Copy link
Member

@nickshatilo nickshatilo commented Oct 2, 2024

PR Checklist

1. Contracts versioning

  • Make sure that the patch version of the contracts is increased if changes have been made to the UNSRegistry, MintingManager, ProxyReader, ENSCustody contracts.
  • Make sure that the minor version of the contracts is increased if breaking changes have been made to the UNSRegistry, MintingManager, ProxyReader, ENSCustody contracts. It includes changes of interfaces.

2. Contracts licensing

  • Make sure that no SPDX-License-Identifier defined in contracts.
  • Make sure that the header is added to the new contract files.
    // @author Unstoppable Domains, Inc.
    // @date {Month} {Day}(ordinal), {Year}
    

3. Coverage

  • Make sure that the coverage of contracts has not decreased and strive 100%

4. Configs versioning

  • Make sure that the version of uns-config.json is increased if changes have been made to the config.
  • Make sure that the version of ens-config.json is increased if changes have been made to the config.
  • Make sure that the version of resolver-keys.json is increased if changes have been made to the config.
  • Make sure that the version of ens-resolver-keys.json is increased if changes have been made to the config.

5. Package versioning

  • Make sure that the patch version of package is increased if valuable changes have been made to the package. It includes contracts update, configs update, etc.
  • Make sure that the major.minor version of package is synced with version of UNSRegistry contract.
  • Make sure that the CHANGELOG is updated with short description for the new version.

6. Code review

  • resolver-keys.json code review is required from DevTools team
  • ens-resolver-keys.json code review is required from DevTools team
  • For all other changes code review is required from Registry team

@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1430/registrar-custody-contract branch from 0c9418e to ac62b75 Compare October 2, 2024 18:22
@nickshatilo nickshatilo requested a review from a team October 2, 2024 18:23
@nickshatilo nickshatilo self-assigned this Oct 2, 2024
@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1430/registrar-custody-contract branch from ac62b75 to 457aece Compare October 2, 2024 18:24
_disableInitializers();
}

function initialize(address _unsRegistry, address _mintingManager) public initializer {

Check warning

Code scanning / Slither

Conformance to Solidity naming conventions Warning

_disableInitializers();
}

function initialize(address _unsRegistry, address _mintingManager) public initializer {

Check warning

Code scanning / Slither

Conformance to Solidity naming conventions Warning

contracts/RegistrarCustody.sol Fixed Show fixed Hide fixed
Comment on lines +116 to +99
function _msgData() internal view override(ContextUpgradeable, ERC2771RegistryContext) returns (bytes calldata) {
return ERC2771RegistryContext._msgData();
}

Check warning

Code scanning / Slither

Dead-code Warning

RegistrarCustody._msgData() is never used and should be removed
contracts/RegistrarCustody.sol Dismissed Show dismissed Hide dismissed
contracts/RegistrarCustody.sol Dismissed Show dismissed Hide dismissed
@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1430/registrar-custody-contract branch from 457aece to 821990b Compare October 2, 2024 18:37
@nickshatilo nickshatilo marked this pull request as ready for review October 2, 2024 18:40
@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1430/registrar-custody-contract branch from 821990b to 6b6a567 Compare October 4, 2024 13:23
Copy link
Contributor

@DeRain DeRain left a comment

Choose a reason for hiding this comment

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

Great job! Love the simplicity of RegistrarCustody contract. I know it wasn't easy to keep it simple. Left a few comments.

contracts/RegistrarCustody.sol Show resolved Hide resolved
contracts/RegistrarCustody.sol Show resolved Hide resolved
contracts/RegistrarCustody.sol Show resolved Hide resolved
contracts/RegistrarCustody.sol Show resolved Hide resolved
contracts/RegistrarCustody.sol Outdated Show resolved Hide resolved
contracts/RegistrarCustody.sol Show resolved Hide resolved
@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1430/registrar-custody-contract branch from 6b6a567 to 1b4259a Compare October 16, 2024 15:38
@nickshatilo nickshatilo requested review from DeRain and a team October 16, 2024 15:41
@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1430/registrar-custody-contract branch from 1b4259a to 61fbf49 Compare October 17, 2024 12:19
@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1430/registrar-custody-contract branch from 61fbf49 to 46108a8 Compare October 17, 2024 12:21
Copy link

Contracts size report

Contract name Size (KiB) Delta (KiB)
ENSCustody 14.048 0
MintingManager 18.92 0
ProxyReader 15.176 0
RegistrarCustody 9.6 0
UNSRegistry 20.725 0

@nickshatilo nickshatilo merged commit c022d8e into main Oct 17, 2024
8 checks passed
@nickshatilo nickshatilo deleted the nickshatilo/REG-1430/registrar-custody-contract branch October 17, 2024 12:30
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.

2 participants