ETH Price: $3,404.43 (+2.66%)

Token

testToken (tst)
 

Overview

Max Total Supply

100,000,000 tst

Holders

4

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
xxx888xxx888xxx888xxx888xxx888xxx888.eth
Balance
7,620,878.003571859336100044 tst

Value
$0.00
0xd4a869f913f2df728d4c8daec55d03c77d7f40be
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 2 : Token.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "./IERC20.sol";

contract Token is IERC20 {
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(
        address indexed owner, address indexed spender, uint256 value
    );

    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;
    string public name;
    string public symbol;
    uint8 public decimals;

    constructor() {
        name = "testToken";
        symbol = "tst";
        decimals = 18;
        _mint(msg.sender, 100_000_000 * 10**decimals);
    }

    function transfer(address recipient, uint256 amount)
        external
        returns (bool)
    {
        balanceOf[msg.sender] -= amount;
        balanceOf[recipient] += amount;
        emit Transfer(msg.sender, recipient, amount);
        return true;
    }

    function approve(address spender, uint256 amount) external returns (bool) {
        allowance[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount)
        external
        returns (bool)
    {
        allowance[sender][msg.sender] -= amount;
        balanceOf[sender] -= amount;
        balanceOf[recipient] += amount;
        emit Transfer(sender, recipient, amount);
        return true;
    }

    function _mint(address to, uint256 amount) internal {
        balanceOf[to] += amount;
        totalSupply += amount;
        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal {
        balanceOf[from] -= amount;
        totalSupply -= amount;
        emit Transfer(from, address(0), amount);
    }

}

File 2 of 2 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount)
        external
        returns (bool);
    function allowance(address owner, address spender)
        external
        view
        returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount)
        external
        returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"uint8","name":"","type":"uint8"}],"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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040805180820190915260098152683a32b9ba2a37b5b2b760b91b6020820152600390620000419082620001e1565b506040805180820190915260038152621d1cdd60ea1b60208201526004906200006b9082620001e1565b506005805460ff19166012908117909155620000a69033906200009090600a620003c2565b620000a0906305f5e100620003da565b620000ac565b6200040a565b6001600160a01b03821660009081526001602052604081208054839290620000d6908490620003f4565b9250508190555080600080828254620000f09190620003f4565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200016557607f821691505b6020821081036200018657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001dc576000816000526020600020601f850160051c81016020861015620001b75750805b601f850160051c820191505b81811015620001d857828155600101620001c3565b5050505b505050565b81516001600160401b03811115620001fd57620001fd6200013a565b62000215816200020e845462000150565b846200018c565b602080601f8311600181146200024d5760008415620002345750858301515b600019600386901b1c1916600185901b178555620001d8565b600085815260208120601f198616915b828110156200027e578886015182559484019460019091019084016200025d565b50858210156200029d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000304578160001904821115620002e857620002e8620002ad565b80851615620002f657918102915b93841c9390800290620002c8565b509250929050565b6000826200031d57506001620003bc565b816200032c57506000620003bc565b8160018114620003455760028114620003505762000370565b6001915050620003bc565b60ff841115620003645762000364620002ad565b50506001821b620003bc565b5060208310610133831016604e8410600b841016171562000395575081810a620003bc565b620003a18383620002c3565b8060001904821115620003b857620003b8620002ad565b0290505b92915050565b6000620003d360ff8416836200030c565b9392505050565b8082028115828204841417620003bc57620003bc620002ad565b80820180821115620003bc57620003bc620002ad565b6105df806200041a6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce5671461010357806370a082311461012257806395d89b4114610142578063a9059cbb1461014a578063dd62ed3e1461015d57600080fd5b806306fdde0314610098578063095ea7b3146100b657806318160ddd146100d957806323b872dd146100f0575b600080fd5b6100a0610188565b6040516100ad919061040d565b60405180910390f35b6100c96100c4366004610478565b610216565b60405190151581526020016100ad565b6100e260005481565b6040519081526020016100ad565b6100c96100fe3660046104a2565b610283565b6005546101109060ff1681565b60405160ff90911681526020016100ad565b6100e26101303660046104de565b60016020526000908152604090205481565b6100a0610370565b6100c9610158366004610478565b61037d565b6100e261016b366004610500565b600260209081526000928352604080842090915290825290205481565b6003805461019590610533565b80601f01602080910402602001604051908101604052809291908181526020018280546101c190610533565b801561020e5780601f106101e35761010080835404028352916020019161020e565b820191906000526020600020905b8154815290600101906020018083116101f157829003601f168201915b505050505081565b3360008181526002602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102719086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120805483919083906102b8908490610583565b90915550506001600160a01b038416600090815260016020526040812080548492906102e5908490610583565b90915550506001600160a01b03831660009081526001602052604081208054849290610312908490610596565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161035e91815260200190565b60405180910390a35060019392505050565b6004805461019590610533565b3360009081526001602052604081208054839190839061039e908490610583565b90915550506001600160a01b038316600090815260016020526040812080548492906103cb908490610596565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610271565b60006020808352835180602085015260005b8181101561043b5785810183015185820160400152820161041f565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461047357600080fd5b919050565b6000806040838503121561048b57600080fd5b6104948361045c565b946020939093013593505050565b6000806000606084860312156104b757600080fd5b6104c08461045c565b92506104ce6020850161045c565b9150604084013590509250925092565b6000602082840312156104f057600080fd5b6104f98261045c565b9392505050565b6000806040838503121561051357600080fd5b61051c8361045c565b915061052a6020840161045c565b90509250929050565b600181811c9082168061054757607f821691505b60208210810361056757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561027d5761027d61056d565b8082018082111561027d5761027d61056d56fea264697066735822122044480458e2d7bbf10376c2834ef266be2aaedd5f023b393fe0da2990a9cc981564736f6c63430008170033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce5671461010357806370a082311461012257806395d89b4114610142578063a9059cbb1461014a578063dd62ed3e1461015d57600080fd5b806306fdde0314610098578063095ea7b3146100b657806318160ddd146100d957806323b872dd146100f0575b600080fd5b6100a0610188565b6040516100ad919061040d565b60405180910390f35b6100c96100c4366004610478565b610216565b60405190151581526020016100ad565b6100e260005481565b6040519081526020016100ad565b6100c96100fe3660046104a2565b610283565b6005546101109060ff1681565b60405160ff90911681526020016100ad565b6100e26101303660046104de565b60016020526000908152604090205481565b6100a0610370565b6100c9610158366004610478565b61037d565b6100e261016b366004610500565b600260209081526000928352604080842090915290825290205481565b6003805461019590610533565b80601f01602080910402602001604051908101604052809291908181526020018280546101c190610533565b801561020e5780601f106101e35761010080835404028352916020019161020e565b820191906000526020600020905b8154815290600101906020018083116101f157829003601f168201915b505050505081565b3360008181526002602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102719086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120805483919083906102b8908490610583565b90915550506001600160a01b038416600090815260016020526040812080548492906102e5908490610583565b90915550506001600160a01b03831660009081526001602052604081208054849290610312908490610596565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161035e91815260200190565b60405180910390a35060019392505050565b6004805461019590610533565b3360009081526001602052604081208054839190839061039e908490610583565b90915550506001600160a01b038316600090815260016020526040812080548492906103cb908490610596565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610271565b60006020808352835180602085015260005b8181101561043b5785810183015185820160400152820161041f565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461047357600080fd5b919050565b6000806040838503121561048b57600080fd5b6104948361045c565b946020939093013593505050565b6000806000606084860312156104b757600080fd5b6104c08461045c565b92506104ce6020850161045c565b9150604084013590509250925092565b6000602082840312156104f057600080fd5b6104f98261045c565b9392505050565b6000806040838503121561051357600080fd5b61051c8361045c565b915061052a6020840161045c565b90509250929050565b600181811c9082168061054757607f821691505b60208210810361056757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561027d5761027d61056d565b8082018082111561027d5761027d61056d56fea264697066735822122044480458e2d7bbf10376c2834ef266be2aaedd5f023b393fe0da2990a9cc981564736f6c63430008170033

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.