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

Update TokenPropertiesRepository to ERC-7508 #228

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

ThunderDeliverer
Copy link
Contributor

@ThunderDeliverer ThunderDeliverer commented Sep 8, 2023

Description

The token properties repository has been proposed as ERC-7508, and the commit changes reflect the new proposal.

Checklist

  • Verified code additions
  • Updated NatSpec comments (if applicable)
  • Regenerated docs
  • Ran prettier
  • Added tests to fully cover the changes

PR-Codex overview

Detailed summary

  • Deleted the file docs/RMRK/extension/tokenProperties/RMRKTokenPropertiesRepository.mdtest/interfaces.ts.
  • Updated the value of IRMRKTokenPropertiesRepository to '0x003f5b32'.
  • Updated the value of IERC7508 to '0x07cd44c7'.
  • Updated the network value in hardhat.config.ts for both baseGoerli and base.
  • Added new methods and their descriptions to the RMRKTokenAttributesRepository smart contract.

The following files were skipped due to too many changes: docs/RMRK/extension/tokenProperties/RMRKTokenAttributesRepository.md, contracts/RMRK/extension/tokenProperties/RMRKTokenPropertiesRepository.sol, contracts/RMRK/extension/tokenProperties/IRMRKTokenPropertiesRepository.sol, docs/RMRK/extension/tokenProperties/IRMRKTokenPropertiesRepository.md, test/extensions/tokenPropertiesRepository.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Token properites repository has now been proposed as ERC-7508 and the
changes in the commit reflect the new proposal.
Copy link
Collaborator

@steven2308 steven2308 left a comment

Choose a reason for hiding this comment

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

All good beside some things that prettier made ugly 😆 , thanks for updating ot!

CHANGELOG.md Outdated
| **Statements** | 100.00 % | 100.00 % | + 0.00 % |
| **Branches** | 95.53 % | 96.78 % | + 1.25 % |
| **Functions** | 99.60 % | 99.72 % | + 0.12 % |
| **Lines** | 99.63 % | 99.46 % | - 0.17 % |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's undo this changes.

private _emotesUsedByEmoter; // Cheaper than using a bool
mapping(address collection => mapping(uint256 tokenId => mapping(string emoji => uint256 count)))
mapping(address => mapping(uint256 => mapping(string => uint256)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's undo this changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Damn, didn't we fix prettier removing the parameter names? 🤔

@@ -20,7 +20,7 @@ error InsufficientBalance();
* @dev The RMRKTokenHolder extension is capable of holding ERC-20, ERC-721, and ERC-1155 tokens.
*/
abstract contract RMRKTokenHolder is IRMRKTokenHolder {
mapping(uint256 tokenId => mapping(address tokenAddress => mapping(TokenType tokenType => mapping(uint256 heldTokenId => uint256 balance))))
mapping(uint256 => mapping(address => mapping(TokenType => mapping(uint256 => uint256))))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's undo this changes.

@steven2308 steven2308 merged commit d341a29 into dev Sep 11, 2023
4 checks passed
@steven2308 steven2308 deleted the update-token-properites-repository-to-erc-7508 branch January 5, 2024 17:11
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