Files
dodo-contractV2/contracts/lib/ExternalValue.sol

31 lines
642 B
Solidity
Raw Normal View History

2020-11-18 17:51:50 +08:00
/*
Copyright 2020 DODO ZOO.
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
import {Ownable} from "./Ownable.sol";
2020-11-20 18:58:35 +08:00
import {InitializableOwnable} from "./InitializableOwnable.sol";
2020-11-18 17:51:50 +08:00
interface IExternalValue {
function set(uint256) external;
function get() external view returns (uint256);
}
2020-11-20 18:58:35 +08:00
contract ExternalValue is IExternalValue, InitializableOwnable {
2020-11-18 17:51:50 +08:00
uint256 public _VALUE_;
2020-11-20 18:58:35 +08:00
function set(uint256 value) external override onlyOwner {
2020-11-18 17:51:50 +08:00
_VALUE_ = value;
}
function get() external override view returns (uint256) {
return _VALUE_;
}
}