ERC-20
Overview
Max Total Supply
100,000,000 DARK
Holders
32
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DARK
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-05-30 */ pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } function max64(uint64 a, uint64 b) internal pure returns (uint64) { return a >= b ? a : b; } function min64(uint64 a, uint64 b) internal pure returns (uint64) { return a < b ? a : b; } function max256(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } function min256(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } } contract Ownable { address public owner; function Ownable() public { owner = msg.sender; } modifier onlyOwner() { if (msg.sender != owner) { revert(); } _; } function transferOwnership(address newOwner) public onlyOwner { if (newOwner != address(0)) { owner = newOwner; } } function destruct() public onlyOwner { selfdestruct(owner); } } contract ERC20Basic { function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public; event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public constant returns (uint256); function transferFrom(address from, address to, uint256 value) public; function approve(address spender, uint256 value) public; event Approval(address indexed owner, address indexed spender, uint256 value); } contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 public totalSupply; modifier onlyPayloadSize(uint256 size) { if(msg.data.length < size + 4) { revert(); } _; } function transfer(address _to, uint256 _value) public onlyPayloadSize(2 * 32) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); } function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; } } contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint256)) allowed; function transferFrom(address _from, address _to, uint256 _value) public onlyPayloadSize(3 * 32) { var _allowance = allowed[_from][msg.sender]; balances[_to] = balances[_to].add(_value); balances[_from] = balances[_from].sub(_value); allowed[_from][msg.sender] = _allowance.sub(_value); Transfer(_from, _to, _value); } function approve(address _spender, uint256 _value) public { if ((_value != 0) && (allowed[msg.sender][_spender] != 0)) revert(); allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); } function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; } } contract DARK is StandardToken, Ownable { string public constant name = "暗链"; string public constant symbol = "DARK"; uint256 public constant decimals = 8; function DARK() public { owner = msg.sender; totalSupply=10000000000000000; balances[owner]=totalSupply; } function () public { revert(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"destruct","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
6060604052341561000f57600080fd5b60038054600160a060020a03338116600160a060020a0319928316811790921690911791829055662386f26fc10000600181905591166000908152602081905260409020556106f5806100636000396000f3006060604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461017757806323b872dd1461019c5780632b68b9c6146101c4578063313ce567146101d757806370a08231146101ea5780638da5cb5b1461020957806395d89b4114610238578063a9059cbb1461024b578063dd62ed3e1461026d578063f2fde38b14610292575b34156100c457600080fd5b600080fd5b34156100d457600080fd5b6100dc6102b1565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610175600160a060020a03600435166024356102e8565b005b341561018257600080fd5b61018a610389565b60405190815260200160405180910390f35b34156101a757600080fd5b610175600160a060020a036004358116906024351660443561038f565b34156101cf57600080fd5b6101756104af565b34156101e257600080fd5b61018a6104d8565b34156101f557600080fd5b61018a600160a060020a03600435166104dd565b341561021457600080fd5b61021c6104f8565b604051600160a060020a03909116815260200160405180910390f35b341561024357600080fd5b6100dc610507565b341561025657600080fd5b610175600160a060020a036004351660243561053e565b341561027857600080fd5b61018a600160a060020a0360043581169060243516610620565b341561029d57600080fd5b610175600160a060020a036004351661064b565b60408051908101604052600681527fe69a97e993be0000000000000000000000000000000000000000000000000000602082015281565b801580159061031b5750600160a060020a0333811660009081526002602090815260408083209386168352929052205415155b1561032557600080fd5b600160a060020a03338116600081815260026020908152604080832094871680845294909152908190208490557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35050565b60015481565b6000606060643610156103a157600080fd5b600160a060020a03808616600090815260026020908152604080832033851684528252808320549388168352908290529020549092506103e7908463ffffffff6106a116565b600160a060020a03808616600090815260208190526040808220939093559087168152205461041c908463ffffffff6106b716565b600160a060020a038616600090815260208190526040902055610445828463ffffffff6106b716565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a35050505050565b60035433600160a060020a039081169116146104ca57600080fd5b600354600160a060020a0316ff5b600881565b600160a060020a031660009081526020819052604090205490565b600354600160a060020a031681565b60408051908101604052600481527f4441524b00000000000000000000000000000000000000000000000000000000602082015281565b6040604436101561054e57600080fd5b600160a060020a033316600090815260208190526040902054610577908363ffffffff6106b716565b600160a060020a0333811660009081526020819052604080822093909355908516815220546105ac908363ffffffff6106a116565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3505050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461066657600080fd5b600160a060020a0381161561069e576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b6000828201838110156106b057fe5b9392505050565b6000828211156106c357fe5b509003905600a165627a7a72305820bb0cdd34c97c61e687db16b8140a86b4b17b4b91b1cef11fe3d3c9f36fce56e00029
Deployed Bytecode
0x6060604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461017757806323b872dd1461019c5780632b68b9c6146101c4578063313ce567146101d757806370a08231146101ea5780638da5cb5b1461020957806395d89b4114610238578063a9059cbb1461024b578063dd62ed3e1461026d578063f2fde38b14610292575b34156100c457600080fd5b600080fd5b34156100d457600080fd5b6100dc6102b1565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610175600160a060020a03600435166024356102e8565b005b341561018257600080fd5b61018a610389565b60405190815260200160405180910390f35b34156101a757600080fd5b610175600160a060020a036004358116906024351660443561038f565b34156101cf57600080fd5b6101756104af565b34156101e257600080fd5b61018a6104d8565b34156101f557600080fd5b61018a600160a060020a03600435166104dd565b341561021457600080fd5b61021c6104f8565b604051600160a060020a03909116815260200160405180910390f35b341561024357600080fd5b6100dc610507565b341561025657600080fd5b610175600160a060020a036004351660243561053e565b341561027857600080fd5b61018a600160a060020a0360043581169060243516610620565b341561029d57600080fd5b610175600160a060020a036004351661064b565b60408051908101604052600681527fe69a97e993be0000000000000000000000000000000000000000000000000000602082015281565b801580159061031b5750600160a060020a0333811660009081526002602090815260408083209386168352929052205415155b1561032557600080fd5b600160a060020a03338116600081815260026020908152604080832094871680845294909152908190208490557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35050565b60015481565b6000606060643610156103a157600080fd5b600160a060020a03808616600090815260026020908152604080832033851684528252808320549388168352908290529020549092506103e7908463ffffffff6106a116565b600160a060020a03808616600090815260208190526040808220939093559087168152205461041c908463ffffffff6106b716565b600160a060020a038616600090815260208190526040902055610445828463ffffffff6106b716565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a35050505050565b60035433600160a060020a039081169116146104ca57600080fd5b600354600160a060020a0316ff5b600881565b600160a060020a031660009081526020819052604090205490565b600354600160a060020a031681565b60408051908101604052600481527f4441524b00000000000000000000000000000000000000000000000000000000602082015281565b6040604436101561054e57600080fd5b600160a060020a033316600090815260208190526040902054610577908363ffffffff6106b716565b600160a060020a0333811660009081526020819052604080822093909355908516815220546105ac908363ffffffff6106a116565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3505050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461066657600080fd5b600160a060020a0381161561069e576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b6000828201838110156106b057fe5b9392505050565b6000828211156106c357fe5b509003905600a165627a7a72305820bb0cdd34c97c61e687db16b8140a86b4b17b4b91b1cef11fe3d3c9f36fce56e00029
Swarm Source
bzzr://bb0cdd34c97c61e687db16b8140a86b4b17b4b91b1cef11fe3d3c9f36fce56e0
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.