Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000 SE
Holders
2,823
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:
SecToken
Compiler Version
v0.5.1+commit.c8a2cb62
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-04-14 */ pragma solidity ^0.5.0; // File: contracts\interface\TokenRecipient.sol /// 代币接口 interface TokenRecipient { /// 授权合约使用代币 function receiveApproval(address _from, uint256 _value, address _tokenContract, bytes calldata _extraData) external; } // File: contracts\SECToken.sol // Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20 contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public getter functions are not currently recognised as an implementation of the matching abstract function by the compiler. */ /// total amount of tokens uint256 public totalSupply; /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) public view returns (uint256 balance); /// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transfer(address _to, uint256 _value) public returns (bool success); /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transferFrom(address _from, address _to, uint256 _value) public returns (bool success); /// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not function approve(address _spender, uint256 _value) public returns (bool success); /// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent function allowance(address _owner, address _spender) public view returns (uint256 remaining); event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } /* You should inherit from StandardToken or, for a token like you would want to deploy in something like Mist, see HumanStandardToken.sol. (This implements ONLY the standard functions and NOTHING else. If you deploy this, you won't have anything useful.) Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 .*/ contract StandardToken is Token { function transfer(address _to, uint256 _value) public returns (bool success) { //Default assumes totalSupply can't be over max (2^256 - 1). //If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap. //Replace the if with this one instead. //if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) { if (balances[msg.sender] >= _value && _value > 0) { balances[msg.sender] -= _value; balances[_to] += _value; emit Transfer(msg.sender, _to, _value); return true; } else { return false; } } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { //same as above. Replace this line with the following if you want to protect against wrapping uints. //if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) { if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) { balances[_to] += _value; balances[_from] -= _value; allowed[_from][msg.sender] -= _value; emit Transfer(_from, _to, _value); return true; } else { return false; } } function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } function approve(address _spender, uint256 _value) public returns (bool success) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowed[_owner][_spender]; } mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; } /* This Token Contract implements the standard token functionality (https://github.com/ethereum/EIPs/issues/20) as well as the following OPTIONAL extras intended for use by humans. In other words. This is intended for deployment in something like a Token Factory or Mist wallet, and then used by humans. Imagine coins, currencies, shares, voting weight, etc. Machine-based, rapid creation of many tokens would not necessarily need these extra features or will be minted in other manners. 1) Initial Finite Supply (upon creation one specifies how much is minted). 2) In the absence of a token registry: Optional Decimal, Symbol & Name. 3) Optional approveAndCall() functionality to notify a contract if an approval() has occurred. .*/ contract SecToken is StandardToken { function () external { //if ether is sent to this address, send it back. revert("fallback not allow used"); } /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influences the core functionality. Some wallets/interfaces might not even bother to look at this information. */ string public name; //fancy name: eg Simon Bucks uint8 public decimals; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like comparing 1 wei to 1 ether. string public symbol; //An identifier: eg SBX string public version = "H0.1"; //human 0.1 standard. Just an arbitrary versioning scheme. constructor () public { // 发币总量 10亿 uint _total = 1000000000 * (10 ** 18); balances[msg.sender] = _total; // Give the creator all initial tokens totalSupply = _total; // Update total supply name = "SE"; // Set the name for display purposes decimals = 18; // Amount of decimals for display purposes symbol = "SE"; // Set the symbol for display purposes } /* Approves and then calls the receiving contract */ function approveAndCall(address _spender, uint256 _value, bytes memory _extraData) public { approve(_spender, _value); TokenRecipient(_spender).receiveApproval(msg.sender, _value, address(this), _extraData); } }
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":[{"name":"success","type":"bool"}],"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":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"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":"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":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","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"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"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"},{"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"}]
Contract Creation Code
60c0604052600460808190527f48302e310000000000000000000000000000000000000000000000000000000060a090815261003e916006919061010e565b5034801561004b57600080fd5b503360009081526001602090815260408083206b033b2e3c9fd0803ce80000009081905592839055805180820190915260028082527f5345000000000000000000000000000000000000000000000000000000000000919092019081526100b5916003919061010e565b506004805460ff191660121790556040805180820190915260028082527f534500000000000000000000000000000000000000000000000000000000000060209092019182526101079160059161010e565b50506101a9565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014f57805160ff191683800117855561017c565b8280016001018555821561017c579182015b8281111561017c578251825591602001919060010190610161565b5061018892915061018c565b5090565b6101a691905b808211156101885760008155600101610192565b90565b6108df806101b86000396000f3fe6080604052600436106100a8577c0100000000000000000000000000000000000000000000000000000000600035046306fdde03811461011c578063095ea7b3146101a657806318160ddd146101f357806323b872dd1461021a578063313ce5671461025d57806354fd4d501461028857806370a082311461029d57806395d89b41146102d0578063a9059cbb146102e5578063cae9ca511461031e578063dd62ed3e146103e8575b3480156100b457600080fd5b50604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f66616c6c6261636b206e6f7420616c6c6f772075736564000000000000000000604482015290519081900360640190fd5b34801561012857600080fd5b50610131610423565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561016b578181015183820152602001610153565b50505050905090810190601f1680156101985780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101b257600080fd5b506101df600480360360408110156101c957600080fd5b50600160a060020a0381351690602001356104b1565b604080519115158252519081900360200190f35b3480156101ff57600080fd5b50610208610518565b60408051918252519081900360200190f35b34801561022657600080fd5b506101df6004803603606081101561023d57600080fd5b50600160a060020a0381358116916020810135909116906040013561051e565b34801561026957600080fd5b5061027261060b565b6040805160ff9092168252519081900360200190f35b34801561029457600080fd5b50610131610614565b3480156102a957600080fd5b50610208600480360360208110156102c057600080fd5b5035600160a060020a031661066f565b3480156102dc57600080fd5b5061013161068a565b3480156102f157600080fd5b506101df6004803603604081101561030857600080fd5b50600160a060020a0381351690602001356106e5565b34801561032a57600080fd5b506103e66004803603606081101561034157600080fd5b600160a060020a038235169160208101359181019060608101604082013564010000000081111561037157600080fd5b82018360208201111561038357600080fd5b803590602001918460018302840111640100000000831117156103a557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061077e945050505050565b005b3480156103f457600080fd5b506102086004803603604081101561040b57600080fd5b50600160a060020a0381358116916020013516610888565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a95780601f1061047e576101008083540402835291602001916104a9565b820191906000526020600020905b81548152906001019060200180831161048c57829003601f168201915b505050505081565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b600160a060020a03831660009081526001602052604081205482118015906105695750600160a060020a03841660009081526002602090815260408083203384529091529020548211155b80156105755750600082115b1561060057600160a060020a03808416600081815260016020908152604080832080548801905593881680835284832080548890039055600282528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001610604565b5060005b9392505050565b60045460ff1681565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a95780601f1061047e576101008083540402835291602001916104a9565b600160a060020a031660009081526001602052604090205490565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a95780601f1061047e576101008083540402835291602001916104a9565b3360009081526001602052604081205482118015906107045750600082115b156107765733600081815260016020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610512565b506000610512565b61078883836104b1565b506040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081523360048201818152602483018590523060448401819052608060648501908152855160848601528551600160a060020a03891695638f4ffcb1959489949389939192909160a490910190602085019080838360005b8381101561081c578181015183820152602001610804565b50505050905090810190601f1680156108495780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561086b57600080fd5b505af115801561087f573d6000803e3d6000fd5b50505050505050565b600160a060020a0391821660009081526002602090815260408083209390941682529190915220549056fea165627a7a7230582044b78ac9b91342dd922a3761d09f57ba12f4feddffa796f412314510a1709ad80029
Deployed Bytecode
0x6080604052600436106100a8577c0100000000000000000000000000000000000000000000000000000000600035046306fdde03811461011c578063095ea7b3146101a657806318160ddd146101f357806323b872dd1461021a578063313ce5671461025d57806354fd4d501461028857806370a082311461029d57806395d89b41146102d0578063a9059cbb146102e5578063cae9ca511461031e578063dd62ed3e146103e8575b3480156100b457600080fd5b50604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f66616c6c6261636b206e6f7420616c6c6f772075736564000000000000000000604482015290519081900360640190fd5b34801561012857600080fd5b50610131610423565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561016b578181015183820152602001610153565b50505050905090810190601f1680156101985780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101b257600080fd5b506101df600480360360408110156101c957600080fd5b50600160a060020a0381351690602001356104b1565b604080519115158252519081900360200190f35b3480156101ff57600080fd5b50610208610518565b60408051918252519081900360200190f35b34801561022657600080fd5b506101df6004803603606081101561023d57600080fd5b50600160a060020a0381358116916020810135909116906040013561051e565b34801561026957600080fd5b5061027261060b565b6040805160ff9092168252519081900360200190f35b34801561029457600080fd5b50610131610614565b3480156102a957600080fd5b50610208600480360360208110156102c057600080fd5b5035600160a060020a031661066f565b3480156102dc57600080fd5b5061013161068a565b3480156102f157600080fd5b506101df6004803603604081101561030857600080fd5b50600160a060020a0381351690602001356106e5565b34801561032a57600080fd5b506103e66004803603606081101561034157600080fd5b600160a060020a038235169160208101359181019060608101604082013564010000000081111561037157600080fd5b82018360208201111561038357600080fd5b803590602001918460018302840111640100000000831117156103a557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061077e945050505050565b005b3480156103f457600080fd5b506102086004803603604081101561040b57600080fd5b50600160a060020a0381358116916020013516610888565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a95780601f1061047e576101008083540402835291602001916104a9565b820191906000526020600020905b81548152906001019060200180831161048c57829003601f168201915b505050505081565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b600160a060020a03831660009081526001602052604081205482118015906105695750600160a060020a03841660009081526002602090815260408083203384529091529020548211155b80156105755750600082115b1561060057600160a060020a03808416600081815260016020908152604080832080548801905593881680835284832080548890039055600282528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001610604565b5060005b9392505050565b60045460ff1681565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a95780601f1061047e576101008083540402835291602001916104a9565b600160a060020a031660009081526001602052604090205490565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104a95780601f1061047e576101008083540402835291602001916104a9565b3360009081526001602052604081205482118015906107045750600082115b156107765733600081815260016020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610512565b506000610512565b61078883836104b1565b506040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081523360048201818152602483018590523060448401819052608060648501908152855160848601528551600160a060020a03891695638f4ffcb1959489949389939192909160a490910190602085019080838360005b8381101561081c578181015183820152602001610804565b50505050905090810190601f1680156108495780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561086b57600080fd5b505af115801561087f573d6000803e3d6000fd5b50505050505050565b600160a060020a0391821660009081526002602090815260408083209390941682529190915220549056fea165627a7a7230582044b78ac9b91342dd922a3761d09f57ba12f4feddffa796f412314510a1709ad80029
Swarm Source
bzzr://44b78ac9b91342dd922a3761d09f57ba12f4feddffa796f412314510a1709ad8
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.