ERC-20
Overview
Max Total Supply
100,000,000,000 TRUDOGE
Holders
303
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 9 Decimals)
Balance
10,000,000 TRUDOGEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Truedoge
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-04 */ pragma solidity ^0.5.0; // SPDX-License-Identifier: MIT contract ERC20Interface { function totalSupply() public view returns (uint); function balanceOf(address tokenOwner) public view returns (uint balance); function allowance(address tokenOwner, address spender) public view returns (uint remaining); function transfer(address to, uint tokens) public returns (bool success); function approve(address spender, uint tokens) public returns (bool success); function transferFrom(address from, address to, uint tokens) public returns (bool success); event Transfer(address indexed from, address indexed to, uint tokens); event Approval(address indexed tokenOwner, address indexed spender, uint tokens); } contract SafeMath { function safeAdd(uint a, uint b) public pure returns (uint c) { c = a + b; require(c >= a); } function safeSub(uint a, uint b) public pure returns (uint c) { require(b <= a); c = a - b; } function safeMul(uint a, uint b) public pure returns (uint c) { c = a * b; require(a == 0 || c / a == b); } function safeDiv(uint a, uint b) public pure returns (uint c) { require(b > 0); c = a / b; } } contract Truedoge is ERC20Interface, SafeMath { string public name; string public symbol; uint8 public decimals; // 18 decimals is the strongly suggested default, avoid changing it uint256 public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; /** * Constrctor function * * Initializes contract with initial supply tokens to the creator of the contract */ constructor() public { name = "Truedoge"; symbol = "TRUDOGE"; decimals = 9; _totalSupply = 100000000000000000000; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); } function totalSupply() public view returns (uint) { return _totalSupply - balances[address(0)]; } function balanceOf(address tokenOwner) public view returns (uint balance) { return balances[tokenOwner]; } function allowance(address tokenOwner, address spender) public view returns (uint remaining) { return allowed[tokenOwner][spender]; } function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; } function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(msg.sender, to, tokens); return true; } function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(from, to, tokens); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenOwner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"Approval","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":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","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":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"safeAdd","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"safeDiv","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"safeMul","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"safeSub","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","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":"tokens","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":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040805180820190915260088082526754727565646f676560c01b6020909201918252610040916000916100da565b5060408051808201909152600780825266545255444f474560c81b602090920191825261006f916001916100da565b506002805460ff1916600917905568056bc75e2d631000006003819055336000818152600460209081526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3610175565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011b57805160ff1916838001178555610148565b82800160010185558215610148579182015b8281111561014857825182559160200191906001019061012d565b50610154929150610158565b5090565b61017291905b80821115610154576000815560010161015e565b90565b610743806101846000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806395d89b411161008c578063b5931f7c11610066578063b5931f7c1461029f578063d05c78da146102c2578063dd62ed3e146102e5578063e6cb901314610313576100ea565b806395d89b4114610248578063a293d1e814610250578063a9059cbb14610273576100ea565b806323b872dd116100c857806323b872dd146101c6578063313ce567146101fc5780633eaaf86b1461021a57806370a0823114610222576100ea565b806306fdde03146100ef578063095ea7b31461016c57806318160ddd146101ac575b600080fd5b6100f7610336565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101986004803603604081101561018257600080fd5b506001600160a01b0381351690602001356103c4565b604080519115158252519081900360200190f35b6101b461042b565b60408051918252519081900360200190f35b610198600480360360608110156101dc57600080fd5b506001600160a01b0381358116916020810135909116906040013561045d565b610204610556565b6040805160ff9092168252519081900360200190f35b6101b461055f565b6101b46004803603602081101561023857600080fd5b50356001600160a01b0316610565565b6100f7610580565b6101b46004803603604081101561026657600080fd5b50803590602001356105da565b6101986004803603604081101561028957600080fd5b506001600160a01b0381351690602001356105ef565b6101b4600480360360408110156102b557600080fd5b5080359060200135610693565b6101b4600480360360408110156102d857600080fd5b50803590602001356106b2565b6101b4600480360360408110156102fb57600080fd5b506001600160a01b03813581169160200135166106d3565b6101b46004803603604081101561032957600080fd5b50803590602001356106fe565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103bc5780601f10610391576101008083540402835291602001916103bc565b820191906000526020600020905b81548152906001019060200180831161039f57829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6000805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546003540390565b6001600160a01b03831660009081526004602052604081205461048090836105da565b6001600160a01b03851660009081526004602090815260408083209390935560058152828220338352905220546104b790836105da565b6001600160a01b0380861660009081526005602090815260408083203384528252808320949094559186168152600490915220546104f590836106fe565b6001600160a01b0380851660008181526004602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60025460ff1681565b60035481565b6001600160a01b031660009081526004602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103bc5780601f10610391576101008083540402835291602001916103bc565b6000828211156105e957600080fd5b50900390565b3360009081526004602052604081205461060990836105da565b33600090815260046020526040808220929092556001600160a01b0385168152205461063590836106fe565b6001600160a01b0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60008082116106a157600080fd5b8183816106aa57fe5b049392505050565b8181028215806106ca5750818382816106c757fe5b04145b61042557600080fd5b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b8181018281101561042557600080fdfea265627a7a72315820431a1819860a2c01e68705426a2f86b3b31396479e5322df5d36c2aeb5ff258364736f6c63430005110032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806395d89b411161008c578063b5931f7c11610066578063b5931f7c1461029f578063d05c78da146102c2578063dd62ed3e146102e5578063e6cb901314610313576100ea565b806395d89b4114610248578063a293d1e814610250578063a9059cbb14610273576100ea565b806323b872dd116100c857806323b872dd146101c6578063313ce567146101fc5780633eaaf86b1461021a57806370a0823114610222576100ea565b806306fdde03146100ef578063095ea7b31461016c57806318160ddd146101ac575b600080fd5b6100f7610336565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101986004803603604081101561018257600080fd5b506001600160a01b0381351690602001356103c4565b604080519115158252519081900360200190f35b6101b461042b565b60408051918252519081900360200190f35b610198600480360360608110156101dc57600080fd5b506001600160a01b0381358116916020810135909116906040013561045d565b610204610556565b6040805160ff9092168252519081900360200190f35b6101b461055f565b6101b46004803603602081101561023857600080fd5b50356001600160a01b0316610565565b6100f7610580565b6101b46004803603604081101561026657600080fd5b50803590602001356105da565b6101986004803603604081101561028957600080fd5b506001600160a01b0381351690602001356105ef565b6101b4600480360360408110156102b557600080fd5b5080359060200135610693565b6101b4600480360360408110156102d857600080fd5b50803590602001356106b2565b6101b4600480360360408110156102fb57600080fd5b506001600160a01b03813581169160200135166106d3565b6101b46004803603604081101561032957600080fd5b50803590602001356106fe565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103bc5780601f10610391576101008083540402835291602001916103bc565b820191906000526020600020905b81548152906001019060200180831161039f57829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6000805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec546003540390565b6001600160a01b03831660009081526004602052604081205461048090836105da565b6001600160a01b03851660009081526004602090815260408083209390935560058152828220338352905220546104b790836105da565b6001600160a01b0380861660009081526005602090815260408083203384528252808320949094559186168152600490915220546104f590836106fe565b6001600160a01b0380851660008181526004602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60025460ff1681565b60035481565b6001600160a01b031660009081526004602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103bc5780601f10610391576101008083540402835291602001916103bc565b6000828211156105e957600080fd5b50900390565b3360009081526004602052604081205461060990836105da565b33600090815260046020526040808220929092556001600160a01b0385168152205461063590836106fe565b6001600160a01b0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60008082116106a157600080fd5b8183816106aa57fe5b049392505050565b8181028215806106ca5750818382816106c757fe5b04145b61042557600080fd5b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b8181018281101561042557600080fdfea265627a7a72315820431a1819860a2c01e68705426a2f86b3b31396479e5322df5d36c2aeb5ff258364736f6c63430005110032
Deployed Bytecode Sourcemap
1226:2030:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1226:2030:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1279:18;;;:::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;1279:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2384:208;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2384:208:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1981:112;;;:::i;:::-;;;;;;;;;;;;;;;;2885:368;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2885:368:0;;;;;;;;;;;;;;;;;:::i;1331:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1429:27;;;:::i;2101:120::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2101:120:0;-1:-1:-1;;;;;2101:120:0;;:::i;1304:20::-;;;:::i;900:102::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;900:102:0;;;;;;;:::i;2600:277::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2600:277:0;;;;;;;;:::i;1111:106::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1111:106:0;;;;;;;:::i;1003:107::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1003:107:0;;;;;;;:::i;2229:147::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2229:147:0;;;;;;;;;;:::i;778:116::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;778:116:0;;;;;;;:::i;1279:18::-;;;;;;;;;;;;;;;-1:-1:-1;;1279:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2384:208::-;2480:10;2447:12;2472:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2472:28:0;;;;;;;;;;;:37;;;2525;;;;;;;2447:12;;2472:28;;2480:10;;2525:37;;;;;;;;-1:-1:-1;2580:4:0;2384:208;;;;;:::o;1981:112::-;2025:4;2065:20;;:8;:20;;;;2049:12;;:36;1981:112;:::o;2885:368::-;-1:-1:-1;;;;;3012:14:0;;2962:12;3012:14;;;:8;:14;;;;;;3004:31;;3028:6;3004:7;:31::i;:::-;-1:-1:-1;;;;;2987:14:0;;;;;;:8;:14;;;;;;;;:48;;;;3082:7;:13;;;;;3096:10;3082:25;;;;;;3074:42;;3109:6;3074:7;:42::i;:::-;-1:-1:-1;;;;;3046:13:0;;;;;;;:7;:13;;;;;;;;3060:10;3046:25;;;;;;;:70;;;;3150:12;;;;;:8;:12;;;;;3142:29;;3164:6;3142:7;:29::i;:::-;-1:-1:-1;;;;;3127:12:0;;;;;;;:8;:12;;;;;;;;;:44;;;;3187:26;;;;;;;3127:12;;3187:26;;;;;;;;;;;;;-1:-1:-1;3231:4:0;2885:368;;;;;:::o;1331:21::-;;;;;;:::o;1429:27::-;;;;:::o;2101:120::-;-1:-1:-1;;;;;2193:20:0;2161:12;2193:20;;;:8;:20;;;;;;;2101:120::o;1304:20::-;;;;;;;;;;;;;;;-1:-1:-1;;1304:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;900:102;954:6;986:1;981;:6;;973:15;;;;;;-1:-1:-1;994:5:0;;;900:102::o;2600:277::-;2724:10;2659:12;2715:20;;;:8;:20;;;;;;2707:37;;2737:6;2707:7;:37::i;:::-;2693:10;2684:20;;;;:8;:20;;;;;;:60;;;;-1:-1:-1;;;;;2778:12:0;;;;;;2770:29;;2792:6;2770:7;:29::i;:::-;-1:-1:-1;;;;;2755:12:0;;;;;;:8;:12;;;;;;;;;:44;;;;2815:32;;;;;;;2755:12;;2824:10;;2815:32;;;;;;;;;;-1:-1:-1;2865:4:0;2600:277;;;;:::o;1111:106::-;1165:6;1187:1;1183;:5;1175:14;;;;;;1208:1;1204;:5;;;;;;;1111:106;-1:-1:-1;;;1111:106:0:o;1003:107::-;1071:5;;;1086:6;;;:20;;;1105:1;1100;1096;:5;;;;;;:10;1086:20;1078:29;;;;;2229:147;-1:-1:-1;;;;;2340:19:0;;;2306:14;2340:19;;;:7;:19;;;;;;;;:28;;;;;;;;;;;;;2229:147::o;778:116::-;855:5;;;879:6;;;;871:15;;;;
Swarm Source
bzzr://431a1819860a2c01e68705426a2f86b3b31396479e5322df5d36c2aeb5ff2583
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.