This smart contract instructs the creation of an interface and a contract leveraging the principles of modularity and Role-Based Access Control (RBAC). It defines an interface 'IToken' comprising of the declarations for 'transfer', 'totalSupply', and 'balanceOf' functions, all of which require external visibility. Following this, a contract named 'StandardToken' is to be developed that inherits from both 'IToken' and OpenZeppelin's 'Ownable' contract. The 'StandardToken' contract should encompass four state variables: '_balances', '_totalSupply', '_name', and '_symbol', and its constructor function should initialize '_totalSupply', '_name', and '_symbol'. The contract must also feature a 'mint' function only accessible by the owner, which adds tokens to '_totalSupply' and assigns them to a specific account. Finally, the 'transfer' function as described in the interface is to be implemented, similar to the previously assigned task.
-
Notifications
You must be signed in to change notification settings - Fork 0
ShunsukeKano/token-contract-role-based
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published