refactor DPP & DVM

This commit is contained in:
mingda
2020-11-18 17:51:50 +08:00
parent 6a7b648753
commit d78de94b44
17 changed files with 627 additions and 339 deletions

View File

@@ -0,0 +1,29 @@
/*
Copyright 2020 DODO ZOO.
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
import {Ownable} from "./Ownable.sol";
interface IExternalValue {
function set(uint256) external;
function get() external view returns (uint256);
}
contract ExternalValue is IExternalValue, Ownable {
uint256 public _VALUE_;
function set(uint256 value) external override {
_VALUE_ = value;
}
function get() external override view returns (uint256) {
return _VALUE_;
}
}