Transaction Hash:
Block:
11880011 at Feb-18-2021 09:33:24 AM +UTC
Transaction Fee:
0.00895688464 ETH
$18.63
Gas Used:
54,032 Gas / 165.77 Gwei
Emitted Events:
| 255 |
GENToken.Transfer( from=[Sender] 0xf0c3613701c5dc2b0333ef24492b68825c9aa916, to=0xAc566DF1946f38714b6c68D36A9CD594b528AB1b, value=7858000000000000000000 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
|
0x04668Ec2...D451c8F7F
Miner
| (zhizhu.top) | 1,742.647023510983306588 Eth | 1,742.655980395623306588 Eth | 0.00895688464 | |
| 0xF0C36137...25c9Aa916 |
2.97925938551335192 Eth
Nonce: 2
|
2.97030250087335192 Eth
Nonce: 3
| 0.00895688464 | ||
| 0xf2ddae89...99C608AF5 |
Execution Trace
GENToken.transfer( recipient=0xAc566DF1946f38714b6c68D36A9CD594b528AB1b, amount=7858000000000000000000 ) => ( True )
{"ERC20.sol":{"content":"pragma solidity \u003e=0.4.24 \u003c0.6.0;\n\nimport \"./IERC20.sol\";\nimport \"./SafeMath.sol\";\n\n/**\n * @title Standard ERC20 token\n *\n * @dev Implementation of the basic standard token.\n * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md\n * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol\n */\ncontract ERC20 is IERC20 {\n using SafeMath for uint256;\n\n mapping (address =\u003e uint256) private _balances;\n\n mapping (address =\u003e mapping (address =\u003e uint256)) private _allowed;\n\n uint256 private _totalSupply;\n\n /**\n * @dev Total number of tokens in existence\n */\n function totalSupply() public view returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev Gets the balance of the specified address.\n * @param owner The address to query the balance of.\n * @return An uint256 representing the amount owned by the passed address.\n */\n function balanceOf(address owner) public view returns (uint256) {\n return _balances[owner];\n }\n\n /**\n * @dev Function to check the amount of tokens that an owner allowed to a spender.\n * @param owner address The address which owns the funds.\n * @param spender address The address which will spend the funds.\n * @return A uint256 specifying the amount of tokens still available for the spender.\n */\n function allowance(address owner, address spender) public view returns (uint256) {\n return _allowed[owner][spender];\n }\n\n /**\n * @dev Transfer token for a specified address\n * @param to The address to transfer to.\n * @param value The amount to be transferred.\n */\n function transfer(address to, uint256 value) public returns (bool) {\n require(value \u003c= _balances[msg.sender], \"ERC20: Overdrawn balance\");\n require(to != address(0));\n\n _balances[msg.sender] = _balances[msg.sender].sub(value);\n _balances[to] = _balances[to].add(value);\n emit Transfer(msg.sender, to, value);\n return true;\n }\n\n /**\n * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.\n * Beware that changing an allowance with this method brings the risk that someone may use both the old\n * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this\n * race condition is to first reduce the spender\u0027s allowance to 0 and set the desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n */\n function approve(address spender, uint256 value) public returns (bool) {\n require(spender != address(0));\n\n _allowed[msg.sender][spender] = value;\n emit Approval(msg.sender, spender, value);\n return true;\n }\n\n /**\n * @dev Transfer tokens from one address to another\n * @param from address The address which you want to send tokens from\n * @param to address The address which you want to transfer to\n * @param value uint256 the amount of tokens to be transferred\n */\n function transferFrom(address from, address to, uint256 value) public returns (bool) {\n require(value \u003c= _balances[from], \"ERC20: Overdrawn balance\");\n require(value \u003c= _allowed[from][msg.sender]);\n require(to != address(0));\n\n _balances[from] = _balances[from].sub(value);\n _balances[to] = _balances[to].add(value);\n _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);\n emit Transfer(from, to, value);\n return true;\n }\n\n /**\n * @dev Increase the amount of tokens that an owner allowed to a spender.\n * approve should be called when allowed_[_spender] == 0. To increment\n * allowed value is better to use this function to avoid 2 calls (and wait until\n * the first transaction is mined)\n * From MonolithDAO Token.sol\n * @param spender The address which will spend the funds.\n * @param addedValue The amount of tokens to increase the allowance by.\n */\n function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {\n require(spender != address(0));\n\n _allowed[msg.sender][spender] = (_allowed[msg.sender][spender].add(addedValue));\n emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);\n return true;\n }\n\n /**\n * @dev Decrease the amount of tokens that an owner allowed to a spender.\n * approve should be called when allowed_[_spender] == 0. To decrement\n * allowed value is better to use this function to avoid 2 calls (and wait until\n * the first transaction is mined)\n * From MonolithDAO Token.sol\n * @param spender The address which will spend the funds.\n * @param subtractedValue The amount of tokens to decrease the allowance by.\n */\n function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {\n require(spender != address(0));\n\n _allowed[msg.sender][spender] = (_allowed[msg.sender][spender].sub(subtractedValue));\n emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);\n return true;\n }\n\n /**\n * @dev Internal function that mints an amount of the token and assigns it to\n * an account. This encapsulates the modification of balances such that the\n * proper events are emitted.\n * @param account The account that will receive the created tokens.\n * @param amount The amount that will be created.\n */\n function _mint(address account, uint256 amount) internal {\n require(account != address(0));\n _totalSupply = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n emit Transfer(address(0), account, amount);\n }\n\n /**\n * @dev Internal function that burns an amount of the token of a given\n * account.\n * @param account The account whose tokens will be burnt.\n * @param amount The amount that will be burnt.\n */\n function _burn(address account, uint256 amount) internal {\n require(account != address(0));\n require(amount \u003c= _balances[account], \"ERC20: Overdrawn balance\");\n\n _totalSupply = _totalSupply.sub(amount);\n _balances[account] = _balances[account].sub(amount);\n emit Transfer(account, address(0), amount);\n }\n\n /**\n * @dev Internal function that burns an amount of the token of a given\n * account, deducting from the sender\u0027s allowance for said account. Uses the\n * internal burn function.\n * @param account The account whose tokens will be burnt.\n * @param amount The amount that will be burnt.\n */\n function _burnFrom(address account, uint256 amount) internal {\n require(amount \u003c= _allowed[account][msg.sender], \"ERC20: Overdrawn balance\");\n\n // Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,\n // this function needs to emit an event with the updated approval.\n _allowed[account][msg.sender] = _allowed[account][msg.sender].sub(amount);\n _burn(account, amount);\n }\n}\n"},"ERC20Burnable.sol":{"content":"pragma solidity \u003e=0.4.24 \u003c0.6.0;\n\nimport \"./ERC20.sol\";\n\n/**\n * @title Burnable Token\n * @dev Token that can be irreversibly burned (destroyed).\n */\ncontract ERC20Burnable is ERC20 {\n\n /**\n * @dev Burns a specific amount of tokens.\n * @param value The amount of token to be burned.\n */\n function burn(uint256 value) public {\n _burn(msg.sender, value);\n }\n\n /**\n * @dev Burns a specific amount of tokens from the target address and decrements allowance\n * @param from address The address which you want to send tokens from\n * @param value uint256 The amount of token to be burned\n */\n function burnFrom(address from, uint256 value) public {\n _burnFrom(from, value);\n }\n\n /**\n * @dev Overrides ERC20._burn in order for burn and burnFrom to emit\n * an additional Burn event.\n */\n function _burn(address who, uint256 value) internal {\n super._burn(who, value);\n }\n}"},"ERC20Detailed.sol":{"content":"pragma solidity \u003e=0.4.24 \u003c0.6.0;\n\nimport \"./IERC20.sol\";\n\n/**\n * @title ERC20Detailed token\n * @dev The decimals are only for visualization purposes.\n * All the operations are done using the smallest and indivisible token unit,\n * just as on Ethereum all the operations are done in wei.\n */\ncontract ERC20Detailed is IERC20 {\n string private _name;\n string private _symbol;\n uint8 private _decimals;\n\n constructor(string memory name, string memory symbol, uint8 decimals) public {\n _name = name;\n _symbol = symbol;\n _decimals = decimals;\n }\n\n /**\n * @return the name of the token.\n */\n function name() public view returns(string memory) {\n return _name;\n }\n\n /**\n * @return the symbol of the token.\n */\n function symbol() public view returns(string memory) {\n return _symbol;\n }\n\n /**\n * @return the number of decimals of the token.\n */\n function decimals() public view returns(uint8) {\n return _decimals;\n }\n}"},"GenToken.sol":{"content":"pragma solidity \u003e=0.4.24 \u003c0.6.0;\n\nimport \"./ERC20Detailed.sol\";\n//import \"./ERC20.sol\";\nimport \"./ERC20Burnable.sol\";\nimport \"./Stopable.sol\";\n\ncontract GENToken is ERC20Detailed, /*ERC20,*/ ERC20Burnable, Stoppable {\n\n constructor (\n string memory name,\n string memory symbol,\n uint256 totalSupply,\n uint8 decimals\n ) ERC20Detailed(name, symbol, decimals)\n public {\n _mint(owner(), totalSupply * 10**uint(decimals));\n }\n\n // Don\u0027t accept ETH\n function () payable external {\n revert();\n }\n\n function mint(address account, uint256 amount) public onlyOwner returns (bool) {\n _mint(account, amount);\n return true;\n }\n\n //------------------------\n // Lock account transfer\n\n mapping (address =\u003e uint256) private _lockTimes;\n mapping (address =\u003e uint256) private _lockAmounts;\n\n event LockChanged(address indexed account, uint256 releaseTime, uint256 amount);\n\n function setLock(address account, uint256 releaseTime, uint256 amount) onlyOwner public {\n _lockTimes[account] = releaseTime;\n _lockAmounts[account] = amount;\n emit LockChanged( account, releaseTime, amount );\n }\n\n function getLock(address account) public view returns (uint256 lockTime, uint256 lockAmount) {\n return (_lockTimes[account], _lockAmounts[account]);\n }\n\n function _isLocked(address account, uint256 amount) internal view returns (bool) {\n return _lockTimes[account] != 0 \u0026\u0026\n _lockAmounts[account] != 0 \u0026\u0026\n _lockTimes[account] \u003e block.timestamp \u0026\u0026\n (\n balanceOf(account) \u003c= _lockAmounts[account] ||\n balanceOf(account).sub(_lockAmounts[account]) \u003c amount\n );\n }\n\n function transfer(address recipient, uint256 amount) enabled public returns (bool) {\n require( !_isLocked( msg.sender, amount ) , \"ERC20: Locked balance\");\n return super.transfer(recipient, amount);\n }\n\n function transferFrom(address sender, address recipient, uint256 amount) enabled public returns (bool) {\n require( !_isLocked( sender, amount ) , \"ERC20: Locked balance\");\n return super.transferFrom(sender, recipient, amount);\n }\n\n\n}"},"IERC20.sol":{"content":"pragma solidity \u003e=0.4.24 \u003c0.6.0;\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ninterface IERC20 {\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address who) external view returns (uint256);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through `transferFrom`. This is\n * zero by default.\n *\n * This value changes when `approve` or `transferFrom` are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller\u0027s account to `recipient`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a `Transfer` event.\n */\n function transfer(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller\u0027s tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * \u003e Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender\u0027s allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an `Approval` event.\n */\n function approve(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\n * allowance mechanism. `amount` is then deducted from the caller\u0027s\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a `Transfer` event.\n */\n function transferFrom(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to `approve`. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}"},"Ownable.sol":{"content":"pragma solidity \u003e=0.4.24 \u003c0.6.0;\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user permissions\".\n */\ncontract Ownable {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n constructor() public {\n _owner = msg.sender;\n }\n\n /**\n * @return the address of the owner.\n */\n function owner() public view returns(address) {\n return _owner;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(_isOwner());\n _;\n }\n\n /**\n * @return true if `msg.sender` is the owner of the contract.\n */\n function _isOwner() internal view returns(bool) {\n return msg.sender == _owner;\n }\n\n /**\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\n * @param newOwner The address to transfer ownership to.\n */\n function transferOwnership(address newOwner) public onlyOwner {\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers control of the contract to a newOwner.\n * @param newOwner The address to transfer ownership to.\n */\n function _transferOwnership(address newOwner) internal {\n require(newOwner != address(0));\n emit OwnershipTransferred(_owner, newOwner);\n _owner = newOwner;\n }\n}\n"},"SafeMath.sol":{"content":"pragma solidity \u003e=0.4.24 \u003c0.6.0;\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that revert on error\n */\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, reverts on overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n // Gas optimization: this is cheaper than requiring \u0027a\u0027 not being zero, but the\n // benefit is lost if \u0027b\u0027 is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\n if (a == 0) {\n return 0;\n }\n\n uint256 c = a * b;\n require(c / a == b);\n\n return c;\n }\n\n /**\n * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b \u003e 0); // Solidity only automatically asserts when dividing by 0\n uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn\u0027t hold\n\n return c;\n }\n\n /**\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b \u003c= a);\n uint256 c = a - b;\n\n return c;\n }\n\n /**\n * @dev Adds two numbers, reverts on overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c \u003e= a);\n\n return c;\n }\n\n /**\n * @dev Divides two numbers and returns the remainder (unsigned integer modulo),\n * reverts when dividing by zero.\n */\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b != 0);\n return a % b;\n }\n}"},"Stopable.sol":{"content":"pragma solidity \u003e=0.4.24 \u003c0.6.0;\n\nimport \"./Ownable.sol\";\n\ncontract Stoppable is Ownable{\n bool public stopped = false;\n \n modifier enabled {\n require (!stopped);\n _;\n }\n \n function stop() external onlyOwner { \n stopped = true; \n }\n \n function start() external onlyOwner {\n stopped = false;\n } \n}\n"}}