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-1250] Defender 2.0, Ethers v6 migration #333

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

nickshatilo
Copy link
Member

@nickshatilo nickshatilo commented Apr 18, 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

function getData(
string[] calldata keys,
uint256 tokenId
) external view override returns (address resolver, address owner, string[] memory values) {

Check notice

Code scanning / Slither

Local variable shadowing Low

function _getData(
string[] calldata keys,
uint256 tokenId
) private view returns (address resolver, address owner, string[] memory values) {

Check notice

Code scanning / Slither

Local variable shadowing Low

function getDataByHash(
uint256[] calldata keyHashes,
uint256 tokenId
) external view override returns (address resolver, address owner, string[] memory keys, string[] memory values) {

Check notice

Code scanning / Slither

Local variable shadowing Low

function _getDataByHash(
uint256[] calldata keyHashes,
uint256 tokenId
) private view returns (address resolver, address owner, string[] memory keys, string[] memory values) {

Check notice

Code scanning / Slither

Local variable shadowing Low

@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1250/defender-2-0-ethers-v6 branch 4 times, most recently from 5e2d554 to 5185726 Compare April 18, 2024 15:56
@nickshatilo nickshatilo requested review from DeRain and a team April 18, 2024 15:58
@nickshatilo nickshatilo self-assigned this Apr 18, 2024
@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1250/defender-2-0-ethers-v6 branch from 5185726 to d91ccc3 Compare April 18, 2024 16:11
@nickshatilo nickshatilo force-pushed the nickshatilo/REG-1250/defender-2-0-ethers-v6 branch from d91ccc3 to 62fea31 Compare April 18, 2024 16:11
Copy link

Contracts size report

Contract name Size (KiB) Delta (KiB)
ENSCustody 13.063 0
MintingManager 19.781 0
ProxyReader 15.176 0
UNSRegistry 20.725 0

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.

This is huge! Great job! I'll have another look tomorrow, but looks great to me so far!
@nickshatilo

Copy link

Contracts size report

Contract name Size (KiB) Delta (KiB)
ENSCustody 13.063 0
MintingManager 19.781 0
ProxyReader 15.176 0
UNSRegistry 20.725 0

@DeRain DeRain self-requested a review April 19, 2024 19:43
@nickshatilo nickshatilo merged commit 37f1542 into main Apr 22, 2024
7 of 8 checks passed
@nickshatilo nickshatilo deleted the nickshatilo/REG-1250/defender-2-0-ethers-v6 branch April 22, 2024 13:14
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