-
Notifications
You must be signed in to change notification settings - Fork 395
Closed
Description
I am thinking there might be two ways to extend a contract, e.g., an ERC token to be Ownable.
- A
myToken.cairowith top-of-file import-style mechanism:from ozcc import ERC, Ownable. - A generator CLI program:
ozcc generate ERC Ownablethat produces a populatedmyToken.cairo.
Option 1 would mimic existing Solidity experience, and would involve functions overriding others in a hierarchy.
Option 2 would involve the program fetching only non-overridden functions from the chosen combination and placing those in a file.
Both options are compatible with pre-generated common patterns (721, 721-ownable, 721-ownable-enumerable, 721-enumerable). Option 2 might result in a less-complex contract file, because there would be no override patterns for the developer to mentally manage.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels