fix admin control && update proxy test framework

This commit is contained in:
owen05
2020-11-25 17:08:28 +08:00
parent 8a4da4b525
commit 8da583d5a8
25 changed files with 383 additions and 177 deletions

View File

@@ -36,6 +36,10 @@ contract DPPAdmin is InitializableOwnable {
IDPP(dpp).setMaintainer(newMaintainer);
}
function setOperator(address newOperator) external onlyOwner {
IDPP(dpp).setOperator(newOperator);
}
function setGasPriceSource(address newGasPriceLimitSource) external onlyOwner {
IDPP(dpp).setGasPriceSource(newGasPriceLimitSource);
}
@@ -55,4 +59,13 @@ contract DPPAdmin is InitializableOwnable {
function setSell(bool open) external onlyOwner {
IDPP(dpp).setSell(open);
}
function retrieve(address payable to,address token,uint256 amount) external onlyOwner {
IDPP(dpp).retrieve(to,token,amount);
}
// ============ Admin Version Control ============
function version() external pure returns (uint256) {
return 100; // 1.0.0
}
}