// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*/
library SafeMath {
/**
* @dev Multiplie two unsigned integers, revert on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, revert on division by zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Subtract two unsigned integers, revert on underflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
/**
* @dev Add two unsigned integers, revert on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
}
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
contract Context {
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
}
/**
* @title ERC20 interface
* @dev See https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* @title Standard ERC20 token
* @dev Implementation of the basic standard token.
*/
contract StandardToken is IERC20, Context {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 internal _totalSupply;
/**
* @dev Total number of tokens in existence.
*/
function totalSupply() public override view returns (uint256) {
return _totalSupply;
}
/**
* @dev Get the balance of the specified address.
* @param owner The address to query the balance of.
* @return A uint256 representing the amount owned by the passed address.
*/
function balanceOf(address owner) public override view returns (uint256) {
return _balances[owner];
}
/**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param owner The address which owns the funds.
* @param spender The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/
function allowance(address owner, address spender) public override view returns (uint256) {
return _allowed[owner][spender];
}
/**
* @dev Transfer tokens to a specified address.
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/
function transfer(address to, uint256 value) public virtual override returns (bool) {
_transfer(_msgSender(), to, value);
return true;
}
/**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
*/
function approve(address spender, uint256 value) public override returns (bool) {
_approve(_msgSender(), spender, value);
return true;
}
/**
* @dev Transfer tokens from one address to another.
* Note that while this function emits an Approval event, this is not required as per the specification,
* and other compliant implementations may not emit the event.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
*/
function transferFrom(address from, address to, uint256 value) public virtual override returns (bool) {
_transfer(from, to, value);
_approve(from, _msgSender(), _allowed[from][_msgSender()].sub(value));
return true;
}
/**
* @dev Increase the amount of tokens that an owner allowed to a spender.
* approve should be called when _allowed[msg.sender][spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* Emits an Approval event.
* @param spender The address which will spend the funds.
* @param addedValue The amount of tokens to increase the allowance by.
*/
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowed[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
* approve should be called when _allowed[msg.sender][spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* Emits an Approval event.
* @param spender The address which will spend the funds.
* @param subtractedValue The amount of tokens to decrease the allowance by.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowed[_msgSender()][spender].sub(subtractedValue));
return true;
}
/**
* @dev Transfer tokens for a specified address.
* @param from The address to transfer from.
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/
function _transfer(address from, address to, uint256 value) internal {
require(to != address(0), "Cannot transfer to the zero address");
_balances[from] = _balances[from].sub(value);
_balances[to] = _balances[to].add(value);
emit Transfer(from, to, value);
}
/**
* @dev Approve an address to spend another addresses' tokens.
* @param owner The address that owns the tokens.
* @param spender The address that will spend the tokens.
* @param value The number of tokens that can be spent.
*/
function _approve(address owner, address spender, uint256 value) internal {
require(spender != address(0), "Cannot approve to the zero address");
require(owner != address(0), "Setter cannot be the zero address");
_allowed[owner][spender] = value;
emit Approval(owner, spender, value);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_balances[account] = _balances[account].sub(amount);
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Destroys `amount` tokens from `account`.`amount` is then deducted
* from the caller's allowance.
*
* See {_burn} and {_approve}.
*/
function _burnFrom(address account, uint256 amount) internal virtual {
_burn(account, amount);
_approve(account, _msgSender(), _allowed[account][_msgSender()].sub(amount));
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
contract Ownable is Context {
address internal _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(isOwner(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Returns true if the caller is the current owner.
*/
function isOwner() public view returns (bool) {
return _msgSender() == _owner;
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/
function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
contract WhiteList is Ownable {
mapping(address => uint256) public whiter;
event AppendWhiter(address adder);
event RemoveWhiter(address remover);
/**
* @notice Only onwer can append address into whitelist
* @param account The address not added, can added to the whitelist
*/
function appendWhiter(address account) public onlyOwner {
require(account != address(0), "WhiteList: address not zero");
require(
isNotWhiter(account),
"WhiteListe: the account exsit whilteList yet"
);
whiter[account] = 1;
emit AppendWhiter(account);
}
/**
* @notice Only onwer can remove address into whitelist
* @param account The address in whitelist yet
*/
function removeWhiter(address account) public onlyOwner {
require(
isWhiter(account),
"WhiteListe: the account not exist whilteList"
);
delete whiter[account];
emit RemoveWhiter(account);
}
/**
* @notice Check whether acccount in whitelist
* @param account Any address
*/
function isWhiter(address account) public view returns (bool) {
return whiter[account] == 1;
}
/**
* @notice Check whether acccount not in whitelist
* @param account Any address
*/
function isNotWhiter(address account) public view returns (bool) {
return whiter[account] != 1;
}
}
contract GraToken is StandardToken, Ownable, WhiteList {
//---------------Token Info---------------//
string public constant name = "Gra";
string public constant symbol = "Gra";
uint8 public constant decimals = 18;
uint256 public constant INITIAL_SUPPLY = 82680000 * 10 ** 18;
address public constant tokenWallet = 0xa19c059c61605ba41EFC407dF5F27DAfAf6d5C58; // token owner
address public swapGovContract;
// bool setGovFlag = false;
//---------------Lock Info---------------//
uint256 public techReleaseByDay = 6040 * 10 ** 18;
uint256 public capitalReleaseByDay =64 * 10 ** 18;
uint256 public nodeReleaseByDay = 44 * 10 ** 18;
// uint256 public lockedAmount;
struct LockInfo {
uint256 initLock;
uint256 lockedAmount;
uint256 lastUnlockTs;
uint256 releaseType;
}
mapping(address => LockInfo) public lockedUser;
event Lock(address account, uint256 startTime, uint256 amount, uint256 releaseType);
event UnLock(address account, uint256 unlockTime, uint256 amount);
//---------------Blacklist module---------------//
mapping(address => bool) private _isBlackListed;
event AddedBlackLists(address[]);
event RemovedBlackLists(address[]);
//---------------Burn fee module---------------//
uint256 public feeRate;
constructor() public {
feeRate = 200; // default as 2%
_totalSupply = INITIAL_SUPPLY;
_balances[tokenWallet] = _totalSupply;
emit Transfer(address(0), tokenWallet, INITIAL_SUPPLY);
_owner = tokenWallet;
emit OwnershipTransferred(address(0), tokenWallet);
appendWhiter(_owner);
}
function getFee(uint256 amount) public view returns (uint256) {
uint256 fee = amount.mul(feeRate).div(10000);
return fee;
}
function isBlackListed(address user) public view returns (bool) {
return _isBlackListed[user];
}
function addBlackLists(address[] calldata _evilUser) public onlyOwner {
for (uint i = 0; i < _evilUser.length; i++) {
_isBlackListed[_evilUser[i]] = true;
}
emit AddedBlackLists(_evilUser);
}
function removeBlackLists(address[] calldata _clearedUser) public onlyOwner {
for (uint i = 0; i < _clearedUser.length; i++) {
delete _isBlackListed[_clearedUser[i]];
}
emit RemovedBlackLists(_clearedUser);
}
// function lockToGov() public onlyOwner {
// _transfer(_owner, swapGovContract, MINEREWARD); // transfer/freeze to swapGovContract
// lockedAmount = lockedAmount.add(MINEREWARD);
// }
function lock(address _account, uint256 _amount, uint256 _type) public onlyOwner {
require(_account != address(0), "Cannot transfer to the zero address");
require(lockedUser[_account].lockedAmount == 0, "exist locked token");
require(_account != swapGovContract, "equal to swapGovContract");
lockedUser[_account].initLock = _amount;
lockedUser[_account].lockedAmount = _amount;
lockedUser[_account].lastUnlockTs = block.timestamp;
lockedUser[_account].releaseType = _type;
_balances[_msgSender()] = _balances[_msgSender()].sub(_amount);
_balances[_account] = _balances[_account].add(_amount);
emit Lock(_account, block.timestamp, _amount, _type);
emit Transfer(_msgSender(), _account, _amount);
}
function unlock() public {
uint256 amount = getAvailablelockAmount(_msgSender(), lockedUser[_msgSender()].releaseType);
require(amount > 0, "amount equal 0");
lockedUser[_msgSender()].lockedAmount = lockedUser[_msgSender()].lockedAmount.sub(amount);
lockedUser[_msgSender()].lastUnlockTs = block.timestamp;
emit UnLock(_msgSender(), block.timestamp, amount);
}
function getAvailablelockAmount(address account, uint256 releaseType) public view returns (uint256) {
if(lockedUser[account].lockedAmount == 0) {
return 0;
}
if(block.timestamp <= lockedUser[account].lastUnlockTs) {
return 0;
}
uint256 _days = block.timestamp.sub(lockedUser[account].lastUnlockTs).div(86400);
if(_days > 0 && releaseType == 1) {
uint256 _releaseAmount = _days.mul(techReleaseByDay);
return lockedUser[account].lockedAmount > _releaseAmount ? _releaseAmount : lockedUser[account].lockedAmount;
}
if(_days > 0 && releaseType == 2) {
uint256 _releaseAmount = _days.mul(capitalReleaseByDay);
return lockedUser[account].lockedAmount > _releaseAmount ? _releaseAmount : lockedUser[account].lockedAmount;
}
if(_days > 0 && releaseType == 3) {
uint256 _releaseAmount = _days.mul(nodeReleaseByDay);
return lockedUser[account].lockedAmount > _releaseAmount ? _releaseAmount : lockedUser[account].lockedAmount;
}
return 0;
}
function transfer(address _to, uint256 _value) public override returns (bool) {
require(!isBlackListed(_msgSender()));
require(!isBlackListed(_to));
require(_balances[_msgSender()].sub(lockedUser[_msgSender()].lockedAmount) >= _value);
if (isNotWhiter(_msgSender())) { // fee burning whitelist
uint256 fee = getFee(_value);
_burn(_msgSender(), fee);
_value = _value.sub(fee);
}
return super.transfer(_to, _value);
}
function transferFrom(address _from, address _to, uint256 _value) public override returns (bool) {
require(!isBlackListed(_msgSender()));
require(!isBlackListed(_from));
require(!isBlackListed(_to));
require(_balances[_from].sub(lockedUser[_msgSender()].lockedAmount) >= _value);
if (isNotWhiter(_from)) { // fee burning whitelist
uint256 fee = getFee(_value);
_burnFrom(_from, fee);
_value = _value.sub(fee);
}
return super.transferFrom(_from, _to, _value);
}
/**
* @dev Transfer tokens to multiple addresses.
*/
function batchTransfer(address[] memory addressList, uint256[] memory amountList) public onlyOwner returns (bool) {
uint256 length = addressList.length;
require(addressList.length == amountList.length, "Inconsistent array length");
require(length > 0 && length <= 150, "Invalid number of transfer objects");
uint256 amount;
for (uint256 i = 0; i < length; i++) {
require(amountList[i] > 0, "The transfer amount cannot be 0");
require(addressList[i] != address(0), "Cannot transfer to the zero address");
require(!isBlackListed(addressList[i]));
amount = amount.add(amountList[i]);
_balances[addressList[i]] = _balances[addressList[i]].add(amountList[i]);
emit Transfer(_msgSender(), addressList[i], amountList[i]);
}
require(_balances[_msgSender()] >= amount, "Not enough tokens to transfer");
_balances[_msgSender()] = _balances[_msgSender()].sub(amount);
return true;
}
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
function burnFrom(address account, uint256 amount) public virtual {
_burnFrom(account, amount);
}
function setFeeRate(uint256 newFeeRate) public onlyOwner {
require (newFeeRate <= 500);
feeRate = newFeeRate;
}
function setGovAddr(address _swapGovContract) public onlyOwner {
// require(!setGovFlag); // only once
swapGovContract = _swapGovContract;
// setGovFlag = true;
}
function setReleaseByDay(uint256 _techReleaseByDay, uint256 _capitalReleaseByDay, uint256 _nodeReleaseByDay) public onlyOwner {
require(_techReleaseByDay > 0, " must be great 0");
require(_capitalReleaseByDay > 0, " must be great 0");
require(_nodeReleaseByDay > 0, " must be great 0");
techReleaseByDay = _techReleaseByDay;
capitalReleaseByDay = _capitalReleaseByDay;
nodeReleaseByDay = _nodeReleaseByDay;
}
}
{
"compilationTarget": {
"GraToken.sol": "GraToken"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"","type":"address[]"}],"name":"AddedBlackLists","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"adder","type":"address"}],"name":"AppendWhiter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"releaseType","type":"uint256"}],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"remover","type":"address"}],"name":"RemoveWhiter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"","type":"address[]"}],"name":"RemovedBlackLists","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"unlockTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnLock","type":"event"},{"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_evilUser","type":"address[]"}],"name":"addBlackLists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"appendWhiter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addressList","type":"address[]"},{"internalType":"uint256[]","name":"amountList","type":"uint256[]"}],"name":"batchTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"capitalReleaseByDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"releaseType","type":"uint256"}],"name":"getAvailablelockAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isBlackListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isNotWhiter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isWhiter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lockedUser","outputs":[{"internalType":"uint256","name":"initLock","type":"uint256"},{"internalType":"uint256","name":"lockedAmount","type":"uint256"},{"internalType":"uint256","name":"lastUnlockTs","type":"uint256"},{"internalType":"uint256","name":"releaseType","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nodeReleaseByDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_clearedUser","type":"address[]"}],"name":"removeBlackLists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeWhiter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFeeRate","type":"uint256"}],"name":"setFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_swapGovContract","type":"address"}],"name":"setGovAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_techReleaseByDay","type":"uint256"},{"internalType":"uint256","name":"_capitalReleaseByDay","type":"uint256"},{"internalType":"uint256","name":"_nodeReleaseByDay","type":"uint256"}],"name":"setReleaseByDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapGovContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"techReleaseByDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]