Token n

Overview [ERC-20]

Max Total Supply:
1,000,000 s

Holders:
3

Profile Summary

 
Contract:
0x5b0ec35985e10f54041d0c541b9005978f42dbcc0x5b0ec35985e10F54041D0c541b9005978f42DbCC

Decimals:
18
Filtered by Token Holder (Lab10Collective)

Balance
1 s
0x596e8221a30bfe6e7eff67fee664a01c73ba3c56
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xc599bcaC531cd6ECce2fb33C8b39065f842f6B07

Contract Name:
Token

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-05-12
*/

// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

contract Token {
    string public name ;
    string public symbol ;
    uint256 public decimals;
    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;//mapping how many token this address have
    mapping(address => mapping(address => uint256)) public allowance;

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    constructor(string memory _name, string memory _symbol, uint _decimals, uint _totalSupply) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
        totalSupply = _totalSupply;//输入token数目
        balanceOf[msg.sender] = totalSupply;//token数赋给调用者的token数
    }
    
    function transfer(address _to, uint256 _value) external returns (bool success) {
        require(balanceOf[msg.sender] >= _value);
        _transfer(msg.sender, _to, _value);
        return true;
    }

    function _transfer(address _from, address _to, uint256 _value) internal {
        // Ensure sending is to valid address! 0x0 address cane be used to burn() 
        require(_to != address(0));
        balanceOf[_from] = balanceOf[_from] - (_value);
        balanceOf[_to] = balanceOf[_to] + (_value);
        emit Transfer(_from, _to, _value);
    }
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_decimals","type":"uint256"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"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":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162000d3738038062000d3783398181016040528101906200003791906200020c565b83600090805190602001906200004f929190620000c7565b50826001908051906020019062000068929190620000c7565b508160028190555080600381905550600354600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505062000464565b828054620000d5906200035b565b90600052602060002090601f016020900481019282620000f9576000855562000145565b82601f106200011457805160ff191683800117855562000145565b8280016001018555821562000145579182015b828111156200014457825182559160200191906001019062000127565b5b50905062000154919062000158565b5090565b5b808211156200017357600081600090555060010162000159565b5090565b60006200018e6200018884620002e5565b620002bc565b905082815260208101848484011115620001ad57620001ac6200042a565b5b620001ba84828562000325565b509392505050565b600082601f830112620001da57620001d962000425565b5b8151620001ec84826020860162000177565b91505092915050565b60008151905062000206816200044a565b92915050565b6000806000806080858703121562000229576200022862000434565b5b600085015167ffffffffffffffff8111156200024a57620002496200042f565b5b6200025887828801620001c2565b945050602085015167ffffffffffffffff8111156200027c576200027b6200042f565b5b6200028a87828801620001c2565b93505060406200029d87828801620001f5565b9250506060620002b087828801620001f5565b91505092959194509250565b6000620002c8620002db565b9050620002d6828262000391565b919050565b6000604051905090565b600067ffffffffffffffff821115620003035762000302620003f6565b5b6200030e8262000439565b9050602081019050919050565b6000819050919050565b60005b838110156200034557808201518184015260208101905062000328565b8381111562000355576000848401525b50505050565b600060028204905060018216806200037457607f821691505b602082108114156200038b576200038a620003c7565b5b50919050565b6200039c8262000439565b810181811067ffffffffffffffff82111715620003be57620003bd620003f6565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b62000455816200031b565b81146200046157600080fd5b50565b6108c380620004746000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806370a082311161005b57806370a08231146100dc57806395d89b411461010c578063a9059cbb1461012a578063dd62ed3e1461015a5761007d565b806306fdde031461008257806318160ddd146100a0578063313ce567146100be575b600080fd5b61008a61018a565b604051610097919061065b565b60405180910390f35b6100a8610218565b6040516100b5919061067d565b60405180910390f35b6100c661021e565b6040516100d3919061067d565b60405180910390f35b6100f660048036038101906100f1919061053c565b610224565b604051610103919061067d565b60405180910390f35b61011461023c565b604051610121919061065b565b60405180910390f35b610144600480360381019061013f91906105a9565b6102ca565b6040516101519190610640565b60405180910390f35b610174600480360381019061016f9190610569565b61032d565b604051610181919061067d565b60405180910390f35b60008054610197906107b9565b80601f01602080910402602001604051908101604052809291908181526020018280546101c3906107b9565b80156102105780601f106101e557610100808354040283529160200191610210565b820191906000526020600020905b8154815290600101906020018083116101f357829003601f168201915b505050505081565b60035481565b60025481565b60046020528060005260406000206000915090505481565b60018054610249906107b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610275906107b9565b80156102c25780601f10610297576101008083540402835291602001916102c2565b820191906000526020600020905b8154815290600101906020018083116102a557829003601f168201915b505050505081565b600081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101561031857600080fd5b610323338484610352565b6001905092915050565b6005602052816000526040600020602052806000526040600020600091509150505481565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561038c57600080fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103d7919061070a565b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461046591906106b4565b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610505919061067d565b60405180910390a3505050565b6000813590506105218161085f565b92915050565b60008135905061053681610876565b92915050565b60006020828403121561055257610551610849565b5b600061056084828501610512565b91505092915050565b600080604083850312156105805761057f610849565b5b600061058e85828601610512565b925050602061059f85828601610512565b9150509250929050565b600080604083850312156105c0576105bf610849565b5b60006105ce85828601610512565b92505060206105df85828601610527565b9150509250929050565b6105f281610750565b82525050565b600061060382610698565b61060d81856106a3565b935061061d818560208601610786565b6106268161084e565b840191505092915050565b61063a8161077c565b82525050565b600060208201905061065560008301846105e9565b92915050565b6000602082019050818103600083015261067581846105f8565b905092915050565b60006020820190506106926000830184610631565b92915050565b600081519050919050565b600082825260208201905092915050565b60006106bf8261077c565b91506106ca8361077c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156106ff576106fe6107eb565b5b828201905092915050565b60006107158261077c565b91506107208361077c565b925082821015610733576107326107eb565b5b828203905092915050565b60006107498261075c565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156107a4578082015181840152602081019050610789565b838111156107b3576000848401525b50505050565b600060028204905060018216806107d157607f821691505b602082108114156107e5576107e461081a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b6108688161073e565b811461087357600080fd5b50565b61087f8161077c565b811461088a57600080fd5b5056fea26469706673582212203c432be5e2848562a0210b1aa932f8c50c522749939a136e15b1fc68a813888d64736f6c63430008060033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000016e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017300000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

68:1372:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90:18;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;174:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;144:23;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;209:44;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;116:20;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;869:205;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;302:64;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;90:18;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;174:26::-;;;;:::o;144:23::-;;;;:::o;209:44::-;;;;;;;;;;;;;;;;;:::o;116:20::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;869:205::-;934:12;992:6;967:9;:21;977:10;967:21;;;;;;;;;;;;;;;;:31;;959:40;;;;;;1010:34;1020:10;1032:3;1037:6;1010:9;:34::i;:::-;1062:4;1055:11;;869:205;;;;:::o;302:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1082:355::-;1272:1;1257:17;;:3;:17;;;;1249:26;;;;;;1325:6;1305:9;:16;1315:5;1305:16;;;;;;;;;;;;;;;;:27;;;;:::i;:::-;1286:9;:16;1296:5;1286:16;;;;;;;;;;;;;;;:46;;;;1378:6;1360:9;:14;1370:3;1360:14;;;;;;;;;;;;;;;;:25;;;;:::i;:::-;1343:9;:14;1353:3;1343:14;;;;;;;;;;;;;;;:42;;;;1417:3;1401:28;;1410:5;1401:28;;;1422:6;1401:28;;;;;;:::i;:::-;;;;;;;;1082:355;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:139::-;198:5;236:6;223:20;214:29;;252:33;279:5;252:33;:::i;:::-;204:87;;;;:::o;297:329::-;356:6;405:2;393:9;384:7;380:23;376:32;373:2;;;411:79;;:::i;:::-;373:2;531:1;556:53;601:7;592:6;581:9;577:22;556:53;:::i;:::-;546:63;;502:117;363:263;;;;:::o;632:474::-;700:6;708;757:2;745:9;736:7;732:23;728:32;725:2;;;763:79;;:::i;:::-;725:2;883:1;908:53;953:7;944:6;933:9;929:22;908:53;:::i;:::-;898:63;;854:117;1010:2;1036:53;1081:7;1072:6;1061:9;1057:22;1036:53;:::i;:::-;1026:63;;981:118;715:391;;;;;:::o;1112:474::-;1180:6;1188;1237:2;1225:9;1216:7;1212:23;1208:32;1205:2;;;1243:79;;:::i;:::-;1205:2;1363:1;1388:53;1433:7;1424:6;1413:9;1409:22;1388:53;:::i;:::-;1378:63;;1334:117;1490:2;1516:53;1561:7;1552:6;1541:9;1537:22;1516:53;:::i;:::-;1506:63;;1461:118;1195:391;;;;;:::o;1592:109::-;1673:21;1688:5;1673:21;:::i;:::-;1668:3;1661:34;1651:50;;:::o;1707:364::-;1795:3;1823:39;1856:5;1823:39;:::i;:::-;1878:71;1942:6;1937:3;1878:71;:::i;:::-;1871:78;;1958:52;2003:6;1998:3;1991:4;1984:5;1980:16;1958:52;:::i;:::-;2035:29;2057:6;2035:29;:::i;:::-;2030:3;2026:39;2019:46;;1799:272;;;;;:::o;2077:118::-;2164:24;2182:5;2164:24;:::i;:::-;2159:3;2152:37;2142:53;;:::o;2201:210::-;2288:4;2326:2;2315:9;2311:18;2303:26;;2339:65;2401:1;2390:9;2386:17;2377:6;2339:65;:::i;:::-;2293:118;;;;:::o;2417:313::-;2530:4;2568:2;2557:9;2553:18;2545:26;;2617:9;2611:4;2607:20;2603:1;2592:9;2588:17;2581:47;2645:78;2718:4;2709:6;2645:78;:::i;:::-;2637:86;;2535:195;;;;:::o;2736:222::-;2829:4;2867:2;2856:9;2852:18;2844:26;;2880:71;2948:1;2937:9;2933:17;2924:6;2880:71;:::i;:::-;2834:124;;;;:::o;3045:99::-;3097:6;3131:5;3125:12;3115:22;;3104:40;;;:::o;3150:169::-;3234:11;3268:6;3263:3;3256:19;3308:4;3303:3;3299:14;3284:29;;3246:73;;;;:::o;3325:305::-;3365:3;3384:20;3402:1;3384:20;:::i;:::-;3379:25;;3418:20;3436:1;3418:20;:::i;:::-;3413:25;;3572:1;3504:66;3500:74;3497:1;3494:81;3491:2;;;3578:18;;:::i;:::-;3491:2;3622:1;3619;3615:9;3608:16;;3369:261;;;;:::o;3636:191::-;3676:4;3696:20;3714:1;3696:20;:::i;:::-;3691:25;;3730:20;3748:1;3730:20;:::i;:::-;3725:25;;3769:1;3766;3763:8;3760:2;;;3774:18;;:::i;:::-;3760:2;3819:1;3816;3812:9;3804:17;;3681:146;;;;:::o;3833:96::-;3870:7;3899:24;3917:5;3899:24;:::i;:::-;3888:35;;3878:51;;;:::o;3935:90::-;3969:7;4012:5;4005:13;3998:21;3987:32;;3977:48;;;:::o;4031:126::-;4068:7;4108:42;4101:5;4097:54;4086:65;;4076:81;;;:::o;4163:77::-;4200:7;4229:5;4218:16;;4208:32;;;:::o;4246:307::-;4314:1;4324:113;4338:6;4335:1;4332:13;4324:113;;;4423:1;4418:3;4414:11;4408:18;4404:1;4399:3;4395:11;4388:39;4360:2;4357:1;4353:10;4348:15;;4324:113;;;4455:6;4452:1;4449:13;4446:2;;;4535:1;4526:6;4521:3;4517:16;4510:27;4446:2;4295:258;;;;:::o;4559:320::-;4603:6;4640:1;4634:4;4630:12;4620:22;;4687:1;4681:4;4677:12;4708:18;4698:2;;4764:4;4756:6;4752:17;4742:27;;4698:2;4826;4818:6;4815:14;4795:18;4792:38;4789:2;;;4845:18;;:::i;:::-;4789:2;4610:269;;;;:::o;4885:180::-;4933:77;4930:1;4923:88;5030:4;5027:1;5020:15;5054:4;5051:1;5044:15;5071:180;5119:77;5116:1;5109:88;5216:4;5213:1;5206:15;5240:4;5237:1;5230:15;5380:117;5489:1;5486;5479:12;5503:102;5544:6;5595:2;5591:7;5586:2;5579:5;5575:14;5571:28;5561:38;;5551:54;;;:::o;5611:122::-;5684:24;5702:5;5684:24;:::i;:::-;5677:5;5674:35;5664:2;;5723:1;5720;5713:12;5664:2;5654:79;:::o;5739:122::-;5812:24;5830:5;5812:24;:::i;:::-;5805:5;5802:35;5792:2;;5851:1;5848;5841:12;5792:2;5782:79;:::o

Swarm Source

ipfs://3c432be5e2848562a0210b1aa932f8c50c522749939a136e15b1fc68a813888d

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.