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

Add Implementation to Tokenizer Module and OwnableERC20 #144

Merged
merged 6 commits into from
Dec 16, 2024

Conversation

sebsadface
Copy link
Member

@sebsadface sebsadface commented Dec 15, 2024

Description

This PR introduces implementations and interfaces for the new TokenizerModule and OwnableERC20 contracts, as outlined in #143.

New Contracts

  • IOwnableERC20: Defines the standard interface for ERC20 templates used in the TokenizerModule.

  • ITokenizerModule: Specifies the interface for the TokenizerModule.

  • OwnableERC20: A base implementation of IOwnableERC20. This contract is integrated with the TokenizerModule via the Beacon Proxy pattern. When the TokenizerModule fractionalizes an IP, it deploys a Beacon Proxy instance of the OwnableERC20 template, and ties each instance to a specific IP.

  • TokenizerModule: Manages the fractionalization of IP assets (IPA). It allows IP owners to select from whitelisted OwnableERC20 templates for their fractionalized tokens and enables developers to whitelist new templates for others to use.

Tests

Test cases have been added for all functions in both contracts. All tests pass locally.

@sebsadface sebsadface marked this pull request as ready for review December 16, 2024 03:28
Copy link

@kingster-will kingster-will left a comment

Choose a reason for hiding this comment

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

LGTM. Please use BUSL license for the files of Module related code.

contracts/interfaces/modules/tokenizer/IOwnableERC20.sol Outdated Show resolved Hide resolved
@sebsadface sebsadface merged commit df18d84 into storyprotocol:main Dec 16, 2024
3 checks passed
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