cic-contracts/doc/texinfo/writer.sol.texi

33 lines
954 B
Plaintext
Raw Permalink Normal View History

@subsection Writer
A complement to ERC173, which allows definition of a class of super-users for a contract.
2023-03-25 13:32:56 +01:00
A super-user address may perform @emph{more} actions than a "normal" address, aswell as @emph{some} actions normally limited to the @emph{contract owner}.
2023-05-07 20:01:06 +02:00
If an @emph{contract owner} is defined, No super-user should be able to perform actions that @emph{contract owner} cannot perform.
2023-05-07 20:01:06 +02:00
Typically, only the @emph{contract owner}, if it is defined, can add or remove a super-user.
Some use-case examples of super-user actions include:
@itemize
@item
Mint new tokens.
@item
Change the amount dispensed by the faucet.
@item
Edit access control lists.
@end itemize
@subsubsection ERC165 Interface identifier
@include ../../build/Writer.interface
@subsubsection Solidity interface definition
@include ../../build/contract_Writer.texi
@subsubsection Example implementation
2023-03-26 13:04:31 +02:00
@uref{https://git.grassecon.net/cicnet/erc20-demurrage-token.git}