// Copyright 2019 The Energi Core Authors // This file is part of Energi Core. // // Energi Core is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Energi Core is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Energi Core. If not, see . // Energi Governance system is the fundamental part of Energi Core. // NOTE: It's not allowed to change the compiler due to byte-to-byte // match requirement. pragma solidity 0.5.16; import { IGovernedProxy } from "../../interfaces/IGovernedProxy.sol"; interface IMasternodeToken /* is ERC20 */ { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function owner() external view returns(address _owner); // Added owner function registry_proxy() external view returns(IGovernedProxy _registry_proxy); // Added this for testing function setRegistryProxy(IGovernedProxy _registry_proxy) external; // Added setRegistryProxy function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address _owner) external view returns (uint256 balance); function transfer(address _to, uint256 _value) external returns (bool success); function transferFrom(address _from, address _to, uint256 _value) external returns (bool success); function approve(address _spender, uint256 _value) external returns (bool success); function allowance(address _owner, address _spender) external view returns (uint256 remaining); // Energi //--------------------------------- function balanceInfo(address _tokenOwner) external view returns (uint256 balance, uint256 last_block); function withdrawCollateral(uint256 _amount) external; function depositCollateral() external payable; function () external payable; }