ERC-20
Overview
Max Total Supply
1,000,000,000,000 HEIR
Holders
31
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2,620,561,440.820630616014077259 HEIRValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HEIR
Compiler Version
v0.4.26+commit.4563c3fc
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.4.25; interface ERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function approveAndCall(address spender, uint tokens, bytes data) external returns (bool success); function transferFrom(address from, address to, uint256 value) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } interface ApproveAndCallFallBack { function receiveApproval(address from, uint256 tokens, address token, bytes data) external; } contract HEIR is ERC20 { using SafeMath for uint256; mapping (address => uint256) private balances; mapping (address => mapping (address => uint256)) private allowed; string public constant name = "Heir"; string public constant symbol = "HEIR"; uint8 public constant decimals = 18; address owner = msg.sender; uint256 _totalSupply = 1000000000000 * (10 ** 18); // 1 trillion supply constructor() public { balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); } function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address player) public view returns (uint256) { return balances[player]; } function allowance(address player, address spender) public view returns (uint256) { return allowed[player][spender]; } function transfer(address to, uint256 value) public returns (bool) { require(value <= balances[msg.sender]); require(to != address(0)); balances[msg.sender] = balances[msg.sender].sub(value); balances[to] = balances[to].add(value); emit Transfer(msg.sender, to, value); return true; } function multiTransfer(address[] memory receivers, uint256[] memory amounts) public { for (uint256 i = 0; i < receivers.length; i++) { transfer(receivers[i], amounts[i]); } } function approve(address spender, uint256 value) public returns (bool) { require(spender != address(0)); allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function approveAndCall(address spender, uint256 tokens, bytes data) external returns (bool) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data); return true; } function transferFrom(address from, address to, uint256 value) public returns (bool) { require(value <= balances[from]); require(value <= allowed[from][msg.sender]); require(to != address(0)); balances[from] = balances[from].sub(value); balances[to] = balances[to].add(value); allowed[from][msg.sender] = allowed[from][msg.sender].sub(value); emit Transfer(from, to, value); return true; } function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { require(spender != address(0)); allowed[msg.sender][spender] = allowed[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, allowed[msg.sender][spender]); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { require(spender != address(0)); allowed[msg.sender][spender] = allowed[msg.sender][spender].sub(subtractedValue); emit Approval(msg.sender, spender, allowed[msg.sender][spender]); return true; } function burn(uint256 amount) external { require(amount != 0); require(amount <= balances[msg.sender]); _totalSupply = _totalSupply.sub(amount); balances[msg.sender] = balances[msg.sender].sub(amount); emit Transfer(msg.sender, address(0), amount); } } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } function ceil(uint256 a, uint256 m) internal pure returns (uint256) { uint256 c = add(a,m); uint256 d = sub(c,1); return mul(div(d,m),m); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":"","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":"receivers","type":"address[]"},{"name":"amounts","type":"uint256[]"}],"name":"multiTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"player","type":"address"}],"name":"balanceOf","outputs":[{"name":"","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":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"tokens","type":"uint256"},{"name":"data","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"player","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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
608060405260028054600160a060020a031916331790556c0c9f2c9cd04674edea4000000060035534801561003357600080fd5b5060035433600081815260208181526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3610aad8061008d6000396000f3006080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd146101965780631e89d545146101bd57806323b872dd1461024d578063313ce5671461027757806339509351146102a257806342966c68146102c657806370a08231146102de57806395d89b41146102ff578063a457c2d714610314578063a9059cbb14610338578063cae9ca511461035c578063dd62ed3e1461038d575b600080fd5b3480156100e057600080fd5b506100e96103b4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012357818101518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016a57600080fd5b50610182600160a060020a03600435166024356103eb565b604080519115158252519081900360200190f35b3480156101a257600080fd5b506101ab610469565b60408051918252519081900360200190f35b3480156101c957600080fd5b506040805160206004803580820135838102808601850190965280855261024b95369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375094975061046f9650505050505050565b005b34801561025957600080fd5b50610182600160a060020a03600435811690602435166044356104c1565b34801561028357600080fd5b5061028c610636565b6040805160ff9092168252519081900360200190f35b3480156102ae57600080fd5b50610182600160a060020a036004351660243561063b565b3480156102d257600080fd5b5061024b6004356106eb565b3480156102ea57600080fd5b506101ab600160a060020a0360043516610794565b34801561030b57600080fd5b506100e96107af565b34801561032057600080fd5b50610182600160a060020a03600435166024356107e6565b34801561034457600080fd5b50610182600160a060020a0360043516602435610831565b34801561036857600080fd5b5061018260048035600160a060020a0316906024803591604435918201910135610910565b34801561039957600080fd5b506101ab600160a060020a0360043581169060243516610a28565b60408051808201909152600481527f4865697200000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561040257600080fd5b336000818152600160209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60035490565b60005b82518110156104bc576104b3838281518110151561048c57fe5b9060200190602002015183838151811015156104a457fe5b90602001906020020151610831565b50600101610472565b505050565b600160a060020a0383166000908152602081905260408120548211156104e657600080fd5b600160a060020a038416600090815260016020908152604080832033845290915290205482111561051657600080fd5b600160a060020a038316151561052b57600080fd5b600160a060020a038416600090815260208190526040902054610554908363ffffffff610a5316565b600160a060020a038086166000908152602081905260408082209390935590851681522054610589908363ffffffff610a6816565b600160a060020a038085166000908152602081815260408083209490945591871681526001825282812033825290915220546105cb908363ffffffff610a5316565b600160a060020a03808616600081815260016020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b601281565b6000600160a060020a038316151561065257600080fd5b336000908152600160209081526040808320600160a060020a0387168452909152902054610686908363ffffffff610a6816565b336000818152600160209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b8015156106f757600080fd5b3360009081526020819052604090205481111561071357600080fd5b600354610726908263ffffffff610a5316565b60035533600090815260208190526040902054610749908263ffffffff610a5316565b33600081815260208181526040808320949094558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a350565b600160a060020a031660009081526020819052604090205490565b60408051808201909152600481527f4845495200000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a03831615156107fd57600080fd5b336000908152600160209081526040808320600160a060020a0387168452909152902054610686908363ffffffff610a5316565b3360009081526020819052604081205482111561084d57600080fd5b600160a060020a038316151561086257600080fd5b33600090815260208190526040902054610882908363ffffffff610a5316565b3360009081526020819052604080822092909255600160a060020a038516815220546108b4908363ffffffff610a6816565b600160a060020a038416600081815260208181526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b336000818152600160209081526040808320600160a060020a038916808552908352818420889055815188815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a36040517f8f4ffcb1000000000000000000000000000000000000000000000000000000008152336004820181815260248301879052306044840181905260806064850190815260848501879052600160a060020a038a1694638f4ffcb194938a93928a928a92919060a40184848082843782019150509650505050505050600060405180830381600087803b158015610a0557600080fd5b505af1158015610a19573d6000803e3d6000fd5b50600198975050505050505050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600082821115610a6257600080fd5b50900390565b600082820183811015610a7a57600080fd5b93925050505600a165627a7a723058203ca9ecdf2765d5a5b43972bc72846301c25941723d491a41484cce6fdf7c5c860029
Deployed Bytecode
0x6080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd146101965780631e89d545146101bd57806323b872dd1461024d578063313ce5671461027757806339509351146102a257806342966c68146102c657806370a08231146102de57806395d89b41146102ff578063a457c2d714610314578063a9059cbb14610338578063cae9ca511461035c578063dd62ed3e1461038d575b600080fd5b3480156100e057600080fd5b506100e96103b4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012357818101518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016a57600080fd5b50610182600160a060020a03600435166024356103eb565b604080519115158252519081900360200190f35b3480156101a257600080fd5b506101ab610469565b60408051918252519081900360200190f35b3480156101c957600080fd5b506040805160206004803580820135838102808601850190965280855261024b95369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375094975061046f9650505050505050565b005b34801561025957600080fd5b50610182600160a060020a03600435811690602435166044356104c1565b34801561028357600080fd5b5061028c610636565b6040805160ff9092168252519081900360200190f35b3480156102ae57600080fd5b50610182600160a060020a036004351660243561063b565b3480156102d257600080fd5b5061024b6004356106eb565b3480156102ea57600080fd5b506101ab600160a060020a0360043516610794565b34801561030b57600080fd5b506100e96107af565b34801561032057600080fd5b50610182600160a060020a03600435166024356107e6565b34801561034457600080fd5b50610182600160a060020a0360043516602435610831565b34801561036857600080fd5b5061018260048035600160a060020a0316906024803591604435918201910135610910565b34801561039957600080fd5b506101ab600160a060020a0360043581169060243516610a28565b60408051808201909152600481527f4865697200000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561040257600080fd5b336000818152600160209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60035490565b60005b82518110156104bc576104b3838281518110151561048c57fe5b9060200190602002015183838151811015156104a457fe5b90602001906020020151610831565b50600101610472565b505050565b600160a060020a0383166000908152602081905260408120548211156104e657600080fd5b600160a060020a038416600090815260016020908152604080832033845290915290205482111561051657600080fd5b600160a060020a038316151561052b57600080fd5b600160a060020a038416600090815260208190526040902054610554908363ffffffff610a5316565b600160a060020a038086166000908152602081905260408082209390935590851681522054610589908363ffffffff610a6816565b600160a060020a038085166000908152602081815260408083209490945591871681526001825282812033825290915220546105cb908363ffffffff610a5316565b600160a060020a03808616600081815260016020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b601281565b6000600160a060020a038316151561065257600080fd5b336000908152600160209081526040808320600160a060020a0387168452909152902054610686908363ffffffff610a6816565b336000818152600160209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b8015156106f757600080fd5b3360009081526020819052604090205481111561071357600080fd5b600354610726908263ffffffff610a5316565b60035533600090815260208190526040902054610749908263ffffffff610a5316565b33600081815260208181526040808320949094558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a350565b600160a060020a031660009081526020819052604090205490565b60408051808201909152600481527f4845495200000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a03831615156107fd57600080fd5b336000908152600160209081526040808320600160a060020a0387168452909152902054610686908363ffffffff610a5316565b3360009081526020819052604081205482111561084d57600080fd5b600160a060020a038316151561086257600080fd5b33600090815260208190526040902054610882908363ffffffff610a5316565b3360009081526020819052604080822092909255600160a060020a038516815220546108b4908363ffffffff610a6816565b600160a060020a038416600081815260208181526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b336000818152600160209081526040808320600160a060020a038916808552908352818420889055815188815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a36040517f8f4ffcb1000000000000000000000000000000000000000000000000000000008152336004820181815260248301879052306044840181905260806064850190815260848501879052600160a060020a038a1694638f4ffcb194938a93928a928a92919060a40184848082843782019150509650505050505050600060405180830381600087803b158015610a0557600080fd5b505af1158015610a19573d6000803e3d6000fd5b50600198975050505050505050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600082821115610a6257600080fd5b50900390565b600082820183811015610a7a57600080fd5b93925050505600a165627a7a723058203ca9ecdf2765d5a5b43972bc72846301c25941723d491a41484cce6fdf7c5c860029
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.