Chapter 7. Generalizing functionality with abstract contracts and interfaces
- Generalizing contracts by making them abstract
- Improving contract extensibility through interfaces
- A summary of Solidity object-oriented features
- Improving maintainability of utility code using libraries
The previous chapter introduced SimpleCrowdsale, which presented an example of a multicontract decentralized application, with a crowdsale management contract (SimpleCrowdsale) interacting with a token contract (ReleasableSimpleCoin).
You started to extend the functionality of SimpleCrowdsale by adding a new, more complex pricing strategy, and took advantage of contract inheritance to do so. You further extended the functionality ...
Get Building Ethereum Dapps now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.