ERC-20
Overview
Max Total Supply
160,000,000 TONC
Holders
120
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TONC
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-12-30 */ pragma solidity ^0.4.11; library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal returns (uint) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint a, uint b) internal returns (uint) { assert(b <= a); return a - b; } function add(uint a, uint b) internal returns (uint) { uint c = a + b; assert(c >= a); return c; } function max64(uint64 a, uint64 b) internal constant returns (uint64) { return a >= b ? a : b; } function min64(uint64 a, uint64 b) internal constant returns (uint64) { return a < b ? a : b; } function max256(uint256 a, uint256 b) internal constant returns (uint256) { return a >= b ? a : b; } function min256(uint256 a, uint256 b) internal constant returns (uint256) { return a < b ? a : b; } function assert(bool assertion) internal { if (!assertion) { throw; } } } contract ERC20Basic { uint public totalSupply; function balanceOf(address who) constant returns (uint); function transfer(address to, uint value); event Transfer(address indexed from, address indexed to, uint value); } contract ERC20 is ERC20Basic { function allowance(address owner, address spender) constant returns (uint); function transferFrom(address from, address to, uint value); function approve(address spender, uint value); event Approval(address indexed owner, address indexed spender, uint value); } contract BasicToken is ERC20Basic { using SafeMath for uint; mapping(address => uint) balances; modifier onlyPayloadSize(uint size) { if(msg.data.length < size + 4) { throw; } _; } function transfer(address _to, uint _value) 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) constant returns (uint balance) { return balances[_owner]; } } contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint)) allowed; function transferFrom(address _from, address _to, uint _value) 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, uint _value) { if ((_value != 0) && (allowed[msg.sender][_spender] != 0)) throw; allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); } function allowance(address _owner, address _spender) constant returns (uint remaining) { return allowed[_owner][_spender]; } } contract TONC is StandardToken{ string public constant name = "TONG COIN"; string public constant symbol = "TONC"; uint public constant decimals = 18; string public constant version = "1.0"; address public owner; modifier onlyOwner{ if(msg.sender != owner) throw; _; } function TONC(){ owner = msg.sender; totalSupply = 16*(10**7)*(10**decimals); balances[owner] = totalSupply; } function changeOwner(address newOwner) onlyOwner{ owner = newOwner; } //refuse transactions by eth function () payable{ throw; } function kill() onlyOwner{ suicide(owner); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"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
6060604052341561000c57fe5b5b60038054600160a060020a03191633600160a060020a0390811691909117918290556a84595161401484a0000000600081815592909116825260016020526040909120555b5b610870806100626000396000f300606060405236156100c25763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d0578063095ea7b31461016057806318160ddd1461018157806323b872dd146101a3578063313ce567146101ca57806341c0e1b5146101ec57806354fd4d50146101fe57806370a082311461028e5780638da5cb5b146102bc57806395d89b41146102e8578063a6f9dae114610378578063a9059cbb14610396578063dd62ed3e146103b7575b6100ce5b60006000fd5b565b005b34156100d857fe5b6100e06103eb565b604080516020808252835181830152835191928392908301918501908083838215610126575b80518252602083111561012657601f199092019160209182019101610106565b505050905090810190601f1680156101525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561016857fe5b6100ce600160a060020a0360043516602435610422565b005b341561018957fe5b6101916104c2565b60408051918252519081900360200190f35b34156101ab57fe5b6100ce600160a060020a03600435811690602435166044356104c8565b005b34156101d257fe5b6101916105ec565b60408051918252519081900360200190f35b34156101f457fe5b6100ce6105f1565b005b341561020657fe5b6100e061061e565b604080516020808252835181830152835191928392908301918501908083838215610126575b80518252602083111561012657601f199092019160209182019101610106565b505050905090810190601f1680156101525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561029657fe5b610191600160a060020a0360043516610655565b60408051918252519081900360200190f35b34156102c457fe5b6102cc610674565b60408051600160a060020a039092168252519081900360200190f35b34156102f057fe5b6100e0610683565b604080516020808252835181830152835191928392908301918501908083838215610126575b80518252602083111561012657601f199092019160209182019101610106565b505050905090810190601f1680156101525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561038057fe5b6100ce600160a060020a03600435166106ba565b005b341561039e57fe5b6100ce600160a060020a0360043516602435610703565b005b34156103bf57fe5b610191600160a060020a03600435811690602435166107d1565b60408051918252519081900360200190f35b60408051808201909152600981527f544f4e4720434f494e0000000000000000000000000000000000000000000000602082015281565b80158015906104555750600160a060020a0333811660009081526002602090815260408083209386168352929052205415155b156104605760006000fd5b600160a060020a03338116600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35b5050565b60005481565b6000606060643610156104db5760006000fd5b600160a060020a038086166000908152600260209081526040808320338516845282528083205493881683526001909152902054909250610522908463ffffffff6107fe16565b600160a060020a038086166000908152600160205260408082209390935590871681522054610557908463ffffffff61081a16565b600160a060020a038616600090815260016020526040902055610580828463ffffffff61081a16565b600160a060020a038087166000818152600260209081526040808320338616845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35b5b5050505050565b601281565b60035433600160a060020a0390811691161461060d5760006000fd5b600354600160a060020a0316ff5b5b565b60408051808201909152600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0381166000908152600160205260409020545b919050565b600354600160a060020a031681565b60408051808201909152600481527f544f4e4300000000000000000000000000000000000000000000000000000000602082015281565b60035433600160a060020a039081169116146106d65760006000fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b604060443610156107145760006000fd5b600160a060020a03331660009081526001602052604090205461073d908363ffffffff61081a16565b600160a060020a033381166000908152600160205260408082209390935590851681522054610772908363ffffffff6107fe16565b600160a060020a038085166000818152600160209081526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35b5b505050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600082820161080f84821015610833565b8091505b5092915050565b600061082883831115610833565b508082035b92915050565b8015156106ff5760006000fd5b5b505600a165627a7a723058207f5dbaa99cbce73bdf451999fb1577e5d9a19011336d41d4e2b4ca620786d8700029
Deployed Bytecode
0x606060405236156100c25763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d0578063095ea7b31461016057806318160ddd1461018157806323b872dd146101a3578063313ce567146101ca57806341c0e1b5146101ec57806354fd4d50146101fe57806370a082311461028e5780638da5cb5b146102bc57806395d89b41146102e8578063a6f9dae114610378578063a9059cbb14610396578063dd62ed3e146103b7575b6100ce5b60006000fd5b565b005b34156100d857fe5b6100e06103eb565b604080516020808252835181830152835191928392908301918501908083838215610126575b80518252602083111561012657601f199092019160209182019101610106565b505050905090810190601f1680156101525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561016857fe5b6100ce600160a060020a0360043516602435610422565b005b341561018957fe5b6101916104c2565b60408051918252519081900360200190f35b34156101ab57fe5b6100ce600160a060020a03600435811690602435166044356104c8565b005b34156101d257fe5b6101916105ec565b60408051918252519081900360200190f35b34156101f457fe5b6100ce6105f1565b005b341561020657fe5b6100e061061e565b604080516020808252835181830152835191928392908301918501908083838215610126575b80518252602083111561012657601f199092019160209182019101610106565b505050905090810190601f1680156101525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561029657fe5b610191600160a060020a0360043516610655565b60408051918252519081900360200190f35b34156102c457fe5b6102cc610674565b60408051600160a060020a039092168252519081900360200190f35b34156102f057fe5b6100e0610683565b604080516020808252835181830152835191928392908301918501908083838215610126575b80518252602083111561012657601f199092019160209182019101610106565b505050905090810190601f1680156101525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561038057fe5b6100ce600160a060020a03600435166106ba565b005b341561039e57fe5b6100ce600160a060020a0360043516602435610703565b005b34156103bf57fe5b610191600160a060020a03600435811690602435166107d1565b60408051918252519081900360200190f35b60408051808201909152600981527f544f4e4720434f494e0000000000000000000000000000000000000000000000602082015281565b80158015906104555750600160a060020a0333811660009081526002602090815260408083209386168352929052205415155b156104605760006000fd5b600160a060020a03338116600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35b5050565b60005481565b6000606060643610156104db5760006000fd5b600160a060020a038086166000908152600260209081526040808320338516845282528083205493881683526001909152902054909250610522908463ffffffff6107fe16565b600160a060020a038086166000908152600160205260408082209390935590871681522054610557908463ffffffff61081a16565b600160a060020a038616600090815260016020526040902055610580828463ffffffff61081a16565b600160a060020a038087166000818152600260209081526040808320338616845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35b5b5050505050565b601281565b60035433600160a060020a0390811691161461060d5760006000fd5b600354600160a060020a0316ff5b5b565b60408051808201909152600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0381166000908152600160205260409020545b919050565b600354600160a060020a031681565b60408051808201909152600481527f544f4e4300000000000000000000000000000000000000000000000000000000602082015281565b60035433600160a060020a039081169116146106d65760006000fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b604060443610156107145760006000fd5b600160a060020a03331660009081526001602052604090205461073d908363ffffffff61081a16565b600160a060020a033381166000908152600160205260408082209390935590851681522054610772908363ffffffff6107fe16565b600160a060020a038085166000818152600160209081526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35b5b505050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600082820161080f84821015610833565b8091505b5092915050565b600061082883831115610833565b508082035b92915050565b8015156106ff5760006000fd5b5b505600a165627a7a723058207f5dbaa99cbce73bdf451999fb1577e5d9a19011336d41d4e2b4ca620786d8700029
Swarm Source
bzzr://7f5dbaa99cbce73bdf451999fb1577e5d9a19011336d41d4e2b4ca620786d870
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.