This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
import './SafeMath.sol'; | |
/** | |
* Here is an example of upgradable contract, consisting of three parts: | |
* - Data contract keeps the resources (data) and is controlled by the Handler contract; | |
* - Handler contract (implements Handler interface) defines operations and provides services. This contract can be upgraded; | |
* - Upgrader contract (optional) deals with the voting mechanism and upgrades the Handler contract. The voters are pre-defined | |
* by the contract owner. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
import './SafeMath.sol'; | |
/** | |
* Here is an example of upgradable contract, consisting of three parts: | |
* - Data contract keeps the resources (data) and is controlled by the Handler contract; | |
* - Handler contract (implements Handler interface) defines operations and provides services. This contract can be upgraded; | |
* - Upgrader contract (optional) deals with the voting mechanism and upgrades the Handler contract. The voters are pre-defined | |
* by the contract owner. |