-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgradeable PriceEstimator with test and deploy script
- Loading branch information
Showing
5 changed files
with
175 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pragma solidity ^0.4.18; | ||
|
||
import "./../Upgradeability/OwnableUpgradeableImplementation/IOwnableUpgradeableImplementation.sol"; | ||
|
||
contract IPriceEstimator is IOwnableUpgradeableImplementation { | ||
|
||
function setHouseholdMetersContract(address _householdMetersAddress) public returns(bool success); | ||
|
||
function setWaterVouchersContract(address _waterVoucherAddress) public returns(bool success); | ||
|
||
function getCurrentMonthLiters(address _meter) public view returns(uint256 liters); | ||
|
||
function estimate(address _meter, uint _liters) public view returns(uint256 amount, uint256 price); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pragma solidity ^0.4.18; | ||
|
||
import "./../Upgradeability/UpgradeableProxy.sol"; | ||
|
||
contract PriceEstimatorProxy is UpgradeableProxy { | ||
function PriceEstimatorProxy(address initialImplementation) public UpgradeableProxy(initialImplementation) {} | ||
} |
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
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