Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
181,000,000 HD
Holders
3
Total Transfers
-
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:
HDToken
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-23 */ pragma solidity >=0.4.22 <0.6.0; contract owned { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; } contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; // This generates a public event on the blockchain that will notify clients event Transfer(address indexed from, address indexed to, uint256 value); // This generates a public event on the blockchain that will notify clients event Approval(address indexed _owner, address indexed _spender, uint256 _value); // This notifies clients about the amount burnt event Burn(address indexed from, uint256 value); /** * Constrctor function * * Initializes contract with initial supply tokens to the creator of the contract */ constructor( uint256 initialSupply, string memory tokenName, string memory tokenSymbol ) public { totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens name = tokenName; // Set the name for display purposes symbol = tokenSymbol; // Set the symbol for display purposes } /** * Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != address(0x0)); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value > balanceOf[_to]); // Save this for an assertion in the future uint previousBalances = balanceOf[_from] + balanceOf[_to]; // Subtract from the sender balanceOf[_from] -= _value; // Add the same to the recipient balanceOf[_to] += _value; emit Transfer(_from, _to, _value); // Asserts are used to use static analysis to find bugs in your code. They should never fail assert(balanceOf[_from] + balanceOf[_to] == previousBalances); } /** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */ function transfer(address _to, uint256 _value) public returns (bool success) { _transfer(msg.sender, _to, _value); return true; } /** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; } /** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */ function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } /** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to send to the approved contract */ function approveAndCall(address _spender, uint256 _value, bytes memory _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, address(this), _extraData); return true; } } /** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */ function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply emit Burn(msg.sender, _value); return true; } /** * Destroy tokens from other account * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */ function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] -= _value; // Subtract from the targeted balance allowance[_from][msg.sender] -= _value; // Subtract from the sender's allowance totalSupply -= _value; // Update totalSupply emit Burn(_from, _value); return true; } } /******************************************/ /* ADVANCED TOKEN STARTS HERE */ /******************************************/ contract HDToken is owned, TokenERC20 { uint256 public sellPrice; uint256 public buyPrice; mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes contract with initial supply tokens to the creator of the contract */ constructor( uint256 initialSupply, string memory tokenName, string memory tokenSymbol ) TokenERC20(initialSupply, tokenName, tokenSymbol) public {} /* Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint _value) internal { require (_to != address(0x0)); // Prevent transfer to 0x0 address. Use burn() instead require (balanceOf[_from] >= _value); // Check if the sender has enough require (balanceOf[_to] + _value >= balanceOf[_to]); // Check for overflows require(!frozenAccount[_from]); // Check if sender is frozen require(!frozenAccount[_to]); // Check if recipient is frozen balanceOf[_from] -= _value; // Subtract from the sender balanceOf[_to] += _value; // Add the same to the recipient emit Transfer(_from, _to, _value); } /// @notice Create `mintedAmount` tokens and send it to `target` /// @param target Address to receive the tokens /// @param mintedAmount the amount of tokens it will receive function mintToken(address target, uint256 mintedAmount) onlyOwner public { balanceOf[target] += mintedAmount; totalSupply += mintedAmount; emit Transfer(address(0), address(this), mintedAmount); emit Transfer(address(this), target, mintedAmount); } /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens /// @param target Address to be frozen /// @param freeze either to freeze it or not function freezeAccount(address target, bool freeze) onlyOwner public { frozenAccount[target] = freeze; emit FrozenFunds(target, freeze); } /// @notice Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth /// @param newSellPrice Price the users can sell to the contract /// @param newBuyPrice Price users can buy from the contract function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner public { sellPrice = newSellPrice; buyPrice = newBuyPrice; } /// @notice Buy tokens from contract by sending ether function buy() payable public { uint amount = msg.value / buyPrice; // calculates the amount _transfer(address(this), msg.sender, amount); // makes the transfers } /// @notice Sell `amount` tokens to contract /// @param amount amount of tokens to be sold function sell(uint256 amount) public { address myAddress = address(this); require(myAddress.balance >= amount * sellPrice); // checks if the contract has enough ether to buy _transfer(msg.sender, address(this), amount); // makes the transfers msg.sender.transfer(amount * sellPrice); // sends ether to the seller. It's important to do this last to avoid recursion attacks } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bool","name":"frozen","type":"bool"}],"name":"FrozenFunds","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"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"burnFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"frozenAccount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"mintedAmount","type":"uint256"}],"name":"mintToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newSellPrice","type":"uint256"},{"internalType":"uint256","name":"newBuyPrice","type":"uint256"}],"name":"setPrices","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526003805460ff191660121790553480156200001e57600080fd5b50604051620010d7380380620010d7833981810160405260608110156200004457600080fd5b8151602083018051604051929492938301929190846401000000008211156200006c57600080fd5b9083019060208201858111156200008257600080fd5b82516401000000008111828201881017156200009d57600080fd5b82525081516020918201929091019080838360005b83811015620000cc578181015183820152602001620000b2565b50505050905090810190601f168015620000fa5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011e57600080fd5b9083019060208201858111156200013457600080fd5b82516401000000008111828201881017156200014f57600080fd5b82525081516020918201929091019080838360005b838110156200017e57818101518382015260200162000164565b50505050905090810190601f168015620001ac5780820380516001836020036101000a031916815260200191505b506040908152600080546001600160a01b03191633908117825560035460ff16600a0a89026004819055908252600560209081529290912055855187945086935085925062000202916001919085019062000225565b5080516200021890600290602084019062000225565b50505050505050620002ca565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200026857805160ff191683800117855562000298565b8280016001018555821562000298579182015b82811115620002985782518255916020019190600101906200027b565b50620002a6929150620002aa565b5090565b620002c791905b80821115620002a65760008155600101620002b1565b90565b610dfd80620002da6000396000f3fe6080604052600436106101355760003560e01c80638620410b116100ab578063b414d4b61161006f578063b414d4b614610458578063cae9ca511461048b578063dd62ed3e14610553578063e4849b321461058e578063e724529c146105b8578063f2fde38b146105f357610135565b80638620410b146103bc5780638da5cb5b146103d157806395d89b4114610402578063a6f2ae3a14610417578063a9059cbb1461041f57610135565b8063313ce567116100fd578063313ce567146102ad57806342966c68146102d85780634b7503341461030257806370a082311461031757806379c650681461034a57806379cc67901461038357610135565b806305fefda71461013a57806306fdde031461016c578063095ea7b3146101f657806318160ddd1461024357806323b872dd1461026a575b600080fd5b34801561014657600080fd5b5061016a6004803603604081101561015d57600080fd5b5080359060200135610626565b005b34801561017857600080fd5b50610181610648565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101bb5781810151838201526020016101a3565b50505050905090810190601f1680156101e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020257600080fd5b5061022f6004803603604081101561021957600080fd5b506001600160a01b0381351690602001356106d5565b604080519115158252519081900360200190f35b34801561024f57600080fd5b5061025861073b565b60408051918252519081900360200190f35b34801561027657600080fd5b5061022f6004803603606081101561028d57600080fd5b506001600160a01b03813581169160208101359091169060400135610741565b3480156102b957600080fd5b506102c26107b1565b6040805160ff9092168252519081900360200190f35b3480156102e457600080fd5b5061022f600480360360208110156102fb57600080fd5b50356107ba565b34801561030e57600080fd5b50610258610832565b34801561032357600080fd5b506102586004803603602081101561033a57600080fd5b50356001600160a01b0316610838565b34801561035657600080fd5b5061016a6004803603604081101561036d57600080fd5b506001600160a01b03813516906020013561084a565b34801561038f57600080fd5b5061022f600480360360408110156103a657600080fd5b506001600160a01b038135169060200135610900565b3480156103c857600080fd5b506102586109d1565b3480156103dd57600080fd5b506103e66109d7565b604080516001600160a01b039092168252519081900360200190f35b34801561040e57600080fd5b506101816109e6565b61016a610a3e565b34801561042b57600080fd5b5061022f6004803603604081101561044257600080fd5b506001600160a01b038135169060200135610a5c565b34801561046457600080fd5b5061022f6004803603602081101561047b57600080fd5b50356001600160a01b0316610a72565b34801561049757600080fd5b5061022f600480360360608110156104ae57600080fd5b6001600160a01b03823516916020810135918101906060810160408201356401000000008111156104de57600080fd5b8201836020820111156104f057600080fd5b8035906020019184600183028401116401000000008311171561051257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a87945050505050565b34801561055f57600080fd5b506102586004803603604081101561057657600080fd5b506001600160a01b0381358116916020013516610b8c565b34801561059a57600080fd5b5061016a600480360360208110156105b157600080fd5b5035610ba9565b3480156105c457600080fd5b5061016a600480360360408110156105db57600080fd5b506001600160a01b0381351690602001351515610bfd565b3480156105ff57600080fd5b5061016a6004803603602081101561061657600080fd5b50356001600160a01b0316610c78565b6000546001600160a01b0316331461063d57600080fd5b600791909155600855565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106cd5780601f106106a2576101008083540402835291602001916106cd565b820191906000526020600020905b8154815290600101906020018083116106b057829003601f168201915b505050505081565b3360008181526006602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60045481565b6001600160a01b038316600090815260066020908152604080832033845290915281205482111561077157600080fd5b6001600160a01b03841660009081526006602090815260408083203384529091529020805483900390556107a6848484610cb1565b5060015b9392505050565b60035460ff1681565b336000908152600560205260408120548211156107d657600080fd5b3360008181526005602090815260409182902080548690039055600480548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b60075481565b60056020526000908152604090205481565b6000546001600160a01b0316331461086157600080fd5b6001600160a01b03821660009081526005602090815260408083208054850190556004805485019055805184815290513093927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef928290030190a36040805182815290516001600160a01b0384169130917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b03821660009081526005602052604081205482111561092557600080fd5b6001600160a01b038316600090815260066020908152604080832033845290915290205482111561095557600080fd5b6001600160a01b0383166000818152600560209081526040808320805487900390556006825280832033845282529182902080548690039055600480548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a250600192915050565b60085481565b6000546001600160a01b031681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156106cd5780601f106106a2576101008083540402835291602001916106cd565b60006008543481610a4b57fe5b049050610a59303383610cb1565b50565b6000610a69338484610cb1565b50600192915050565b60096020526000908152604090205460ff1681565b600083610a9481856106d5565b15610b8457604051638f4ffcb160e01b815233600482018181526024830187905230604484018190526080606485019081528751608486015287516001600160a01b03871695638f4ffcb195948b94938b939192909160a490910190602085019080838360005b83811015610b13578181015183820152602001610afb565b50505050905090810190601f168015610b405780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610b6257600080fd5b505af1158015610b76573d6000803e3d6000fd5b5050505060019150506107aa565b509392505050565b600660209081526000928352604080842090915290825290205481565b6007543090820281311015610bbd57600080fd5b610bc8333084610cb1565b6007546040513391840280156108fc02916000818181858888f19350505050158015610bf8573d6000803e3d6000fd5b505050565b6000546001600160a01b03163314610c1457600080fd5b6001600160a01b038216600081815260096020908152604091829020805460ff191685151590811790915582519384529083015280517f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59281900390910190a15050565b6000546001600160a01b03163314610c8f57600080fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216610cc457600080fd5b6001600160a01b038316600090815260056020526040902054811115610ce957600080fd5b6001600160a01b0382166000908152600560205260409020548181011015610d1057600080fd5b6001600160a01b03831660009081526009602052604090205460ff1615610d3657600080fd5b6001600160a01b03821660009081526009602052604090205460ff1615610d5c57600080fd5b6001600160a01b03808416600081815260056020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a350505056fea265627a7a72315820a560f9491fcfd69199359981dabccc74a291600ccb544c662c9e69c28a6829c564736f6c63430005110032000000000000000000000000000000000000000000000000000000000ac9d740000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000074844546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024844000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101355760003560e01c80638620410b116100ab578063b414d4b61161006f578063b414d4b614610458578063cae9ca511461048b578063dd62ed3e14610553578063e4849b321461058e578063e724529c146105b8578063f2fde38b146105f357610135565b80638620410b146103bc5780638da5cb5b146103d157806395d89b4114610402578063a6f2ae3a14610417578063a9059cbb1461041f57610135565b8063313ce567116100fd578063313ce567146102ad57806342966c68146102d85780634b7503341461030257806370a082311461031757806379c650681461034a57806379cc67901461038357610135565b806305fefda71461013a57806306fdde031461016c578063095ea7b3146101f657806318160ddd1461024357806323b872dd1461026a575b600080fd5b34801561014657600080fd5b5061016a6004803603604081101561015d57600080fd5b5080359060200135610626565b005b34801561017857600080fd5b50610181610648565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101bb5781810151838201526020016101a3565b50505050905090810190601f1680156101e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561020257600080fd5b5061022f6004803603604081101561021957600080fd5b506001600160a01b0381351690602001356106d5565b604080519115158252519081900360200190f35b34801561024f57600080fd5b5061025861073b565b60408051918252519081900360200190f35b34801561027657600080fd5b5061022f6004803603606081101561028d57600080fd5b506001600160a01b03813581169160208101359091169060400135610741565b3480156102b957600080fd5b506102c26107b1565b6040805160ff9092168252519081900360200190f35b3480156102e457600080fd5b5061022f600480360360208110156102fb57600080fd5b50356107ba565b34801561030e57600080fd5b50610258610832565b34801561032357600080fd5b506102586004803603602081101561033a57600080fd5b50356001600160a01b0316610838565b34801561035657600080fd5b5061016a6004803603604081101561036d57600080fd5b506001600160a01b03813516906020013561084a565b34801561038f57600080fd5b5061022f600480360360408110156103a657600080fd5b506001600160a01b038135169060200135610900565b3480156103c857600080fd5b506102586109d1565b3480156103dd57600080fd5b506103e66109d7565b604080516001600160a01b039092168252519081900360200190f35b34801561040e57600080fd5b506101816109e6565b61016a610a3e565b34801561042b57600080fd5b5061022f6004803603604081101561044257600080fd5b506001600160a01b038135169060200135610a5c565b34801561046457600080fd5b5061022f6004803603602081101561047b57600080fd5b50356001600160a01b0316610a72565b34801561049757600080fd5b5061022f600480360360608110156104ae57600080fd5b6001600160a01b03823516916020810135918101906060810160408201356401000000008111156104de57600080fd5b8201836020820111156104f057600080fd5b8035906020019184600183028401116401000000008311171561051257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a87945050505050565b34801561055f57600080fd5b506102586004803603604081101561057657600080fd5b506001600160a01b0381358116916020013516610b8c565b34801561059a57600080fd5b5061016a600480360360208110156105b157600080fd5b5035610ba9565b3480156105c457600080fd5b5061016a600480360360408110156105db57600080fd5b506001600160a01b0381351690602001351515610bfd565b3480156105ff57600080fd5b5061016a6004803603602081101561061657600080fd5b50356001600160a01b0316610c78565b6000546001600160a01b0316331461063d57600080fd5b600791909155600855565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106cd5780601f106106a2576101008083540402835291602001916106cd565b820191906000526020600020905b8154815290600101906020018083116106b057829003601f168201915b505050505081565b3360008181526006602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60045481565b6001600160a01b038316600090815260066020908152604080832033845290915281205482111561077157600080fd5b6001600160a01b03841660009081526006602090815260408083203384529091529020805483900390556107a6848484610cb1565b5060015b9392505050565b60035460ff1681565b336000908152600560205260408120548211156107d657600080fd5b3360008181526005602090815260409182902080548690039055600480548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b60075481565b60056020526000908152604090205481565b6000546001600160a01b0316331461086157600080fd5b6001600160a01b03821660009081526005602090815260408083208054850190556004805485019055805184815290513093927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef928290030190a36040805182815290516001600160a01b0384169130917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b03821660009081526005602052604081205482111561092557600080fd5b6001600160a01b038316600090815260066020908152604080832033845290915290205482111561095557600080fd5b6001600160a01b0383166000818152600560209081526040808320805487900390556006825280832033845282529182902080548690039055600480548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a250600192915050565b60085481565b6000546001600160a01b031681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156106cd5780601f106106a2576101008083540402835291602001916106cd565b60006008543481610a4b57fe5b049050610a59303383610cb1565b50565b6000610a69338484610cb1565b50600192915050565b60096020526000908152604090205460ff1681565b600083610a9481856106d5565b15610b8457604051638f4ffcb160e01b815233600482018181526024830187905230604484018190526080606485019081528751608486015287516001600160a01b03871695638f4ffcb195948b94938b939192909160a490910190602085019080838360005b83811015610b13578181015183820152602001610afb565b50505050905090810190601f168015610b405780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610b6257600080fd5b505af1158015610b76573d6000803e3d6000fd5b5050505060019150506107aa565b509392505050565b600660209081526000928352604080842090915290825290205481565b6007543090820281311015610bbd57600080fd5b610bc8333084610cb1565b6007546040513391840280156108fc02916000818181858888f19350505050158015610bf8573d6000803e3d6000fd5b505050565b6000546001600160a01b03163314610c1457600080fd5b6001600160a01b038216600081815260096020908152604091829020805460ff191685151590811790915582519384529083015280517f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59281900390910190a15050565b6000546001600160a01b03163314610c8f57600080fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216610cc457600080fd5b6001600160a01b038316600090815260056020526040902054811115610ce957600080fd5b6001600160a01b0382166000908152600560205260409020548181011015610d1057600080fd5b6001600160a01b03831660009081526009602052604090205460ff1615610d3657600080fd5b6001600160a01b03821660009081526009602052604090205460ff1615610d5c57600080fd5b6001600160a01b03808416600081815260056020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a350505056fea265627a7a72315820a560f9491fcfd69199359981dabccc74a291600ccb544c662c9e69c28a6829c564736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000ac9d740000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000074844546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024844000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialSupply (uint256): 181000000
Arg [1] : tokenName (string): HDToken
Arg [2] : tokenSymbol (string): HD
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000ac9d740
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 4844546f6b656e00000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 4844000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
6765:3515:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9305:155;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9305:155:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9305:155:0;;;;;;;:::i;:::-;;549:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;549:18:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;549:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4208:225;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4208:225:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4208:225:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;707:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;707:26:0;;;:::i;:::-;;;;;;;;;;;;;;;;3643:296;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3643:296:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3643:296:0;;;;;;;;;;;;;;;;;:::i;601:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;601:26:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;5370:374;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5370:374:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5370:374:0;;:::i;6812:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6812:24:0;;;:::i;790:45::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;790:45:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;790:45:0;-1:-1:-1;;;;;790:45:0;;:::i;8420:290::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8420:290:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;8420:290:0;;;;;;;;:::i;6007:611::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6007:611:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;6007:611:0;;;;;;;;:::i;6843:23::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6843:23:0;;;:::i;58:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58:20:0;;;:::i;:::-;;;;-1:-1:-1;;;;;58:20:0;;;;;;;;;;;;;;574;;8:9:-1;5:2;;;30:1;27;20:12;5:2;574:20:0;;;:::i;9527:208::-;;;:::i;3211:152::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3211:152:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3211:152:0;;;;;;;;:::i;6875:46::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6875:46:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6875:46:0;-1:-1:-1;;;;;6875:46:0;;:::i;4832:363::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4832:363:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;4832:363:0;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;4832:363:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;4832:363:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;4832:363:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;4832:363:0;;-1:-1:-1;4832:363:0;;-1:-1:-1;;;;;4832:363:0:i;842:66::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;842:66:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;842:66:0;;;;;;;;;;:::i;9844:433::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9844:433:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9844:433:0;;:::i;8896:161::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8896:161:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;8896:161:0;;;;;;;;;;:::i;239:97::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;239:97:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;239:97:0;-1:-1:-1;;;;;239:97:0;;:::i;9305:155::-;205:5;;-1:-1:-1;;;;;205:5:0;191:10;:19;183:28;;;;;;9395:9;:24;;;;9430:8;:22;9305:155::o;549:18::-;;;;;;;;;;;;;;;-1:-1:-1;;549:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;4208:225::-;4319:10;4284:12;4309:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;4309:31:0;;;;;;;;;;;:40;;;4365:38;;;;;;;4284:12;;4309:31;;4319:10;;4365:38;;;;;;;;-1:-1:-1;4421:4:0;4208:225;;;;:::o;707:26::-;;;;:::o;3643:296::-;-1:-1:-1;;;;;3768:16:0;;3725:12;3768:16;;;:9;:16;;;;;;;;3785:10;3768:28;;;;;;;;3758:38;;;3750:47;;;;;;-1:-1:-1;;;;;3831:16:0;;;;;;:9;:16;;;;;;;;3848:10;3831:28;;;;;;;:38;;;;;;;3880:29;3841:5;3897:3;3863:6;3880:9;:29::i;:::-;-1:-1:-1;3927:4:0;3643:296;;;;;;:::o;601:26::-;;;;;;:::o;5370:374::-;5459:10;5416:12;5449:21;;;:9;:21;;;;;;:31;-1:-1:-1;5449:31:0;5441:40;;;;;;5538:10;5528:21;;;;:9;:21;;;;;;;;;:31;;;;;;;5609:11;:21;;;;;;;5690:24;;;;;;;;;;;;;;;;;-1:-1:-1;5732:4:0;5370:374;;;:::o;6812:24::-;;;;:::o;790:45::-;;;;;;;;;;;;;:::o;8420:290::-;205:5;;-1:-1:-1;;;;;205:5:0;191:10;:19;183:28;;;;;;-1:-1:-1;;;;;8505:17:0;;;;;;:9;:17;;;;;;;;:33;;;;;;8549:11;:27;;;;;;8592:49;;;;;;;8621:4;;8505:17;8592:49;;;;;;;;8657:45;;;;;;;;-1:-1:-1;;;;;8657:45:0;;;8674:4;;8657:45;;;;;;;;;8420:290;;:::o;6007:611::-;-1:-1:-1;;;;;6105:16:0;;6072:12;6105:16;;;:9;:16;;;;;;:26;-1:-1:-1;6105:26:0;6097:35;;;;;;-1:-1:-1;;;;;6219:16:0;;;;;;:9;:16;;;;;;;;6236:10;6219:28;;;;;;;;6209:38;;;6201:47;;;;;;-1:-1:-1;;;;;6281:16:0;;;;;;:9;:16;;;;;;;;:26;;;;;;;6380:9;:16;;;;;6397:10;6380:28;;;;;;;;:38;;;;;;;6481:11;:21;;;;;;;6569:19;;;;;;;;;;;;;;;;;-1:-1:-1;6606:4:0;6007:611;;;;:::o;6843:23::-;;;;:::o;58:20::-;;;-1:-1:-1;;;;;58:20:0;;:::o;574:::-;;;;;;;;;;;;;;-1:-1:-1;;574:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9527:208;9568:11;9594:8;;9582:9;:20;;;;;;9568:34;;9654:44;9672:4;9679:10;9691:6;9654:9;:44::i;:::-;9527:208;:::o;3211:152::-;3274:12;3299:34;3309:10;3321:3;3326:6;3299:9;:34::i;:::-;-1:-1:-1;3351:4:0;3211:152;;;;:::o;6875:46::-;;;;;;;;;;;;;;;:::o;4832:363::-;4949:12;5014:8;5038:25;5014:8;5056:6;5038:7;:25::i;:::-;5034:154;;;5080:70;;-1:-1:-1;;;5080:70:0;;5104:10;5080:70;;;;;;;;;;;;5132:4;5080:70;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5080:23:0;;;;;5104:10;5116:6;;5132:4;5139:10;;5080:70;;;;;;;;;;;;;;;;-1:-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5080:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5080:70:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5080:70:0;;;;5172:4;5165:11;;;;;5034:154;4832:363;;;;;;:::o;842:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;9844:433::-;9974:9;;9920:4;;9965:18;;9944:17;;:39;;9936:48;;;;;;10047:44;10057:10;10077:4;10084:6;10047:9;:44::i;:::-;10160:9;;10131:39;;:10;;10151:18;;10131:39;;;;;;;;;10151:18;10131:10;:39;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10131:39:0;9844:433;;:::o;8896:161::-;205:5;;-1:-1:-1;;;;;205:5:0;191:10;:19;183:28;;;;;;-1:-1:-1;;;;;8976:21:0;;;;;;:13;:21;;;;;;;;;:30;;-1:-1:-1;;8976:30:0;;;;;;;;;;9022:27;;;;;;;;;;;;;;;;;;;;;8896:161;;:::o;239:97::-;205:5;;-1:-1:-1;;;;;205:5:0;191:10;:19;183:28;;;;;;312:5;:16;;-1:-1:-1;;;;;;312:16:0;-1:-1:-1;;;;;312:16:0;;;;;;;;;;239:97::o;7413:810::-;-1:-1:-1;;;;;7502:19:0;;7493:29;;;;;;-1:-1:-1;;;;;7622:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;7622:26:0;7613:36;;;;;;-1:-1:-1;;;;;7748:14:0;;;;;;:9;:14;;;;;;7721:23;;;:41;;7712:51;;;;;;-1:-1:-1;;;;;7809:20:0;;;;;;:13;:20;;;;;;;;7808:21;7800:30;;;;;;-1:-1:-1;;;;;7903:18:0;;;;;;:13;:18;;;;;;;;7902:19;7894:28;;;;;;-1:-1:-1;;;;;7991:16:0;;;;;;;:9;:16;;;;;;;;:26;;;;;;;8084:14;;;;;;;;;;:24;;;;;;8187:28;;;;;;;8084:14;;8187:28;;;;;;;;;;;7413:810;;;:::o
Swarm Source
bzzr://a560f9491fcfd69199359981dabccc74a291600ccb544c662c9e69c28a6829c5
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.